aboutsummaryrefslogtreecommitdiff
path: root/test cases/common
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-12-09 18:00:06 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-12-09 18:00:06 +0200
commit70695bead40f97825357e620394918d1a248bf1a (patch)
treed439f53a5d954307f438aac7c29f9ca051503583 /test cases/common
parent0585a959d3bc7e71c896d53ed4f9c74ba49f4825 (diff)
downloadmeson-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.c6
-rw-r--r--test cases/common/101 suites/exe2.c6
-rw-r--r--test cases/common/101 suites/meson.build9
-rw-r--r--test cases/common/101 suites/subprojects/sub/meson.build7
-rw-r--r--test cases/common/101 suites/subprojects/sub/sub1.c6
-rw-r--r--test cases/common/101 suites/subprojects/sub/sub2.c6
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;
+}