From 6481840d5f6b3129820c9e151c0965d67468199e Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Sun, 2 Jun 2013 17:53:36 +0000 Subject: More checks in tests --- tests/11_crawl-parsing.test | 7 +++++++ tests/run-all-tests.sh | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/11_crawl-parsing.test b/tests/11_crawl-parsing.test index f64cca0..5a00714 100755 --- a/tests/11_crawl-parsing.test +++ b/tests/11_crawl-parsing.test @@ -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 diff --git a/tests/run-all-tests.sh b/tests/run-all-tests.sh index 8e68e8d..ed8cf38 100755 --- a/tests/run-all-tests.sh +++ b/tests/run-all-tests.sh @@ -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 -- cgit v1.2.3