run_project_tests: Add support for loading a native file in tests

The file must be called nativefile.txt
This commit is contained in:
Dylan Baker 2019-01-07 14:08:28 -08:00
parent 902aaf2ce6
commit 30cf4f9c3a
1 changed files with 3 additions and 0 deletions

View File

@ -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')