aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/4 suite selection
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/unit/4 suite selection
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/unit/4 suite selection')
-rw-r--r--meson/test cases/unit/4 suite selection/failing_test.c1
-rw-r--r--meson/test cases/unit/4 suite selection/meson.build17
-rw-r--r--meson/test cases/unit/4 suite selection/subprojects/subprjfail/failing_test.c1
-rw-r--r--meson/test cases/unit/4 suite selection/subprojects/subprjfail/meson.build9
-rw-r--r--meson/test cases/unit/4 suite selection/subprojects/subprjmix/failing_test.c1
-rw-r--r--meson/test cases/unit/4 suite selection/subprojects/subprjmix/meson.build9
-rw-r--r--meson/test cases/unit/4 suite selection/subprojects/subprjmix/successful_test.c1
-rw-r--r--meson/test cases/unit/4 suite selection/subprojects/subprjsucc/meson.build9
-rw-r--r--meson/test cases/unit/4 suite selection/subprojects/subprjsucc/successful_test.c1
-rw-r--r--meson/test cases/unit/4 suite selection/successful_test.c1
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 ; }