diff options
| -rw-r--r-- | tests/actions/test/tests/stub_1.cpp | 3 | ||||
| -rw-r--r-- | tests/actions/test/tests/stub_2.cpp | 3 | ||||
| -rw-r--r-- | tests/actions/test/tests/stub_n1.cpp | 3 | ||||
| -rw-r--r-- | tests/actions/test/tests/stub_n2.cpp | 3 | ||||
| -rw-r--r-- | tests/actions/test/xmake.lua | 18 |
5 files changed, 30 insertions, 0 deletions
diff --git a/tests/actions/test/tests/stub_1.cpp b/tests/actions/test/tests/stub_1.cpp new file mode 100644 index 000000000..f44749b33 --- /dev/null +++ b/tests/actions/test/tests/stub_1.cpp @@ -0,0 +1,3 @@ +#ifndef STUB_1 +#error +#endif diff --git a/tests/actions/test/tests/stub_2.cpp b/tests/actions/test/tests/stub_2.cpp new file mode 100644 index 000000000..fd4050d90 --- /dev/null +++ b/tests/actions/test/tests/stub_2.cpp @@ -0,0 +1,3 @@ +#ifndef STUB_2 +#error +#endif diff --git a/tests/actions/test/tests/stub_n1.cpp b/tests/actions/test/tests/stub_n1.cpp new file mode 100644 index 000000000..229bfe431 --- /dev/null +++ b/tests/actions/test/tests/stub_n1.cpp @@ -0,0 +1,3 @@ +#ifndef STUB_N +#error +#endif diff --git a/tests/actions/test/tests/stub_n2.cpp b/tests/actions/test/tests/stub_n2.cpp new file mode 100644 index 000000000..229bfe431 --- /dev/null +++ b/tests/actions/test/tests/stub_n2.cpp @@ -0,0 +1,3 @@ +#ifndef STUB_N +#error +#endif diff --git a/tests/actions/test/xmake.lua b/tests/actions/test/xmake.lua index 328e817dd..83718245f 100644 --- a/tests/actions/test/xmake.lua +++ b/tests/actions/test/xmake.lua @@ -24,3 +24,21 @@ target("test_11") set_default(false) add_files("src/compile.cpp") add_tests("compile_pass", {build_should_pass = true}) + +target("test_13") + set_kind("binary") + set_default(false) + add_files("src/test_1.cpp") + add_tests("stub_1", {files = "tests/stub_1.cpp", defines = "STUB_1"}) + +target("test_14") + set_kind("binary") + set_default(false) + add_files("src/test_2.cpp") + add_tests("stub_2", {files = "tests/stub_2.cpp", defines = "STUB_2"}) + +target("test_15") + set_kind("binary") + set_default(false) + add_files("src/test_1.cpp") + add_tests("stub_n", {files = "tests/stub_n*.cpp", defines = "STUB_N"}) |
