File size: 525 Bytes
d086025 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/bin/bash
# Exact final-artifact admission self-check.
set -euo pipefail
HERE="$(cd "$(dirname "$0")/.." && pwd)"
bash "$HERE/environment/build_env.sh"
docker run --rm \
-v "$HERE/tests:/tests:ro" \
-v "$HERE/solution:/solution:ro" \
-w /workspace/repo \
programgen-forward/aastopher_1776_sutools.a1cb9bd:eval bash -lc '
set -euo pipefail
bash /solution/solve.sh
bash /tests/test.sh
test "$(cat /logs/verifier/reward.txt)" = "1"
'
echo "self-check OK: exact eval image + oracle + verifier passed"
|