From ec5fe58e6dd0f42f126b48d1ebd191deeea38541 Mon Sep 17 00:00:00 2001 From: Stephen Gregoratto Date: Fri, 26 Feb 2021 15:54:49 +1100 Subject: Allow printing UserOptions in the summary --- test cases/unit/73 summary/meson.build | 1 + test cases/unit/73 summary/meson_options.txt | 1 + 2 files changed, 2 insertions(+) create mode 100644 test cases/unit/73 summary/meson_options.txt (limited to 'test cases/unit') 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') -- cgit v1.3