From ffad9be01ebda8d530508f1589724b8e1d9e3280 Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Sun, 5 Mar 2023 22:04:11 -0400 Subject: [PATCH] tests.sh: check for parallel_env requirement (closes #1606) (#1607) * tests.sh: check for parallel_env requirement (closes #1606) * fix shlint --- tests.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests.sh b/tests.sh index 7bc3da4dc..dec798ab6 100755 --- a/tests.sh +++ b/tests.sh @@ -1,5 +1,12 @@ #!/bin/bash +# Check some basic test dependencies +if ! command -v env_parallel &> /dev/null; then + echo 'Error: The `env_parallel` command could not be found. You should run `setup-dev.sh` to install development dependencies.' + echo '(Alternatively, run ./tests.sh with `--serial` to skip using parallel test running. However, if `env_parallel` is missing, it is likely that other dependencies like the `zig` compiler are also missing)' + exit +fi + # Run integration tests (cd tests/gdb-tests && ./tests.sh $@)