summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorStephen Gregoratto <dev@sgregoratto.me>2021-02-26 15:54:49 +1100
committerXavier Claessens <xclaesse@gmail.com>2021-02-26 10:28:00 -0500
commitec5fe58e6dd0f42f126b48d1ebd191deeea38541 (patch)
tree6e442e0fa8ae90baa99eabb57b9be36d4f6e74a3 /test cases
parentace22f21a7f0abe9250e673a258e4adf3afa4ac0 (diff)
downloadmeson-ec5fe58e6dd0f42f126b48d1ebd191deeea38541.tar.gz
Allow printing UserOptions in the summary
Diffstat (limited to 'test cases')
-rw-r--r--test cases/unit/73 summary/meson.build1
-rw-r--r--test cases/unit/73 summary/meson_options.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/test cases/unit/73 summary/meson.build b/test cases/unit/73 summary/meson.build
index 50383b4d7..4205d6fff 100644
--- a/test cases/unit/73 summary/meson.build
+++ b/test cases/unit/73 summary/meson.build
@@ -8,6 +8,7 @@ summary({'Some boolean': false,
'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(),
diff --git a/test cases/unit/73 summary/meson_options.txt b/test cases/unit/73 summary/meson_options.txt
new file mode 100644
index 000000000..f2c41f8fb
--- /dev/null
+++ b/test cases/unit/73 summary/meson_options.txt
@@ -0,0 +1 @@
+option('enabled_opt', type: 'feature', value: 'enabled')