aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-07-21 14:04:31 +0300
committerGitHub <noreply@github.com>2017-07-21 14:04:31 +0300
commit1764822ae4367a295a66db293313cb644e2c4b6e (patch)
tree0660f8fb09c8bf0ad011f0c8b52ddbda46170cc2 /run_unittests.py
parent93d1b2989ed9c09ad6bee9007bafba4366b43854 (diff)
parent4c8c83c967e79de76c69bf9e524ee6ed8ce6beac (diff)
downloadmeson-1764822ae4367a295a66db293313cb644e2c4b6e.zip
meson-1764822ae4367a295a66db293313cb644e2c4b6e.tar.gz
meson-1764822ae4367a295a66db293313cb644e2c4b6e.tar.bz2
Merge pull request #2046 from martin-ejdestig/mintro_deps_name_key
Modify mesonintrospect --dependencies so 1 element in list is 1 depen…
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index cc034c3..664fdef 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1828,6 +1828,28 @@ class LinuxlikeTests(BasePlatformTests):
return
raise RuntimeError('Linker entries not found in the Ninja file.')
+ def test_introspect_dependencies(self):
+ '''
+ Tests that mesonintrospect --dependencies returns expected output.
+ '''
+ testdir = os.path.join(self.framework_test_dir, '7 gnome')
+ self.init(testdir)
+ glib_found = False
+ gobject_found = False
+ deps = self.introspect('--dependencies')
+ self.assertIsInstance(deps, list)
+ for dep in deps:
+ self.assertIsInstance(dep, dict)
+ self.assertIn('name', dep)
+ self.assertIn('compile_args', dep)
+ self.assertIn('link_args', dep)
+ if dep['name'] == 'glib-2.0':
+ glib_found = True
+ elif dep['name'] == 'gobject-2.0':
+ gobject_found = True
+ self.assertTrue(glib_found)
+ self.assertTrue(gobject_found)
+
class LinuxArmCrossCompileTests(BasePlatformTests):
'''
Tests that verify cross-compilation to Linux/ARM