Added Catch2 library for native unit tests.

This commit is contained in:
Zbigniew Skowron
2021-08-15 14:35:52 +02:00
parent 294a4d5477
commit def293f88b
3 changed files with 18013 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
using System.Collections.Generic;
using System.IO;
using Flax.Build;
/// <summary>
/// https://github.com/catchorg/Catch2
/// </summary>
public class catch2 : HeaderOnlyModule
{
/// <inheritdoc />
public override void Init()
{
base.Init();
LicenseType = LicenseTypes.BoostSoftwareLicense;
LicenseFilePath = "LICENSE.txt";
// Merge into test binary
BinaryModuleName = "Engine.Tests";
}
/// <inheritdoc />
public override void GetFilesToDeploy(List<string> files)
{
base.GetFilesToDeploy(files);
files.AddRange(Directory.GetFiles(FolderPath, "*.hpp", SearchOption.AllDirectories));
}
}