diff options
Diffstat (limited to '')
-rw-r--r-- | unit_tests/legacy_tests.cpp | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/unit_tests/legacy_tests.cpp b/unit_tests/legacy_tests.cpp index cb91c93..509bb22 100644 --- a/unit_tests/legacy_tests.cpp +++ b/unit_tests/legacy_tests.cpp | |||
@@ -7,7 +7,51 @@ | |||
7 | // ################################################################################################# | 7 | // ################################################################################################# |
8 | // ################################################################################################# | 8 | // ################################################################################################# |
9 | 9 | ||
10 | TEST_CASE("legacy scripted tests") | 10 | // unfortunately, VS Test adapter does not list individual sections, |
11 | // so let's create a separate test case for each file with an ugly macro... | ||
12 | |||
13 | #define MAKE_TEST_CASE(FILE) \ | ||
14 | TEST_CASE("scripted tests.legacy." #FILE) \ | ||
15 | { \ | ||
16 | FileRunner _runner(R"(.\lanes\tests\)"); \ | ||
17 | _runner.performTest(FileRunnerParam{ #FILE, TestType::AssertNoLuaError }); \ | ||
18 | } | ||
19 | |||
20 | MAKE_TEST_CASE(appendud) | ||
21 | MAKE_TEST_CASE(atexit) | ||
22 | MAKE_TEST_CASE(atomic) | ||
23 | MAKE_TEST_CASE(basic) | ||
24 | MAKE_TEST_CASE(cancel) | ||
25 | MAKE_TEST_CASE(cyclic) | ||
26 | MAKE_TEST_CASE(deadlock) | ||
27 | MAKE_TEST_CASE(errhangtest) | ||
28 | MAKE_TEST_CASE(error) | ||
29 | MAKE_TEST_CASE(fibonacci) | ||
30 | MAKE_TEST_CASE(fifo) | ||
31 | MAKE_TEST_CASE(finalizer) | ||
32 | MAKE_TEST_CASE(func_is_string) | ||
33 | MAKE_TEST_CASE(irayo_closure) | ||
34 | MAKE_TEST_CASE(irayo_recursive) | ||
35 | MAKE_TEST_CASE(keeper) | ||
36 | //MAKE_TEST_CASE(linda_perf) | ||
37 | #if LUA_VERSION_NUM == 504 | ||
38 | MAKE_TEST_CASE(manual_register) | ||
39 | #endif // LUA_VERSION_NUM | ||
40 | MAKE_TEST_CASE(nameof) | ||
41 | MAKE_TEST_CASE(objects) | ||
42 | MAKE_TEST_CASE(package) | ||
43 | MAKE_TEST_CASE(pingpong) | ||
44 | MAKE_TEST_CASE(recursive) | ||
45 | MAKE_TEST_CASE(require) | ||
46 | MAKE_TEST_CASE(rupval) | ||
47 | MAKE_TEST_CASE(timer) | ||
48 | #if LUA_VERSION_NUM == 504 | ||
49 | MAKE_TEST_CASE(tobeclosed) | ||
50 | #endif // LUA_VERSION_NUM | ||
51 | MAKE_TEST_CASE(track_lanes) | ||
52 | |||
53 | /* | ||
54 | TEST_CASE("lanes.legacy scripted tests") | ||
11 | { | 55 | { |
12 | auto const& _testParam = GENERATE( | 56 | auto const& _testParam = GENERATE( |
13 | FileRunnerParam{ "appendud", TestType::AssertNoLuaError } // 0 | 57 | FileRunnerParam{ "appendud", TestType::AssertNoLuaError } // 0 |
@@ -43,5 +87,6 @@ TEST_CASE("legacy scripted tests") | |||
43 | FileRunner _runner(R"(.\lanes\tests\)"); | 87 | FileRunner _runner(R"(.\lanes\tests\)"); |
44 | _runner.performTest(_testParam); | 88 | _runner.performTest(_testParam); |
45 | } | 89 | } |
90 | */ | ||
46 | 91 | ||
47 | #endif // RUN_LEGACY_TESTS \ No newline at end of file | 92 | #endif // RUN_LEGACY_TESTS \ No newline at end of file |