More checks in tests

This commit is contained in:
Xavier Roche
2013-06-02 17:53:36 +00:00
parent 062c7d4764
commit 6481840d5f
2 changed files with 9 additions and 2 deletions

View File

@@ -3,9 +3,16 @@
# http://code.google.com/p/httrack/issues/detail?id=4&can=1
bash crawl-test.sh --errors 0 --files 4 \
--found ut.httrack.com/parsing/back5e1f.gif \
--found ut.httrack.com/parsing/events.html \
--found ut.httrack.com/parsing/fade230f4.gif \
--found ut.httrack.com/parsing/fade3860.gif \
httrack http://ut.httrack.com/parsing/events.html
# http://code.google.com/p/httrack/issues/detail?id=2&can=1
bash crawl-test.sh --errors 0 --files 3 \
--found ut.httrack.com/parsing/background-image.css \
--found ut.httrack.com/parsing/background-image.html \
--found ut.httrack.com/parsing/fade.gif \
httrack http://ut.httrack.com/parsing/background-image.html

View File

@@ -7,14 +7,14 @@ for i in *.test ; do
echo "$i: passed" >&2
else
echo "$i: ERROR" >&2
error=1
error=$[${error}+1]
fi
done
if test "$error" -eq 0; then
echo "all tests passed" >&2
else
echo "one or more tests failed" >&2
echo "${error} test(s) failed" >&2
fi
exit $error