summaryrefslogtreecommitdiff
path: root/ci/run-test-slice-meson.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/run-test-slice-meson.sh')
-rwxr-xr-xci/run-test-slice-meson.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/ci/run-test-slice-meson.sh b/ci/run-test-slice-meson.sh
new file mode 100755
index 0000000000..961c94fba0
--- /dev/null
+++ b/ci/run-test-slice-meson.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# We must load the build options so we know where to find
+# things like TEST_OUTPUT_DIRECTORY. This has to come before
+# loading lib.sh, though, because it may clobber some CI lib
+# variables like our custom GIT_TEST_OPTS.
+. "$1"/GIT-BUILD-OPTIONS
+. ${0%/*}/lib.sh
+
+group "Run tests" \
+ meson test -C "$1" --no-rebuild --print-errorlogs \
+ --test-args="$GIT_TEST_OPTS" --slice "$((1+$2))/$3" ||
+handle_failed_tests