diff options
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) |