aboutsummaryrefslogtreecommitdiff
path: root/scripts/run-all-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run-all-tests.sh')
-rwxr-xr-xscripts/run-all-tests.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/run-all-tests.sh b/scripts/run-all-tests.sh
new file mode 100755
index 0000000..073a264
--- /dev/null
+++ b/scripts/run-all-tests.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+# Single sequential entry point for local unit tests and the GNU QEMU matrix.
+
+set -Eeuo pipefail
+root=$(cd -- "$(dirname -- "$0")/.." && pwd)
+dry=0
+for arg in "$@"; do [[ $arg == --dry-run ]] && dry=1; done
+
+if ((dry)); then
+ printf '+ bun %q\n' "$root/scripts/run-bun-tests-bounded.js" >&2
+else
+ bun "$root/scripts/run-bun-tests-bounded.js"
+fi
+exec "$root/scripts/run-gnu-qemu-matrix.sh" "$@"