2015-01-22 00:19:46 +00:00
|
|
|
#!/usr/bin/env bash
|
2015-03-29 03:29:52 +00:00
|
|
|
if [ $# -lt 2 ]; then
|
|
|
|
echo "Usage: test_single.sh [lean-executable-path] [file] [options]"
|
2015-01-22 00:19:46 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
ulimit -s 8192
|
|
|
|
LEAN=$1
|
|
|
|
export LEAN_PATH=../../../library:.
|
|
|
|
f=$2
|
2015-03-29 03:29:52 +00:00
|
|
|
shift 2
|
2015-01-22 00:19:46 +00:00
|
|
|
echo "-- testing $f"
|
2015-03-29 03:29:52 +00:00
|
|
|
if "$LEAN" "$f" $@; then
|
2015-01-22 00:19:46 +00:00
|
|
|
echo "-- checked"
|
|
|
|
else
|
|
|
|
echo "failed $f"
|
|
|
|
exit 1
|
|
|
|
fi
|