fix: update exec of multiple scripts for linux

This commit is contained in:
Maciej Sypien 2024-09-21 10:50:10 +02:00
parent 4944b6ecc0
commit ebbdcb187f
No known key found for this signature in database
GPG key ID: 10BC01EDA6827DC8

View file

@ -1,7 +1,13 @@
#!/usr/bin/env bash
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
main() {
for test in $(compgen -A function | grep "^test_linux_"); do "$test"; done
set -e # exit on error
_files=$(find "$CURRENT_DIR" -name "test_linux_*" -type f)
for test in $_files; do
bash -c "$test"
done
}
main "$@"