2020-07-11 19:09:08 +00:00
|
|
|
#!/bin/bash
|
2022-01-24 04:19:25 +00:00
|
|
|
set -euo pipefail
|
|
|
|
IFS=$'\n\t'
|
2020-07-11 19:09:08 +00:00
|
|
|
|
2022-01-04 03:59:19 +00:00
|
|
|
# go to script root directory
|
2021-12-05 00:42:03 +00:00
|
|
|
cd "$(dirname "$0")" || exit 1
|
2020-07-11 19:09:08 +00:00
|
|
|
|
2022-01-20 23:09:34 +00:00
|
|
|
# go through top level folders and trigger the tests in the subfolders
|
2022-01-24 04:19:25 +00:00
|
|
|
readarray -t folders < <(find . -maxdepth 2 -mindepth 2 -name test.sh -printf '%h\n')
|
|
|
|
for folder in "${folders[@]}"; do
|
|
|
|
cd "$folder"
|
|
|
|
echo "Starting ${folder} Tests"
|
|
|
|
bash ./test.sh
|
|
|
|
cd ..
|
2022-01-04 03:59:19 +00:00
|
|
|
done
|