run_project_tests: add support for loading cross files

pull/4743/head
Dylan Baker 6 years ago
parent 30cf4f9c3a
commit 097faee83b
  1. 3
      run_project_tests.py

@ -348,6 +348,9 @@ def _run_test(testdir, test_build_dir, install_dir, extra_args, compiler, backen
nativefile = os.path.join(testdir, 'nativefile.ini') nativefile = os.path.join(testdir, 'nativefile.ini')
if os.path.exists(nativefile): if os.path.exists(nativefile):
gen_args.extend(['--native-file', 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) (returncode, stdo, stde) = run_configure(gen_args)
try: try:
logfile = Path(test_build_dir, 'meson-logs', 'meson-log.txt') logfile = Path(test_build_dir, 'meson-logs', 'meson-log.txt')

Loading…
Cancel
Save