Carp/test/check.sh
Chris Hall 74ab9e44e8 Changing run_carp_tests.sh and test/check.sh to use stack exec carp
rather than relying on stack install and ~/.local/bin being in path
2018-05-20 12:05:58 +10:00

11 lines
233 B
Bash
Executable File

#!/bin/sh
stack exec carp -- $1 --log-memory -x > test/output/$1.output.actual 2>&1
if ! diff test/output/$1.output.actual test/output/$1.output.expected; then
echo "$1 failed."
exit 1
else
rm test/output/$1.output.actual
fi