diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-02 17:53:36 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-02 17:53:36 +0000 |
commit | 6481840d5f6b3129820c9e151c0965d67468199e (patch) | |
tree | f8ad4acaa0a6aa63f839919e22419694f194c233 /tests | |
parent | 062c7d476400fdfee886437886f8b7f08dc07ea8 (diff) |
More checks in tests
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/11_crawl-parsing.test | 7 | ||||
-rwxr-xr-x | 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 |