mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-05 18:21:40 +03:00
13 lines
302 B
Bash
13 lines
302 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Runs the executable and compares its output to the .expected file
|
||
|
|
||
|
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
|