diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-02 19:19:08 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-02 19:19:08 +0000 |
commit | 4da59a639962cecf3599f19813b00f2ab065e089 (patch) | |
tree | 55a1e7dedd15b85f284610ac16ce38ef3a52ae9d | |
parent | 44688bdbdf741505496d6cbd3f2b44f2936b6fa5 (diff) |
Added "long query string" ut/
See <https://code.google.com/p/httrack/issues/detail?id=42>
-rwxr-xr-x | tests/11_crawl-longurl.test | 10 | ||||
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/Makefile.in | 2 |
3 files changed, 12 insertions, 2 deletions
diff --git a/tests/11_crawl-longurl.test b/tests/11_crawl-longurl.test new file mode 100755 index 0000000..ebc5bc1 --- /dev/null +++ b/tests/11_crawl-longurl.test @@ -0,0 +1,10 @@ +#!/bin/bash +# + +bash check-network.sh || ! echo "skipping online unit tests" || exit 77 + +# http://code.google.com/p/httrack/issues/detail?id=42&can=1 +# we expect 2 errors only because other links are too longs (to be modified if suitable) +bash crawl-test.sh --errors 2 --files 1 \ + --found ut.httrack.com/overflow/longquerywithaccents.html \ + httrack http://ut.httrack.com/overflow/longquerywithaccents.php diff --git a/tests/Makefile.am b/tests/Makefile.am index 8066e07..8a7852d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -8,6 +8,6 @@ TESTS_ENVIRONMENT += ONLINE_UNIT_TESTS=$(ONLINE_UNIT_TESTS) TESTS_ENVIRONMENT += HTTPS_SUPPORT=$(HTTPS_SUPPORT) TEST_EXTENSIONS = .test -TESTS = 00_runnable.test 01_engine-charset.test 01_engine-entities.test 01_engine-hashtable.test 01_engine-idna.test 01_engine-simplify.test 10_crawl-simple.test 11_crawl-cookies.test 11_crawl-idna.test 11_crawl-international.test 11_crawl-parsing.test 12_crawl_https.test +TESTS = 00_runnable.test 01_engine-charset.test 01_engine-entities.test 01_engine-hashtable.test 01_engine-idna.test 01_engine-simplify.test 10_crawl-simple.test 11_crawl-cookies.test 11_crawl-idna.test 11_crawl-international.test 11_crawl-longurl.test 11_crawl-parsing.test 12_crawl_https.test CLEANFILES = check-network_sh.cache diff --git a/tests/Makefile.in b/tests/Makefile.in index 5045064..d153fd7 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -214,7 +214,7 @@ TESTS_ENVIRONMENT = PATH=$(top_builddir)/src$(PATH_SEPARATOR)$$PATH \ ONLINE_UNIT_TESTS=$(ONLINE_UNIT_TESTS) \ HTTPS_SUPPORT=$(HTTPS_SUPPORT) TEST_EXTENSIONS = .test -TESTS = 00_runnable.test 01_engine-charset.test 01_engine-entities.test 01_engine-hashtable.test 01_engine-idna.test 01_engine-simplify.test 10_crawl-simple.test 11_crawl-cookies.test 11_crawl-idna.test 11_crawl-international.test 11_crawl-parsing.test 12_crawl_https.test +TESTS = 00_runnable.test 01_engine-charset.test 01_engine-entities.test 01_engine-hashtable.test 01_engine-idna.test 01_engine-simplify.test 10_crawl-simple.test 11_crawl-cookies.test 11_crawl-idna.test 11_crawl-international.test 11_crawl-longurl.test 11_crawl-parsing.test 12_crawl_https.test CLEANFILES = check-network_sh.cache all: all-am |