summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-06-05 19:00:53 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-06-05 19:00:53 +0000
commit61f0cec9c85ec3689169f5df08ce8866cb5e6a0f (patch)
tree4fbee97673b6151c13d19f7b0e57cb9d19399a6b /tests
parent6fd01e85701c77d339041a68cff09ffb2b4348ba (diff)
Added a basic https unit test.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/12_crawl_https.test11
-rw-r--r--tests/Makefile.am3
-rw-r--r--tests/Makefile.in6
3 files changed, 17 insertions, 3 deletions
diff --git a/tests/12_crawl_https.test b/tests/12_crawl_https.test
new file mode 100755
index 0000000..48ae3ce
--- /dev/null
+++ b/tests/12_crawl_https.test
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+
+bash check-network.sh || ! echo "skipping online unit tests" || exit 77
+
+if test "$HTTPS_SUPPORT" == "no"; then
+ echo "no https support compiled, skipping"
+ exit 77
+fi
+
+bash crawl-test.sh --errors 0 --files 5 httrack https://ut.httrack.com/simple/basic.html
diff --git a/tests/Makefile.am b/tests/Makefile.am
index bac94e8..87a62d2 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -4,6 +4,7 @@ TESTS_ENVIRONMENT =
TESTS_ENVIRONMENT += $(SHLIBPATH_VAR)="$(top_builddir)/src/$(LT_CV_OBJDIR)$${$(SHLIBPATH_VAR):+:}$$$(SHLIBPATH_VAR)"
TESTS_ENVIRONMENT += PATH=$(top_builddir)/src/$(LT_CV_OBJDIR):$$PATH
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
+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
diff --git a/tests/Makefile.in b/tests/Makefile.in
index 1614ab8..bb0a187 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -84,6 +84,7 @@ EGREP = @EGREP@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
GREP = @GREP@
+HTTPS_SUPPORT = @HTTPS_SUPPORT@
ICONV_LIBS = @ICONV_LIBS@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -183,9 +184,10 @@ target_alias = @target_alias@
EXTRA_DIST = $(TESTS) crawl-test.sh run-all-tests.sh check-network.sh
TESTS_ENVIRONMENT = $(SHLIBPATH_VAR)="$(top_builddir)/src/$(LT_CV_OBJDIR)$${$(SHLIBPATH_VAR):+:}$$$(SHLIBPATH_VAR)" \
PATH=$(top_builddir)/src/$(LT_CV_OBJDIR):$$PATH \
- ONLINE_UNIT_TESTS=$(ONLINE_UNIT_TESTS)
+ 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
+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
all: all-am
.SUFFIXES: