aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorDaniel Schulte <trilader@users.noreply.github.com>2019-03-01 21:29:52 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2019-03-01 22:29:52 +0200
commit924cf5e6220836be7ba9b53082948315497fce30 (patch)
treec4b40a71576e84757b24278b46af63885f068ab0 /run_unittests.py
parentded0defc3fa12d11d722dba78f9dba66256a3b16 (diff)
downloadmeson-924cf5e6220836be7ba9b53082948315497fce30.zip
meson-924cf5e6220836be7ba9b53082948315497fce30.tar.gz
meson-924cf5e6220836be7ba9b53082948315497fce30.tar.bz2
mintro: Add name of subproject the target is contained in to --target output
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index cf6c910..dcd3ced 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -3236,6 +3236,21 @@ recommended as it is not supported on some platforms''')
}
self.assertDictEqual(res, expected)
+ def test_introspection_target_subproject(self):
+ testdir = os.path.join(self.common_test_dir, '46 subproject')
+ self.init(testdir)
+ res = self.introspect('--targets')
+
+ expected = {
+ 'sublib': 'sublib',
+ 'simpletest': 'sublib',
+ 'user': None
+ }
+
+ for entry in res:
+ name = entry['name']
+ self.assertEquals(entry['subproject'], expected[name])
+
@skipIfNoExecutable('clang-format')
def test_clang_format(self):
if self.backend is not Backend.ninja: