Files
UnrealEngineUWP/Engine/Source/Programs/AutomationTool/Turnkey/Commands/Test.cs
josh adams 98aadf5c36 - Categorized Turnkey commands
- Added ability to have input list options be headers (prefix with ;)
#rb nuno.leiria

#ROBOMERGE-SOURCE: CL 15472185 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15472224 by josh adams in ue5-main branch]
2021-02-19 11:59:55 -04:00

63 lines
1.4 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Turnkey.Commands
{
class Test : TurnkeyCommand
{
protected override CommandGroup Group => CommandGroup.Misc;
protected override void Execute(string[] CommandOptions)
{
TurnkeyUtils.Log("Testing:");
TurnkeyUtils.Log("");
string[] TestEnumerates =
{
@"googledrive:/SdkInstalls/*/DummyInstall.zip",
@"googledrive:/SdkInstalls/*/*.xml",
@"googledrive:'1O6V1JO-LNZYxcB6wIqCiHjQ44mz4tv7S'/*",
@"file:D:\Engine\*\Build\*.xml",
@"file:D:\Engine\*\*",
@"perforce://UE4/Main/*/Build/*.xml",
};
foreach (string Test in TestEnumerates)
{
TurnkeyUtils.Log("Enumerating {0}:", Test);
string[] Results = CopyProvider.ExecuteEnumerate(Test);
if (Results != null)
{
foreach (string Result in Results)
{
TurnkeyUtils.Log(" {0}", Result);
}
}
}
string[] TestCopies =
{
@"googledrive:/SdkInstalls/Installers/DummyInstall.zip",
@"googledrive:/SdkInstalls/*/DummyInstall.zip",
@"googledrive:/SdkInstalls/*",
};
foreach (string Test in TestCopies)
{
TurnkeyUtils.Log("Copying {0}:", Test);
string Result = CopyProvider.ExecuteCopy(Test);
TurnkeyUtils.Log(" Copied to {0}", Result);
}
}
}
}