#!/bin/sh # Landing gate for app/ changes: analyze, then the full test suite. # # Usage: sh app/tool/check_full.sh (or sh tool/check_full.sh from app/). # The wrappers bound output and test memory. Trust their exit statuses, never # success-looking text in a failed command's log. Keep their summaries in # build/check/; each summary also names the underlying full log. set -eu cd "$(dirname "$0")/.." mkdir -p build/check check() { name=$1 log=$2 shift 2 if "$@" > "$log" 2>&1; then cat "$log" else status=$? cat "$log" echo "CHECK FAILED: $name exited $status ($log)" return "$status" fi } check analyze build/check/analyze.log tool/analyze.sh check test build/check/test.log tool/memwatch/full.sh test echo "CHECK PASSED: analyze and memory-watched test suite passed"