mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
16 lines
375 B
Bash
Executable File
16 lines
375 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
# go to script root directory
|
|
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 ..
|
|
done
|