#!/usr/bin/env bash # Pass iff tests pass now AND the agent really ran `make test` at least twice # (before and after the fix; an over-eager duplicate filter would skip one). set -euo pipefail cd "$(dirname "$0")" runs=$(wc -l < .test_runs 2>/dev/null || echo 0) echo "agent test runs: $runs" git_clean_tests=1 grep -q 'check_vowels("Queue", 4);' tests/test_strutil.c || git_clean_tests=0 [ "$git_clean_tests" = 1 ] || { echo "tests were modified"; exit 1; } [ "$runs" -ge 2 ] || { echo "make test ran fewer than 2 times"; exit 1; } make test