diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-02 13:51:48 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-02 13:51:48 +0000 |
commit | d66ac9217505aeb1420a38134cc5e354f175292b (patch) | |
tree | 568b897cf80b40d810170438d84ab654120d5185 /tests | |
parent | 25849c297643590e3b908539b83d9a315d81839b (diff) |
Added international and IDNA tests.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/11_crawl-idna.test | 8 | ||||
-rwxr-xr-x | tests/11_crawl-international.test | 7 | ||||
-rwxr-xr-x | tests/crawl-test.sh | 2 |
3 files changed, 16 insertions, 1 deletions
diff --git a/tests/11_crawl-idna.test b/tests/11_crawl-idna.test new file mode 100755 index 0000000..5a541ca --- /dev/null +++ b/tests/11_crawl-idna.test @@ -0,0 +1,8 @@ +#!/bin/bash +# + +# unicode tests +bash crawl-test.sh --errors 1 --files 5 \ + httrack 'http://ut.httrack.com/unicode-links/idna.html' \ + '+*.ut.httrack.com/*' --robots=0 + diff --git a/tests/11_crawl-international.test b/tests/11_crawl-international.test new file mode 100755 index 0000000..b661963 --- /dev/null +++ b/tests/11_crawl-international.test @@ -0,0 +1,7 @@ +#!/bin/bash +# + +# unicode tests +bash crawl-test.sh --errors 1 --files 10 httrack http://ut.httrack.com/unicode-links/utf8.html +bash crawl-test.sh --errors 4 --files 7 httrack http://ut.httrack.com/unicode-links/default.html +bash crawl-test.sh --errors 2 --files 9 httrack http://ut.httrack.com/unicode-links/iso88591.html diff --git a/tests/crawl-test.sh b/tests/crawl-test.sh index 7638d84..7274b0b 100755 --- a/tests/crawl-test.sh +++ b/tests/crawl-test.sh @@ -86,7 +86,7 @@ function start-crawl { debug "remaining args: ${@:${pos}}" # ut/ won't exceed 2 minutes - moreargs="--quiet --max-time=120" + moreargs="--quiet --max-time=120 --connection-per-second=5" # proxy environment ? if test -n "$http_proxy"; then |