summaryrefslogtreecommitdiff
path: root/run_project_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-xrun_project_tests.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py
index ab34c27f2..0dc287191 100755
--- a/run_project_tests.py
+++ b/run_project_tests.py
@@ -712,7 +712,14 @@ def _run_test(test: TestDef,
# Build with subprocess
def build_step() -> None:
build_start = time.time()
- pc, o, _ = Popen_safe(compile_commands + dir_args, cwd=test_build_dir, stderr=subprocess.STDOUT)
+
+ if backend is Backend.ninja:
+ # FIXME: meson test inprocess does not handle running ninja via StringIO
+ targets = ['all', 'meson-test-prereq', 'meson-benchmark-prereq']
+ else:
+ targets = []
+
+ pc, o, _ = Popen_safe(compile_commands + dir_args + targets, cwd=test_build_dir, stderr=subprocess.STDOUT)
testresult.add_step(BuildStep.build, o, '', '', time.time() - build_start)
if should_fail == 'build':
if pc.returncode != 0: