tests.sh: check for parallel_env requirement (closes #1606) (#1607)

* tests.sh: check for parallel_env requirement (closes #1606)

* fix shlint
This commit is contained in:
Disconnect3d 2023-03-05 22:04:11 -04:00 committed by GitHub
parent 6d7d06710e
commit ffad9be01e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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 $@)