aboutsummaryrefslogtreecommitdiff
path: root/run_project_tests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-02-12 20:04:23 +0200
committerGitHub <noreply@github.com>2019-02-12 20:04:23 +0200
commit82e4cb7731e59237746e480f9611700f1d4fda76 (patch)
tree24e8133c742258833badd29a03188cb72bb0e044 /run_project_tests.py
parentccdac894eedebfb49a90f87a3752cbcfeb28083e (diff)
parent0eccce799f5643dda7a65f3e841cd54785f03ec5 (diff)
downloadmeson-82e4cb7731e59237746e480f9611700f1d4fda76.zip
meson-82e4cb7731e59237746e480f9611700f1d4fda76.tar.gz
meson-82e4cb7731e59237746e480f9611700f1d4fda76.tar.bz2
Merge pull request #4743 from dcbaker/native-file-extended
Extend native files to store install path information
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-xrun_project_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/run_project_tests.py b/run_project_tests.py
index d10f3a2..c35928f 100755
--- a/run_project_tests.py
+++ b/run_project_tests.py
@@ -345,6 +345,12 @@ 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])
+ crossfile = os.path.join(testdir, 'crossfile.ini')
+ if os.path.exists(crossfile):
+ gen_args.extend(['--cross-file', crossfile])
(returncode, stdo, stde) = run_configure(gen_args)
try:
logfile = Path(test_build_dir, 'meson-logs', 'meson-log.txt')