aboutsummaryrefslogtreecommitdiff
path: root/unittests/allplatformstests.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-09-01 11:01:01 -0400
committerXavier Claessens <xclaesse@gmail.com>2021-09-02 19:38:29 -0400
commit5e55a0bb2b95546da41fd27dbccc8c056815f391 (patch)
tree6d48d931ee300630fa987b7e74654194b86d71ab /unittests/allplatformstests.py
parenta616a23713dd34638adee29413603b2eeb80456b (diff)
downloadmeson-5e55a0bb2b95546da41fd27dbccc8c056815f391.zip
meson-5e55a0bb2b95546da41fd27dbccc8c056815f391.tar.gz
meson-5e55a0bb2b95546da41fd27dbccc8c056815f391.tar.bz2
interpreter: Add summary of all user defined options
It is a commonly needed information to help debugging build issues. We already were printing options with non-default value at the end of the configure but outside of the summary. Keeping the list of user defined options in the interpreter will also in the future be useful to use new default value on reconfigure.
Diffstat (limited to 'unittests/allplatformstests.py')
-rw-r--r--unittests/allplatformstests.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index fd88a27..66b8bf4 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -3086,7 +3086,7 @@ class AllPlatformTests(BasePlatformTests):
def test_summary(self):
testdir = os.path.join(self.unit_test_dir, '72 summary')
- out = self.init(testdir)
+ out = self.init(testdir, extra_args=['-Denabled_opt=enabled'])
expected = textwrap.dedent(r'''
Some Subproject 2.0
@@ -3128,6 +3128,12 @@ class AllPlatformTests(BasePlatformTests):
sub : YES
sub2 : NO Problem encountered: This subproject failed
subsub : YES
+
+ User defined options
+ backend : ''' + self.backend.name + '''
+ libdir : lib
+ prefix : /usr
+ enabled_opt : enabled
''')
expected_lines = expected.split('\n')[1:]
out_start = out.find(expected_lines[0])