docker-minecraft-server/tests/test.sh

16 lines
375 B
Bash
Raw Normal View History

#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
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
# go through top level folders and trigger the tests in the subfolders
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