#!/usr/bin/env bash # Runs all tests against the local fixture (loopback only). Needs uv. Writes results.csv. set -u cd "$(dirname "$0")" export RESULTS_CSV="$PWD/results.csv" rm -f "$RESULTS_CSV" uv sync --quiet || exit 2 rc=0 for t in tests/test_flaw1_tool_poisoning.py tests/test_flaw2_token_passthrough.py tests/test_flaw3_missing_authz.py; do uv run --quiet python "$t" || rc=1 done echo; echo "results.csv rows: $(($(wc -l < "$RESULTS_CSV") - 1))" [ $rc -eq 0 ] && echo "ALL AS EXPECTED" || echo "UNEXPECTED OUTCOMES (exit 1)" exit $rc