test: more verbosity

This commit is contained in:
Ethan Buchman
2016-09-10 20:10:59 -04:00
parent 0e2a6b41f8
commit ead192adbb

View File

@ -9,13 +9,17 @@ function testExample() {
$APP &> /dev/null &
sleep 2
tmsp-cli --verbose batch < $INPUT > "${INPUT}.out.new"
killall "$APP" &> /dev/null
killall "$APP"
pre=`shasum < "${INPUT}.out"`
post=`shasum < "${INPUT}.out.new"`
if [[ "$pre" != "$post" ]]; then
echo "You broke the tutorial"
echo "Got:"
cat "${INPUT}.out.new"
echo "Expected:"
cat "${INPUT}.out"
exit 1
fi