diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-11 17:06:10 +0100 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-11 17:06:10 +0100 |
| commit | 3ce42e54e5d093c3fd6136f6a9bfc9398f328bce (patch) | |
| tree | c9bed33585ece45118b2f6d851c5787d76406097 /unit_tests/legacy_tests.cpp | |
| parent | 9ba9cd6185a00bd0623f3cbc96a20ce34dafbbc5 (diff) | |
| download | lanes-3ce42e54e5d093c3fd6136f6a9bfc9398f328bce.tar.gz lanes-3ce42e54e5d093c3fd6136f6a9bfc9398f328bce.tar.bz2 lanes-3ce42e54e5d093c3fd6136f6a9bfc9398f328bce.zip | |
Add a VisualStudio solution to build and debug Lanes
* configured to build Lanes, the example module deep_userdata_example, and the unit tests
* relies on Lua 5.1 → 5.4, LuaJIT and MoonJIT to be built and located in a fixed directory
* manual_register legacy test now uses deep_userdata_example module instead of lfs
Diffstat (limited to 'unit_tests/legacy_tests.cpp')
| -rw-r--r-- | unit_tests/legacy_tests.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/unit_tests/legacy_tests.cpp b/unit_tests/legacy_tests.cpp index 509bb22..7f2f31d 100644 --- a/unit_tests/legacy_tests.cpp +++ b/unit_tests/legacy_tests.cpp | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | #define MAKE_TEST_CASE(FILE) \ | 13 | #define MAKE_TEST_CASE(FILE) \ |
| 14 | TEST_CASE("scripted tests.legacy." #FILE) \ | 14 | TEST_CASE("scripted tests.legacy." #FILE) \ |
| 15 | { \ | 15 | { \ |
| 16 | FileRunner _runner(R"(.\lanes\tests\)"); \ | 16 | FileRunner _runner(R"(.\tests\)"); \ |
| 17 | _runner.performTest(FileRunnerParam{ #FILE, TestType::AssertNoLuaError }); \ | 17 | _runner.performTest(FileRunnerParam{ #FILE, TestType::AssertNoLuaError }); \ |
| 18 | } | 18 | } |
| 19 | 19 | ||
| @@ -34,9 +34,7 @@ MAKE_TEST_CASE(irayo_closure) | |||
| 34 | MAKE_TEST_CASE(irayo_recursive) | 34 | MAKE_TEST_CASE(irayo_recursive) |
| 35 | MAKE_TEST_CASE(keeper) | 35 | MAKE_TEST_CASE(keeper) |
| 36 | //MAKE_TEST_CASE(linda_perf) | 36 | //MAKE_TEST_CASE(linda_perf) |
| 37 | #if LUA_VERSION_NUM == 504 | ||
| 38 | MAKE_TEST_CASE(manual_register) | 37 | MAKE_TEST_CASE(manual_register) |
| 39 | #endif // LUA_VERSION_NUM | ||
| 40 | MAKE_TEST_CASE(nameof) | 38 | MAKE_TEST_CASE(nameof) |
| 41 | MAKE_TEST_CASE(objects) | 39 | MAKE_TEST_CASE(objects) |
| 42 | MAKE_TEST_CASE(package) | 40 | MAKE_TEST_CASE(package) |
| @@ -84,7 +82,7 @@ TEST_CASE("lanes.legacy scripted tests") | |||
| 84 | , FileRunnerParam{ "track_lanes", TestType::AssertNoLuaError } // 26 | 82 | , FileRunnerParam{ "track_lanes", TestType::AssertNoLuaError } // 26 |
| 85 | ); | 83 | ); |
| 86 | 84 | ||
| 87 | FileRunner _runner(R"(.\lanes\tests\)"); | 85 | FileRunner _runner(R"(.\tests\)"); |
| 88 | _runner.performTest(_testParam); | 86 | _runner.performTest(_testParam); |
| 89 | } | 87 | } |
| 90 | */ | 88 | */ |
