test: initial bats test tagging system, shellcheck fix

This commit is contained in:
Luke McCrone
2026-04-16 16:31:00 -03:00
parent 640a7c516d
commit 29f378ea5e
21 changed files with 495 additions and 12 deletions

View File

@@ -26,3 +26,5 @@ jobs:
run: |
docker compose -f tests/docker-compose-bats.yml --project-directory . \
up --exit-code-from s3api_np_only s3api_np_only
docker compose -f tests/docker-compose-bats.yml --project-directory . \
up --exit-code-from openssl_only openssl_only

View File

@@ -14,4 +14,14 @@ jobs:
- name: Run checks
run: |
shellcheck --version
shellcheck -e SC1091 tests/*.sh tests/*/*.sh
overall_rc=0
while IFS= read -r -d '' f; do
rc=0
echo "CHECKING $f"
shellcheck -S error -e SC1091 "$f" || rc=$?
echo "exit=$rc file=$f"
if [ "$rc" -ne 0 ]; then
overall_rc="$rc"
fi
done < <(find . \( -path './tests/*.sh' -o -path './tests/*/*.sh' \) -print0)
exit "$overall_rc"