diff options
author | tomsmeding <tom.smeding@gmail.com> | 2019-11-18 18:36:57 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2019-11-18 18:36:57 +0100 |
commit | 481884fb892f949478dad8d801ced704baea986c (patch) | |
tree | 8c5bcf1d306c8ad3d39d449da8def74cb24dca2d /test.sh | |
parent | 4746aa52f85f4dc3ce8e195f0a5fd8afe2d54378 (diff) |
Automatic testing of examples
Diffstat (limited to 'test.sh')
-rwxr-xr-x | test.sh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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" |