diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-09-12 05:16:01 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2020-09-17 22:25:37 +0000 |
commit | 946aeb6947cac6b88dd1ac1aafa32df158659143 (patch) | |
tree | a98b47adbf85745fc526a430d009b9a93f63adb0 | |
parent | 85d036ebbb87a5c9ad9265331a2cc0c4fca91c58 (diff) | |
download | meson-946aeb6947cac6b88dd1ac1aafa32df158659143.zip meson-946aeb6947cac6b88dd1ac1aafa32df158659143.tar.gz meson-946aeb6947cac6b88dd1ac1aafa32df158659143.tar.bz2 |
project tests: Also check whether introspect works
-rwxr-xr-x | run_project_tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index 9b6aef8..e25729a 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -1186,6 +1186,11 @@ def check_meson_commands_work(options): pc, o, e = Popen_safe(gen_cmd) if pc.returncode != 0: raise RuntimeError('Failed to configure {!r}:\n{}\n{}'.format(testdir, e, o)) + print('Checking that introspect works...') + pc, o, e = Popen_safe(meson_commands + ['introspect', '--targets'], cwd=build_dir) + json.loads(o) + if pc.returncode != 0: + raise RuntimeError('Failed to introspect --targets {!r}:\n{}\n{}'.format(testdir, e, o)) print('Checking that building works...') dir_args = get_backend_args_for_dir(backend, build_dir) pc, o, e = Popen_safe(compile_commands + dir_args, cwd=build_dir) |