diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/unit/72 summary | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/unit/72 summary')
5 files changed, 37 insertions, 0 deletions
diff --git a/meson/test cases/unit/72 summary/meson.build b/meson/test cases/unit/72 summary/meson.build new file mode 100644 index 000000000..6e0f69ad3 --- /dev/null +++ b/meson/test cases/unit/72 summary/meson.build @@ -0,0 +1,23 @@ +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': [], + 'enabled_opt': get_option('enabled_opt'), + }, section: 'Configuration') +summary({'missing prog': find_program('xyzzy', required: false), + 'existing prog': import('python').find_installation(), + 'missing dep': dependency('', required: false), + 'external dep': dependency('zlib', required: false), + 'internal dep': declare_dependency(), + }, section: 'Stuff') +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') +summary('long coma list', ['alpha', 'alphacolor', 'apetag', 'audiofx', 'audioparsers', 'auparse', 'autodetect', 'avi'], list_sep: ', ', section: 'Plugins') diff --git a/meson/test cases/unit/72 summary/meson_options.txt b/meson/test cases/unit/72 summary/meson_options.txt new file mode 100644 index 000000000..f2c41f8fb --- /dev/null +++ b/meson/test cases/unit/72 summary/meson_options.txt @@ -0,0 +1 @@ +option('enabled_opt', type: 'feature', value: 'enabled') diff --git a/meson/test cases/unit/72 summary/subprojects/sub/meson.build b/meson/test cases/unit/72 summary/subprojects/sub/meson.build new file mode 100644 index 000000000..e7d783384 --- /dev/null +++ b/meson/test cases/unit/72 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/meson/test cases/unit/72 summary/subprojects/sub2/meson.build b/meson/test cases/unit/72 summary/subprojects/sub2/meson.build new file mode 100644 index 000000000..2560bd05d --- /dev/null +++ b/meson/test cases/unit/72 summary/subprojects/sub2/meson.build @@ -0,0 +1,6 @@ +project('sub2') + +subproject('subsub') + +summary('Section', 'Should not be seen') +error('This subproject failed') diff --git a/meson/test cases/unit/72 summary/subprojects/sub2/subprojects/subsub/meson.build b/meson/test cases/unit/72 summary/subprojects/sub2/subprojects/subsub/meson.build new file mode 100644 index 000000000..98a5a269d --- /dev/null +++ b/meson/test cases/unit/72 summary/subprojects/sub2/subprojects/subsub/meson.build @@ -0,0 +1,3 @@ +project('subsub') + +summary('Something', 'Some value') |