|
|
@ -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 |
|
|
|
|
|
|
|