#!/bin/bash # One command for all behaviour checks. Exit 0 = no FAIL (SKIPs are loud and # counted, per the rule that loud skips beat silent corruption). set -u cd "$(dirname "$0")/.." || exit 1 pass=0; fail=0; skip=0 for s in scripts/check-readiness.sh scripts/check-arch.sh scripts/check-migration.sh scripts/check-parity.sh scripts/check-checklist.sh scripts/check-protocols.sh scripts/check-phases.sh; do out=$(bash "$s" 2>&1) echo "$out" | tail -2 case "$out" in *FAIL*) fail=$((fail+1));; *SKIP*) skip=$((skip+1));; *) pass=$((pass+1));; esac done echo "check-all: $pass PASS, $skip SKIP, $fail FAIL" [ "$fail" = 0 ]