summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/test.sh b/test.sh
index 1e7137f..21ce262 100755
--- a/test.sh
+++ b/test.sh
@@ -4,8 +4,13 @@ stack build
prog="$(stack path --local-install-root)/bin/lisp"
ok=1
for f in tests/*.lisp; do
+ outf="$(sed 's/\.lisp$/.out/' <<<"$f")"
echo "- $f"
- diff -u <("$prog" "$f") "$(sed 's/\.lisp$/.out/' <<<"$f")" || ok=0
+ if [[ ! -f $outf ]]; then
+ echo "WARNING: $outf not found"
+ else
+ diff -u <("$prog" "$f") "$outf" || ok=0
+ fi
done
if [[ $ok -eq 1 ]]; then
echo "All OK"