Document the setup-only and fulltest development and usage (#4362)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2026-10-24 11:20:56 -05:00
1 parent b692386094
commit b64207b3c9
3 files changed
+47 -3

No files matched your search

+2 -2
View File
@@ -28,8 +28,8 @@ fullMinecraftUpTest(){
}
# go through each folder in fulltests and run fullbuilds
files=$(ls */docker-compose.yml)
for file in $files; do
readarray -t files < <(find . -maxdepth 2 -mindepth 2 \( -name compose.yml -o -name docker-compose.yml \) | sort)
for file in "${files[@]}"; do
echo "Starting Tests on $(dirname "$file")"
if ! fullMinecraftUpTest "$file"; then
+11 -1
View File
@@ -41,6 +41,16 @@ setupOnlyMinecraftTest(){
fi
fi
if [ -f require_inside.sh ]; then
# require_inside.sh scripts run inside the image under test to check for things like a particular
# JVM file or feature. A non-zero exit status indicates the test should be skipped.
if ! docker run --rm --entrypoint bash -v "${PWD}/require_inside.sh":/require_inside:ro "${IMAGE_TO_TEST}" -e /require_inside; then
echo "${folder} SKIP (require_inside)"
cd ..
return 0
fi
fi
# false positive since it's used in delta calculations below
# shellcheck disable=SC2034
start=$(date +%s)
@@ -71,7 +81,7 @@ image=""
# Go through each folder in setuponly and test setups
if (( $# == 0 )); then
readarray -t folders < <(find . -maxdepth 2 -mindepth 2 -name docker-compose.yml -exec dirname "{}" \;)
readarray -t folders < <(find . -maxdepth 2 -mindepth 2 \( -name compose.yml -o -name docker-compose.yml \) -exec dirname "{}" \; | sort -u)
foldersList=("${folders[@]}")
image=" using $IMAGE_TO_TEST"
fi