summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2018-12-19 22:50:40 +0100
committerXavier Claessens <xclaesse@gmail.com>2018-12-19 18:04:49 -0500
commitb321c32952a3b3de59752d5e2011667850a3ee5d (patch)
tree91ee55ab4e55665641f98a21d745434e9912e600
parent9958262cb235938419436d7715d6dc6e7938e08a (diff)
downloadmeson-b321c32952a3b3de59752d5e2011667850a3ee5d.tar.gz
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 a47f74ef1..743eb12d3 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):
'''