diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2019-12-11 16:19:10 -0500 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2019-12-12 18:30:17 -0500 |
commit | 6e865a233099a00e9ea08f6a2f911ede3c7b4215 (patch) | |
tree | 49f0e3f610cce931c9e75f54c2ee95092337e53a /test cases | |
parent | 17dd9e5bffd42c3ad6c2dff1f15639d6adf31e1c (diff) | |
download | meson-6e865a233099a00e9ea08f6a2f911ede3c7b4215.zip meson-6e865a233099a00e9ea08f6a2f911ede3c7b4215.tar.gz meson-6e865a233099a00e9ea08f6a2f911ede3c7b4215.tar.bz2 |
Add a summary() function for configuration summarization
Based on patch from Dylan Baker.
Fixes #757
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/unit/74 summary/meson.build | 15 | ||||
-rw-r--r-- | test cases/unit/74 summary/subprojects/sub/meson.build | 3 | ||||
-rw-r--r-- | test cases/unit/74 summary/subprojects/sub2/meson.build | 5 |
3 files changed, 23 insertions, 0 deletions
diff --git a/test cases/unit/74 summary/meson.build b/test cases/unit/74 summary/meson.build new file mode 100644 index 0000000..11f96d0 --- /dev/null +++ b/test cases/unit/74 summary/meson.build @@ -0,0 +1,15 @@ +project('My Project', version : '1.0') + +summary('Directories', {'bindir': get_option('bindir'), + 'libdir': get_option('libdir'), + 'datadir': get_option('datadir'), + }) + +subproject('sub') +subproject('sub2', required : false) + +summary('Configuration', {'Some boolean': false, + 'Another boolean': true, + 'Some string': 'Hello World', + 'A list': ['string', 1, true], + }) diff --git a/test cases/unit/74 summary/subprojects/sub/meson.build b/test cases/unit/74 summary/subprojects/sub/meson.build new file mode 100644 index 0000000..f47c7b7 --- /dev/null +++ b/test cases/unit/74 summary/subprojects/sub/meson.build @@ -0,0 +1,3 @@ +project('Some Subproject', version : '2.0') + +summary('Features', {'foo': 'bar'}) diff --git a/test cases/unit/74 summary/subprojects/sub2/meson.build b/test cases/unit/74 summary/subprojects/sub2/meson.build new file mode 100644 index 0000000..86b9cfd --- /dev/null +++ b/test cases/unit/74 summary/subprojects/sub2/meson.build @@ -0,0 +1,5 @@ +project('sub2') + +error('This subproject failed') + +summary('Section', 'Should not be seen') |