aboutsummaryrefslogtreecommitdiff
path: root/test cases/unit/73 summary
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-10-01 11:19:08 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-05-18 13:53:58 -0700
commit0ec94ca0629415d4b555e8ef38a5093a65e0539e (patch)
treed8bb83c50d30eaa5f70931018f7458210a1c4489 /test cases/unit/73 summary
parentcb6662b57299c3644719593115b2ffb828679c36 (diff)
downloadmeson-0ec94ca0629415d4b555e8ef38a5093a65e0539e.zip
meson-0ec94ca0629415d4b555e8ef38a5093a65e0539e.tar.gz
meson-0ec94ca0629415d4b555e8ef38a5093a65e0539e.tar.bz2
backends: Consider arguments passed to a test when cross compiling
Otherwise a wrapper script which takes an executable as an argument will mistakenly run when that executable is cross compiled. This does not wrap said executable in an exe_wrapper, just skip it. Fixes #5982
Diffstat (limited to 'test cases/unit/73 summary')
-rw-r--r--test cases/unit/73 summary/meson.build15
-rw-r--r--test cases/unit/73 summary/subprojects/sub/meson.build4
-rw-r--r--test cases/unit/73 summary/subprojects/sub2/meson.build5
3 files changed, 24 insertions, 0 deletions
diff --git a/test cases/unit/73 summary/meson.build b/test cases/unit/73 summary/meson.build
new file mode 100644
index 0000000..df4540d
--- /dev/null
+++ b/test cases/unit/73 summary/meson.build
@@ -0,0 +1,15 @@
+project('My Project', version : '1.0')
+
+subproject('sub')
+subproject('sub2', required : false)
+
+summary({'Some boolean': false,
+ 'Another boolean': true,
+ 'Some string': 'Hello World',
+ 'A list': ['string', 1, true],
+ 'empty list': [],
+ }, section: 'Configuration')
+summary('A number', 1, section: 'Configuration')
+summary('yes', true, bool_yn : true, section: 'Configuration')
+summary('no', false, bool_yn : true, section: 'Configuration')
+summary('coma list', ['a', 'b', 'c'], list_sep: ', ', section: 'Configuration')
diff --git a/test cases/unit/73 summary/subprojects/sub/meson.build b/test cases/unit/73 summary/subprojects/sub/meson.build
new file mode 100644
index 0000000..e7d7833
--- /dev/null
+++ b/test cases/unit/73 summary/subprojects/sub/meson.build
@@ -0,0 +1,4 @@
+project('Some Subproject', version : '2.0')
+
+summary('string', 'bar')
+summary({'integer': 1, 'boolean': true})
diff --git a/test cases/unit/73 summary/subprojects/sub2/meson.build b/test cases/unit/73 summary/subprojects/sub2/meson.build
new file mode 100644
index 0000000..86b9cfd
--- /dev/null
+++ b/test cases/unit/73 summary/subprojects/sub2/meson.build
@@ -0,0 +1,5 @@
+project('sub2')
+
+error('This subproject failed')
+
+summary('Section', 'Should not be seen')