Carp/test/execute.sh

14 lines
301 B
Bash
Raw Normal View History

#!/bin/sh
# Runs the executable and compares its output to the .expected file
echo $1
2019-09-21 00:39:04 +03:00
./carp.sh $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