lean4-htt/tests/lean/fail/test_single.sh

16 lines
290 B
Bash

#!/usr/bin/env bash
if [ $# -ne 2 ]; then
echo "Usage: test_single.sh [lean-executable-path] [file]"
exit 1
fi
ulimit -s 8192
LEAN=$1
export LEAN_PATH=../../../library:.
f=$2
echo "-- testing $f"
if "$LEAN" -j 0 "$f"; then
echo "failed $f"
exit 1
else
echo "-- checked"
fi