Carp/test/execute.sh
Veit Heller b83ff8a024
Make sure output directory is right in test (#1089)
* chore: make sure output directory is right in test

* chore: make --no-profile work again
2020-12-22 10:36:43 +01:00

15 lines
402 B
Bash
Executable File

#!/usr/bin/env sh
# Runs the executable and compares its output to the .expected file
export CARP_OPTS="$CARP_OPTS $1 --log-memory -b --no-profile"
./scripts/carp.sh && \
./out/Untitled > test/output/$1.output.actual 2>&1
echo $1
if ! diff --strip-trailing-cr test/output/$1.output.actual test/output/$1.output.expected; then
echo "$1 failed."
exit 1
else
rm test/output/$1.output.actual
fi