diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-12-09 18:00:06 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-12-09 18:00:06 +0200 |
commit | 70695bead40f97825357e620394918d1a248bf1a (patch) | |
tree | d439f53a5d954307f438aac7c29f9ca051503583 /test cases/common | |
parent | 0585a959d3bc7e71c896d53ed4f9c74ba49f4825 (diff) | |
download | meson-70695bead40f97825357e620394918d1a248bf1a.zip meson-70695bead40f97825357e620394918d1a248bf1a.tar.gz meson-70695bead40f97825357e620394918d1a248bf1a.tar.bz2 |
Added possibility to have multiple test suites so you can run only a subset of tests. Closes #325.
Diffstat (limited to 'test cases/common')
-rw-r--r-- | test cases/common/101 suites/exe1.c | 6 | ||||
-rw-r--r-- | test cases/common/101 suites/exe2.c | 6 | ||||
-rw-r--r-- | test cases/common/101 suites/meson.build | 9 | ||||
-rw-r--r-- | test cases/common/101 suites/subprojects/sub/meson.build | 7 | ||||
-rw-r--r-- | test cases/common/101 suites/subprojects/sub/sub1.c | 6 | ||||
-rw-r--r-- | test cases/common/101 suites/subprojects/sub/sub2.c | 6 |
6 files changed, 40 insertions, 0 deletions
diff --git a/test cases/common/101 suites/exe1.c b/test cases/common/101 suites/exe1.c new file mode 100644 index 0000000..23894c0 --- /dev/null +++ b/test cases/common/101 suites/exe1.c @@ -0,0 +1,6 @@ +#include<stdio.h> + +int main(int argc, char **argv) { + printf("I am test exe1.\n"); + return 0; +} diff --git a/test cases/common/101 suites/exe2.c b/test cases/common/101 suites/exe2.c new file mode 100644 index 0000000..ec88e20 --- /dev/null +++ b/test cases/common/101 suites/exe2.c @@ -0,0 +1,6 @@ +#include<stdio.h> + +int main(int argc, char **argv) { + printf("I am test exe2.\n"); + return 0; +} diff --git a/test cases/common/101 suites/meson.build b/test cases/common/101 suites/meson.build new file mode 100644 index 0000000..098c95f --- /dev/null +++ b/test cases/common/101 suites/meson.build @@ -0,0 +1,9 @@ +project('multiple test suites', 'c') + +subproject('sub') + +exe1 = executable('exe1', 'exe1.c') +exe2 = executable('exe2', 'exe2.c') + +test('exe1', exe1) +test('exe2', exe2, suite : 'suite2') diff --git a/test cases/common/101 suites/subprojects/sub/meson.build b/test cases/common/101 suites/subprojects/sub/meson.build new file mode 100644 index 0000000..697d95f --- /dev/null +++ b/test cases/common/101 suites/subprojects/sub/meson.build @@ -0,0 +1,7 @@ +project('subproject test suites', 'c') + +sub1 = executable('sub1', 'sub1.c') +sub2 = executable('sub2', 'sub2.c') + +test('sub1', sub1) +test('sub2', sub2, suite : 'suite2') diff --git a/test cases/common/101 suites/subprojects/sub/sub1.c b/test cases/common/101 suites/subprojects/sub/sub1.c new file mode 100644 index 0000000..3409e48 --- /dev/null +++ b/test cases/common/101 suites/subprojects/sub/sub1.c @@ -0,0 +1,6 @@ +#include<stdio.h> + +int main(int argc, char **argv) { + printf("I am test sub1.\n"); + return 0; +} diff --git a/test cases/common/101 suites/subprojects/sub/sub2.c b/test cases/common/101 suites/subprojects/sub/sub2.c new file mode 100644 index 0000000..1a64a2a --- /dev/null +++ b/test cases/common/101 suites/subprojects/sub/sub2.c @@ -0,0 +1,6 @@ +#include<stdio.h> + +int main(int argc, char **argv) { + printf("I am test sub2.\n"); + return 0; +} |