From 924cf5e6220836be7ba9b53082948315497fce30 Mon Sep 17 00:00:00 2001 From: Daniel Schulte Date: Fri, 1 Mar 2019 21:29:52 +0100 Subject: mintro: Add name of subproject the target is contained in to --target output --- run_unittests.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'run_unittests.py') 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: -- cgit v1.1