mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
bd4760e504
Co-authored-by: christopher blodgett <christopher.blodgett@gmail.com> Co-authored-by: Geoff Bourne <itzgeoff@gmail.com>
19 lines
395 B
Bash
Executable File
19 lines
395 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# go to script root directory
|
|
cd "$(dirname "$0")" || exit 1
|
|
|
|
# go through top level folders and trigger the tests in the subfolders
|
|
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 ..
|
|
fi
|
|
done
|