File size: 456 Bytes
ef987bb | 1 2 3 4 5 6 7 8 9 10 11 | #!/usr/bin/env bash
set +e
T="$(cd "$(dirname "$0")" && pwd)"; R=/logs/verifier; mkdir -p "$R"; p=1
command -v go >/dev/null 2>&1 || p=0
[ "$p" = 1 ] && go test ./... || p=0
[ "$p" = 1 ] && timeout 30s bash "$T/validate_enhanced_cases.sh" || p=0
cp "$T/review_server_test.go" zz_review_server_test.go
GOTOOLCHAIN=local GOPROXY=off go test -count=1 -timeout=40s -run '^TestReview' . || p=0
rm -f zz_review_server_test.go
echo "$p" > "$R/reward.txt"; exit 0
|