aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2018-12-19 22:50:40 +0100
committerNirbheek Chauhan <nirbheek@centricular.com>2019-01-14 15:11:20 +0530
commita5a45e4f6877c40b2f9e2019f8212dd688fcb30a (patch)
tree9fa7295829f3e1d06cd61a5a6a952cbe7de1d6f2
parent3c5a63c70c58cf3f108457327db618b40fab36f8 (diff)
downloadmeson-a5a45e4f6877c40b2f9e2019f8212dd688fcb30a.zip
meson-a5a45e4f6877c40b2f9e2019f8212dd688fcb30a.tar.gz
meson-a5a45e4f6877c40b2f9e2019f8212dd688fcb30a.tar.bz2
Added unit test
-rwxr-xr-xrun_unittests.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index f1b2249..713546b 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -2995,6 +2995,23 @@ recommended as it is not supported on some platforms''')
self.assertEqual(res['subprojects'][0]['version'], 'undefined')
self.assertEqual(res['subprojects'][0]['descriptive_name'], 'subproject')
+ def test_introspect_projectinfo_subprojects(self):
+ testdir = os.path.join(self.common_test_dir, '103 subproject subdir')
+ self.init(testdir)
+ res = self.introspect('--projectinfo')
+ expected = {
+ 'descriptive_name': 'proj',
+ 'version': 'undefined',
+ 'subprojects': [
+ {
+ 'descriptive_name': 'sub',
+ 'name': 'sub',
+ 'version': 'undefined'
+ }
+ ]
+ }
+ self.assertDictEqual(res, expected)
+
class FailureTests(BasePlatformTests):
'''