Browse Source

test: more verbosity

pull/1780/head
Ethan Buchman 8 years ago
parent
commit
ead192adbb
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      tests/test_cli/test.sh

+ 5
- 1
tests/test_cli/test.sh 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


Loading…
Cancel
Save