aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-10-04 11:12:29 -0400
committerEli Schwartz <eschwartz93@gmail.com>2021-10-08 17:47:35 -0400
commit329d111709ab5c5140f75f29c7176c9546de5770 (patch)
tree101c75a8dab9b02784d8401cb1d6877f0f241a05 /unittests
parent5316c7df62926d49149053b5d8ccfb4a0042856e (diff)
downloadmeson-329d111709ab5c5140f75f29c7176c9546de5770.zip
meson-329d111709ab5c5140f75f29c7176c9546de5770.tar.gz
meson-329d111709ab5c5140f75f29c7176c9546de5770.tar.bz2
python: Add platlibdir and purelibdir options
Diffstat (limited to 'unittests')
-rw-r--r--unittests/datatests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/unittests/datatests.py b/unittests/datatests.py
index b82ff1c..e440243 100644
--- a/unittests/datatests.py
+++ b/unittests/datatests.py
@@ -126,7 +126,8 @@ class DataTests(unittest.TestCase):
subsections = tee(re.finditer(r"^### (.+)$", content, re.MULTILINE))
subcontent1 = self._get_section_content("Directories", subsections[0], content)
subcontent2 = self._get_section_content("Core options", subsections[1], content)
- for subcontent in (subcontent1, subcontent2):
+ subcontent3 = self._get_section_content("Module options", sections, md)
+ for subcontent in (subcontent1, subcontent2, subcontent3):
# Find the option names
options = set()
# Match either a table row or a table heading separator: | ------ |
@@ -145,8 +146,8 @@ class DataTests(unittest.TestCase):
found_entries |= options
self.assertEqual(found_entries, {
- *(str(k) for k in mesonbuild.coredata.BUILTIN_OPTIONS),
- *(str(k) for k in mesonbuild.coredata.BUILTIN_OPTIONS_PER_MACHINE),
+ *(str(k.evolve(module=None)) for k in mesonbuild.coredata.BUILTIN_OPTIONS),
+ *(str(k.evolve(module=None)) for k in mesonbuild.coredata.BUILTIN_OPTIONS_PER_MACHINE),
})
# Check that `buildtype` table inside `Core options` matches how