diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-09-09 19:51:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 19:51:28 +0300 |
commit | 8d54b7bda30062569c981b50a85a175565a7c15a (patch) | |
tree | ed1ef8e4b6d3e2f41a8ca18edc78fa879cb26347 /run_unittests.py | |
parent | 4ed5c3acbf4ff4111bc9db1370d0818ad4648f5c (diff) | |
parent | 461c14b8b77abe3ef4802880c2b736ea2419961f (diff) | |
download | meson-8d54b7bda30062569c981b50a85a175565a7c15a.zip meson-8d54b7bda30062569c981b50a85a175565a7c15a.tar.gz meson-8d54b7bda30062569c981b50a85a175565a7c15a.tar.bz2 |
Merge pull request #7428 from jon-turney/introspector-add-languages
Handle add_languages(native:) in introspector
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 2510fce..efe1e29 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -4251,6 +4251,14 @@ recommended as it is not supported on some platforms''') testdir = os.path.join(self.unit_test_dir, '59 introspect buildoptions') self._run(self.mconf_command + [testdir]) + def test_introspect_buildoptions_cross_only(self): + testdir = os.path.join(self.unit_test_dir, '83 cross only introspect') + testfile = os.path.join(testdir, 'meson.build') + res = self.introspect_directory(testfile, ['--buildoptions'] + self.meson_args) + optnames = [o['name'] for o in res] + self.assertIn('c_args', optnames) + self.assertNotIn('build.c_args', optnames) + def test_introspect_json_dump(self): testdir = os.path.join(self.unit_test_dir, '57 introspection') self.init(testdir) |