diff options
Diffstat (limited to 'meson/test cases/unit/4 suite selection')
10 files changed, 50 insertions, 0 deletions
diff --git a/meson/test cases/unit/4 suite selection/failing_test.c b/meson/test cases/unit/4 suite selection/failing_test.c new file mode 100644 index 000000000..393344d05 --- /dev/null +++ b/meson/test cases/unit/4 suite selection/failing_test.c @@ -0,0 +1 @@ +int main(void) { return -1 ; } diff --git a/meson/test cases/unit/4 suite selection/meson.build b/meson/test cases/unit/4 suite selection/meson.build new file mode 100644 index 000000000..ea6db923c --- /dev/null +++ b/meson/test cases/unit/4 suite selection/meson.build @@ -0,0 +1,17 @@ +project('mainprj', 'c') + +subproject('subprjfail') +subproject('subprjsucc') +subproject('subprjmix') + +test('mainprj-failing_test', + executable('failing_test', 'failing_test.c'), + suite : 'fail') + +test('mainprj-successful_test', + executable('successful_test', 'successful_test.c'), + suite : 'success') + +test('mainprj-successful_test_no_suite', + executable('no_suite_test', 'successful_test.c'), + suite : []) diff --git a/meson/test cases/unit/4 suite selection/subprojects/subprjfail/failing_test.c b/meson/test cases/unit/4 suite selection/subprojects/subprjfail/failing_test.c new file mode 100644 index 000000000..393344d05 --- /dev/null +++ b/meson/test cases/unit/4 suite selection/subprojects/subprjfail/failing_test.c @@ -0,0 +1 @@ +int main(void) { return -1 ; } diff --git a/meson/test cases/unit/4 suite selection/subprojects/subprjfail/meson.build b/meson/test cases/unit/4 suite selection/subprojects/subprjfail/meson.build new file mode 100644 index 000000000..e6270a8cf --- /dev/null +++ b/meson/test cases/unit/4 suite selection/subprojects/subprjfail/meson.build @@ -0,0 +1,9 @@ +project('subprjfail', 'c') + +test('subprjfail-failing_test', + executable('failing_test', 'failing_test.c'), + suite : 'fail') + +test('subprjfail-failing_test_no_suite', + executable('failing_test_no_suite', 'failing_test.c'), + suite : []) diff --git a/meson/test cases/unit/4 suite selection/subprojects/subprjmix/failing_test.c b/meson/test cases/unit/4 suite selection/subprojects/subprjmix/failing_test.c new file mode 100644 index 000000000..393344d05 --- /dev/null +++ b/meson/test cases/unit/4 suite selection/subprojects/subprjmix/failing_test.c @@ -0,0 +1 @@ +int main(void) { return -1 ; } diff --git a/meson/test cases/unit/4 suite selection/subprojects/subprjmix/meson.build b/meson/test cases/unit/4 suite selection/subprojects/subprjmix/meson.build new file mode 100644 index 000000000..1d0eeff2e --- /dev/null +++ b/meson/test cases/unit/4 suite selection/subprojects/subprjmix/meson.build @@ -0,0 +1,9 @@ +project('subprjmix', 'c') + +test('subprjmix-failing_test', + executable('failing_test', 'failing_test.c'), + suite : 'fail') + +test('subprjmix-successful_test', + executable('successful_test', 'successful_test.c'), + suite : 'success') diff --git a/meson/test cases/unit/4 suite selection/subprojects/subprjmix/successful_test.c b/meson/test cases/unit/4 suite selection/subprojects/subprjmix/successful_test.c new file mode 100644 index 000000000..8842fc122 --- /dev/null +++ b/meson/test cases/unit/4 suite selection/subprojects/subprjmix/successful_test.c @@ -0,0 +1 @@ +int main(void) { return 0 ; } diff --git a/meson/test cases/unit/4 suite selection/subprojects/subprjsucc/meson.build b/meson/test cases/unit/4 suite selection/subprojects/subprjsucc/meson.build new file mode 100644 index 000000000..b5ffaa461 --- /dev/null +++ b/meson/test cases/unit/4 suite selection/subprojects/subprjsucc/meson.build @@ -0,0 +1,9 @@ +project('subprjsucc', 'c') + +test('subprjsucc-successful_test', + executable('successful_test', 'successful_test.c'), + suite : 'success') + +test('subprjsucc-successful_test_no_suite', + executable('successful_test_no_suite', 'successful_test.c'), + suite : []) diff --git a/meson/test cases/unit/4 suite selection/subprojects/subprjsucc/successful_test.c b/meson/test cases/unit/4 suite selection/subprojects/subprjsucc/successful_test.c new file mode 100644 index 000000000..8842fc122 --- /dev/null +++ b/meson/test cases/unit/4 suite selection/subprojects/subprjsucc/successful_test.c @@ -0,0 +1 @@ +int main(void) { return 0 ; } diff --git a/meson/test cases/unit/4 suite selection/successful_test.c b/meson/test cases/unit/4 suite selection/successful_test.c new file mode 100644 index 000000000..8842fc122 --- /dev/null +++ b/meson/test cases/unit/4 suite selection/successful_test.c @@ -0,0 +1 @@ +int main(void) { return 0 ; } |