aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2019-04-15 01:23:10 -0400
committerJohn Ericson <git@JohnEricson.me>2019-06-05 23:05:34 -0400
commitaf2d7af9983a04fa2dd6c073bdc41847a23012c8 (patch)
treeaa84b24acb247df40bc924557f92934e3e3776f3 /run_unittests.py
parent126100b1666bfd75db37a0a9aaeee5dbfd11e53a (diff)
downloadmeson-af2d7af9983a04fa2dd6c073bdc41847a23012c8.zip
meson-af2d7af9983a04fa2dd6c073bdc41847a23012c8.tar.gz
meson-af2d7af9983a04fa2dd6c073bdc41847a23012c8.tar.bz2
Per machine do 'build.' and '' option prefixes
See the docs/ changes for details.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/run_unittests.py b/run_unittests.py
index b8f0bf2..ff623b9 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1088,7 +1088,10 @@ class DataTests(unittest.TestCase):
found_entries |= arches
break
- self.assertEqual(found_entries, set(mesonbuild.coredata.builtin_options.keys()))
+ self.assertEqual(found_entries, set([
+ *mesonbuild.coredata.builtin_options.keys(),
+ *mesonbuild.coredata.builtin_options_per_machine.keys()
+ ]))
def test_cpu_families_documented(self):
with open("docs/markdown/Reference-tables.md") as f:
@@ -5193,8 +5196,7 @@ endian = 'little'
@skipIfNoPkgconfig
def test_pkg_config_option(self):
testdir = os.path.join(self.unit_test_dir, '55 pkg_config_path option')
- self.init(testdir, extra_args=['-Dpkg_config_path=' + os.path.join(testdir, 'extra_path')])
-
+ self.init(testdir, extra_args=['-Dpkg_config_path=' + os.path.join(testdir, 'host_extra_path')])
def should_run_cross_arm_tests():
return shutil.which('arm-linux-gnueabihf-gcc') and not platform.machine().lower().startswith('arm')
@@ -5294,7 +5296,10 @@ class LinuxCrossMingwTests(BasePlatformTests):
@skipIfNoPkgconfig
def test_cross_pkg_config_option(self):
testdir = os.path.join(self.unit_test_dir, '55 pkg_config_path option')
- self.init(testdir, extra_args=['-Dcross_pkg_config_path=' + os.path.join(testdir, 'extra_path')])
+ self.init(testdir, extra_args=[
+ '-Dbuild.pkg_config_path=' + os.path.join(testdir, 'build_extra_path'),
+ '-Dpkg_config_path=' + os.path.join(testdir, 'host_extra_path'),
+ ])
class PythonTests(BasePlatformTests):