You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #preflight 6476799e947ff6973c225619 [CL 25693241 by joe kirchoff in ue5-main branch]
40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System.Reflection;
|
|
using EpicGames.Core;
|
|
using EpicGames.UHT.Utils;
|
|
using Microsoft.Extensions.Logging;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using UnrealBuildBase;
|
|
using UnrealBuildTool.Modes;
|
|
|
|
namespace UnrealBuildToolTests
|
|
{
|
|
[TestClass]
|
|
public class UnrealHeaderToolTests
|
|
{
|
|
[TestMethod]
|
|
public void Run()
|
|
{
|
|
#if DISABLE
|
|
FileReference AssemblyFile = new FileReference(Assembly.GetExecutingAssembly().Location);
|
|
Unreal.LocationOverride.RootDirectory = DirectoryReference.Combine(AssemblyFile.Directory, "../../../../..");
|
|
|
|
string[] Arguments = System.Array.Empty<string>();
|
|
CommandLineArguments CommandLineArguments = new CommandLineArguments(Arguments);
|
|
UhtGlobalOptions Options = new UhtGlobalOptions(CommandLineArguments);
|
|
|
|
// Initialize the attributes
|
|
UhtTables Tables = new UhtTables();
|
|
|
|
// Initialize the configuration
|
|
IUhtConfig Config = new UhtConfigImpl(CommandLineArguments);
|
|
|
|
// Run the tests
|
|
using ILoggerFactory factory = LoggerFactory.Create(x => x.AddEpicDefault());
|
|
Assert.IsTrue(UhtTestHarness.RunTests(Tables, Config, Options, factory.CreateLogger<UhtTestHarness>()));
|
|
#endif
|
|
}
|
|
}
|
|
}
|