#! /bin/sh | |
script="$0" | |
testdir=$(dirname "$script") | |
if [ "$#" -lt 1 ]; then | |
bc="$testdir/../bc" | |
else | |
bc="$1" | |
fi | |
set -e | |
bcdir=$(dirname "${bc}") | |
out1="$bcdir/log_bc.txt" | |
out2="$bcdir/log_test.txt" | |
while read t; do | |
echo "$t" | |
"$testdir/test.sh" "$t" "$bc" "$out1" "$out2" | |
done < "$testdir/all.txt" | |
"$testdir/scripts.sh" "$bc" "$out1" "$out2" | |
set +e | |
# TODO: Read tests | |
# TODO: Lex errors | |
# TODO: Parse errors | |
# TODO: VM errors | |
# TODO: Math errors | |
# TODO: POSIX warnings | |
# TODO: POSIX errors |