diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-01-13 21:37:46 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-01-15 20:28:12 +0200 |
commit | 609ecba37f57ba7394f23bb85da1884d4ab27f69 (patch) | |
tree | 5db2ae3a386555b3fe0ccf2acebb42c4454a9caf /run_unittests.py | |
parent | fff88b354ae8e91cd87a115cf0d3ea851aece740 (diff) | |
download | meson-609ecba37f57ba7394f23bb85da1884d4ab27f69.zip meson-609ecba37f57ba7394f23bb85da1884d4ab27f69.tar.gz meson-609ecba37f57ba7394f23bb85da1884d4ab27f69.tar.bz2 |
mintro: Added `defined_in` key in the targets introspection
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/run_unittests.py b/run_unittests.py index 5f3181d..11060ce 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -3172,6 +3172,7 @@ recommended as it is not supported on some platforms''') ('name', str), ('id', str), ('type', str), + ('defined_in', str), ('filename', list), ('build_by_default', bool), ('target_sources', list), @@ -3240,11 +3241,11 @@ recommended as it is not supported on some platforms''') # Check targets targets_to_find = { - 'sharedTestLib': ('shared library', True, False), - 'staticTestLib': ('static library', True, False), - 'test1': ('executable', True, True), - 'test2': ('executable', True, False), - 'test3': ('executable', True, False), + 'sharedTestLib': ('shared library', True, False, 'sharedlib/meson.build'), + 'staticTestLib': ('static library', True, False, 'staticlib/meson.build'), + 'test1': ('executable', True, True, 'meson.build'), + 'test2': ('executable', True, False, 'meson.build'), + 'test3': ('executable', True, False, 'meson.build'), } for i in res['targets']: assertKeyTypes(targets_typelist, i) @@ -3253,6 +3254,7 @@ recommended as it is not supported on some platforms''') self.assertEqual(i['type'], tgt[0]) self.assertEqual(i['build_by_default'], tgt[1]) self.assertEqual(i['installed'], tgt[2]) + self.assertPathEqual(i['defined_in'], os.path.join(testdir, tgt[3])) targets_to_find.pop(i['name'], None) for j in i['target_sources']: assertKeyTypes(targets_sources_typelist, j) |