This commit is contained in:
Бранимир Караџић
2022-08-21 17:18:24 -07:00
parent a8545d7b5b
commit f39ba8010a
6 changed files with 22600 additions and 17883 deletions

17881
3rdparty/catch/catch.hpp vendored

File diff suppressed because it is too large Load Diff

10360
3rdparty/catch/catch_amalgamated.cpp vendored Normal file

File diff suppressed because it is too large Load Diff

12233
3rdparty/catch/catch_amalgamated.hpp vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -54,7 +54,12 @@ project "bx.test"
BX_THIRD_PARTY_DIR,
}
defines {
"CATCH_AMALGAMATED_CUSTOM_MAIN",
}
files {
path.join(BX_DIR, "3rdparty/catch/catch_amalgamated.cpp"),
path.join(BX_DIR, "tests/*_test.cpp"),
path.join(BX_DIR, "tests/*.h"),
path.join(BX_DIR, "tests/dbg.*"),

View File

@@ -23,7 +23,7 @@ int runAllTests(int _argc, const char* _argv[])
Session session;
ConfigData config;
config.useColour = BX_PLATFORM_EMSCRIPTEN ? UseColour::No : UseColour::Auto;
config.defaultColourMode = BX_PLATFORM_EMSCRIPTEN ? ColourMode::None : ColourMode::PlatformDefault;
session.useConfigData(config);

View File

@@ -10,7 +10,7 @@
BX_PRAGMA_DIAGNOSTIC_PUSH();
BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4312); // warning C4312 : 'reinterpret_cast' : conversion from 'int' to 'const char *' of greater size
#include <catch/catch.hpp>
#include <catch/catch_amalgamated.hpp>
BX_PRAGMA_DIAGNOSTIC_POP();
#define TEST(_x) TEST_CASE(#_x, "")