diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-03-04 11:06:43 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-03-04 17:36:41 +0100 |
commit | be0a05e7770ba716aed3369e9d7f26713a99ff0a (patch) | |
tree | 51030c85209c74d6640a38135d469efc4b68b206 /run_unittests.py | |
parent | 675bb2f340e581c3b092d082a43b22ce3bae0da8 (diff) | |
download | meson-be0a05e7770ba716aed3369e9d7f26713a99ff0a.zip meson-be0a05e7770ba716aed3369e9d7f26713a99ff0a.tar.gz meson-be0a05e7770ba716aed3369e9d7f26713a99ff0a.tar.bz2 |
mintro: include the correct target filenames for flat layout
Fixes: #8408
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 53642ca..6cdcc8c 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -4538,6 +4538,19 @@ class AllPlatformTests(BasePlatformTests): self.assertIn('c_args', optnames) self.assertNotIn('build.c_args', optnames) + def test_introspect_json_flat(self): + testdir = os.path.join(self.unit_test_dir, '57 introspection') + out = self.init(testdir, extra_args=['-Dlayout=flat']) + infodir = os.path.join(self.builddir, 'meson-info') + self.assertPathExists(infodir) + + with open(os.path.join(infodir, 'intro-targets.json'), 'r') as fp: + targets = json.load(fp) + + for i in targets: + for out in i['filename']: + assert(os.path.relpath(out, self.builddir).startswith('meson-out')) + def test_introspect_json_dump(self): testdir = os.path.join(self.unit_test_dir, '57 introspection') self.init(testdir) |