#!/usr/bin/env bash # Run the full serverAppConfigs test suite with bats. set -uo pipefail cd "$(dirname "$0")" echo "==> serverAppConfigs test run" if ! command -v bats >/dev/null 2>&1; then echo "ERROR: bats is not installed" exit 1 fi bats --print-output-on-failure *.bats status=$? echo if [ "$status" -eq 0 ]; then echo "==> ALL TESTS PASSED" else echo "==> TESTS FAILED (status $status)" fi exit "$status"