diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-01-07 14:08:28 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-02-04 14:42:55 -0800 |
commit | 30cf4f9c3a534b5fb944241b8ccf84f0b490c8f5 (patch) | |
tree | 1df96dc520b05026da8aff043395fe4550ba07b2 /run_project_tests.py | |
parent | 902aaf2ce67a8a2a21580685673400f675bf28c1 (diff) | |
download | meson-30cf4f9c3a534b5fb944241b8ccf84f0b490c8f5.zip meson-30cf4f9c3a534b5fb944241b8ccf84f0b490c8f5.tar.gz meson-30cf4f9c3a534b5fb944241b8ccf84f0b490c8f5.tar.bz2 |
run_project_tests: Add support for loading a native file in tests
The file must be called nativefile.txt
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index d10f3a2..a04764f 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -345,6 +345,9 @@ def _run_test(testdir, test_build_dir, install_dir, extra_args, compiler, backen if pass_libdir_to_test(testdir): gen_args += ['--libdir', 'lib'] gen_args += [testdir, test_build_dir] + flags + test_args + extra_args + nativefile = os.path.join(testdir, 'nativefile.ini') + if os.path.exists(nativefile): + gen_args.extend(['--native-file', nativefile]) (returncode, stdo, stde) = run_configure(gen_args) try: logfile = Path(test_build_dir, 'meson-logs', 'meson-log.txt') |