From 481884fb892f949478dad8d801ced704baea986c Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Mon, 18 Nov 2019 18:36:57 +0100 Subject: Automatic testing of examples --- test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 test.sh (limited to 'test.sh') diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..6b1971f --- /dev/null +++ b/test.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -euo pipefail +stack build +prog="$(stack path --local-install-root)/bin/lisp" +for f in tests/*.lisp; do + echo "$f" + diff -u <("$prog" "$f") "$(sed 's/\.lisp$/.out/' <<<"$f")" +done +echo "All OK" -- cgit v1.2.3-54-g00ecf