mirror of
https://github.com/xroche/httrack.git
synced 2026-05-17 00:16:02 +03:00
More checks in tests
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user