diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-09 18:38:34 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-09 18:38:34 +0000 |
commit | e895148e679e5360f3810b7f32e634852d899366 (patch) | |
tree | 75e7b69c64ed0fad3c48c1145d8869b2e2f51cd9 | |
parent | 2cc13c3e1f7046cbb23d5f1edc19f85f01e9df6e (diff) |
Basic cookies unit tests.
-rwxr-xr-x | tests/11_crawl-cookies.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-cookies.test b/tests/11_crawl-cookies.test new file mode 100755 index 0000000..117ad61 --- /dev/null +++ b/tests/11_crawl-cookies.test @@ -0,0 +1,10 @@ +#!/bin/bash +# + +bash check-network.sh || ! echo "skipping online unit tests" || exit 77 + +bash crawl-test.sh --errors 0 --files 3 \ + --found ut.httrack.com/cookies/third.html \ + --found ut.httrack.com/cookies/second.html \ + --found ut.httrack.com/cookies/entrance.html \ + httrack http://ut.httrack.com/cookies/entrance.php diff --git a/tests/Makefile.am b/tests/Makefile.am index 1fba952..cd5c391 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -8,4 +8,4 @@ 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-idna.test 01_engine-simplify.test 10_crawl-simple.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-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 diff --git a/tests/Makefile.in b/tests/Makefile.in index 9542668..c1a7f35 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-idna.test 01_engine-simplify.test 10_crawl-simple.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-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 all: all-am .SUFFIXES: |