docker-minecraft-server/tests/test.sh

19 lines
395 B
Bash
Raw Normal View History

#!/bin/bash
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
2022-01-04 03:59:19 +00:00
FOLDERS=$(ls)
for folder in $FOLDERS; do
# If folder is a directory
if [ -d "$folder" ]; then
cd "$folder"
if [ -f "./test.sh" ]; then
echo "Starting ${folder} Tests"
sh ./test.sh
fi
cd ..
2022-01-04 03:59:19 +00:00
fi
done