diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2018-12-11 17:50:38 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-01-06 12:19:30 +0100 |
commit | 7691b0460c53478cfc2e11fca156557add6579bf (patch) | |
tree | 2831b2421bc8bd3e40fea62232a8a415a96f638e /run_unittests.py | |
parent | b9c4913cf032144eed0cb6308aaff4e77a825f08 (diff) | |
download | meson-7691b0460c53478cfc2e11fca156557add6579bf.zip meson-7691b0460c53478cfc2e11fca156557add6579bf.tar.gz meson-7691b0460c53478cfc2e11fca156557add6579bf.tar.bz2 |
Ninja backend target introspection
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py index 0c313d2..f3f3fa9 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -2562,6 +2562,7 @@ int main(int argc, char **argv) { for t in t_intro: id = t['id'] tf_intro = self.introspect(['--target-files', id]) + tf_intro = list(map(lambda x: os.path.relpath(x, testdir), tf_intro)) self.assertEqual(tf_intro, expected[id]) self.wipe() @@ -2576,6 +2577,9 @@ int main(int argc, char **argv) { for t in t_intro: id = t['id'] tf_intro = self.introspect(['--target-files', id]) + print(tf_intro) + tf_intro = list(map(lambda x: os.path.relpath(x, testdir), tf_intro)) + print(tf_intro) self.assertEqual(tf_intro, expected[id]) self.wipe() @@ -3179,7 +3183,8 @@ recommended as it is not supported on some platforms''') ('language', str), ('compiler', list), ('parameters', list), - ('source_files', list), + ('sources', list), + ('generated_sources', list), ] # First load all files |