Changeset 34e5dc7 in mod_gnutls
- Timestamp:
- Sep 19, 2015, 5:29:36 PM (7 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, proxy-ticket, upstream
- Children:
- f9f184f
- Parents:
- dff03fa
- Location:
- test
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
test/Makefile.am
rdff03fa r34e5dc7 85 85 TestMakefile 86 86 87 # Lockfile for the main Apache process 88 test_lockfile = ./test.lock 87 89 # Maximum wait time in seconds for flock to aquire instance lock files 88 90 lock_wait = 30 89 91 92 # port for the main Apache server 93 TEST_PORT ?= 9932 94 # port for MSVA in test cases that use it 95 MSVA_PORT ?= 9933 96 # maximum time to wait for MSVA startup 97 TEST_MSVA_MAX_WAIT ?= 10 98 # wait loop time for MSVA startup 99 TEST_MSVA_WAIT ?= 0.4 100 # seconds for the HTTP request to be sent and responded to 101 TEST_QUERY_DELAY ?= 30 102 90 103 AM_TESTS_ENVIRONMENT = export APACHE2=$(APACHE2); \ 91 104 export AP_LIBEXECDIR=$(AP_LIBEXECDIR); \ 92 export TEST_LOCK_WAIT=$(lock_wait); \ 105 export TEST_LOCK="$(test_lockfile)"; \ 106 export TEST_LOCK_WAIT="$(lock_wait)"; \ 93 107 export TEST_HOST="$(TEST_HOST)"; \ 94 108 export TEST_IP="$(TEST_IP)"; \ 109 export TEST_PORT="$(TEST_PORT)"; \ 110 export MSVA_PORT="$(MSVA_PORT)"; \ 111 export TEST_MSVA_MAX_WAIT="$(TEST_MSVA_MAX_WAIT)"; \ 112 export TEST_MSVA_WAIT="$(TEST_MSVA_WAIT)"; \ 113 export TEST_QUERY_DELAY="$(TEST_QUERY_DELAY)"; \ 95 114 export BACKEND_HOST="$(TEST_HOST)"; \ 96 115 export BACKEND_IP="$(TEST_IP)"; -
test/README
rdff03fa r34e5dc7 97 97 possible that these tests will fail for timing 98 98 reasons. [TEST_QUERY_DELAY (seconds for the http request to be sent 99 and responded to)] and [TEST_GAP (seconds to wait between tests)]99 and responded to)] -
test/TestMakefile
rdff03fa r34e5dc7 12 12 13 13 export TEST_HOST ?= localhost 14 export TEST_IP ?= ::115 # chosen at random:16 export TEST_PORT ?= 993217 export MSVA_PORT ?= 993318 19 export TEST_GAP ?= 0.420 export TEST_MSVA_MAX_WAIT ?= 1021 export TEST_QUERY_DELAY ?= 3022 export TEST_LOCK_WAIT ?= 3023 24 TEST_LOCK := ./test.lock25 26 all: setup.done27 TEST_LOCK=$(TEST_LOCK) $(srcdir)/runtests28 29 t-%: setup.done30 TEST_LOCK=$(TEST_LOCK) $(srcdir)/runtests $@31 14 32 15 -
test/runtests
rdff03fa r34e5dc7 17 17 18 18 BADVARS=0 19 for v in APACHE2 TEST_HOST TEST_IP TEST_PORT TEST_QUERY_DELAY TEST_ GAP\19 for v in APACHE2 TEST_HOST TEST_IP TEST_PORT TEST_QUERY_DELAY TEST_MSVA_WAIT \ 20 20 MSVA_PORT TEST_LOCK; do 21 21 if [ ! -v "$v" ]; then … … 134 134 echo "MSVA not ready yet" 135 135 fi 136 sleep "${TEST_ GAP}"137 waited=$(echo "${waited} + ${TEST_ GAP}" | bc)136 sleep "${TEST_MSVA_WAIT}" 137 waited=$(echo "${waited} + ${TEST_MSVA_WAIT}" | bc) 138 138 done 139 139 -
test/test-00_basic.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-02 ${srcdir}/runtests t-0 -
test/test-01_serverwide_priorities.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-12 ${srcdir}/runtests t-1 -
test/test-02_cache_in_vhost.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-22 ${srcdir}/runtests t-2 -
test/test-03_cachetimeout_in_vhost.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-32 ${srcdir}/runtests t-3 -
test/test-04_basic_nosni.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-42 ${srcdir}/runtests t-4 -
test/test-05_mismatched-priorities.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-52 ${srcdir}/runtests t-5 -
test/test-06_verify_sni_a.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-62 ${srcdir}/runtests t-6 -
test/test-07_verify_sni_b.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-72 ${srcdir}/runtests t-7 -
test/test-08_verify_no_sni_fallback_to_first_vhost.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-82 ${srcdir}/runtests t-8 -
test/test-09_verify_no_sni_fails_with_wrong_order.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-92 ${srcdir}/runtests t-9 -
test/test-10_basic_client_verification.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-102 ${srcdir}/runtests t-10 -
test/test-11_basic_client_verification_fail.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-112 ${srcdir}/runtests t-11 -
test/test-12_cgi_variables.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-122 ${srcdir}/runtests t-12 -
test/test-13_cgi_variables_no_client_cert.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-132 ${srcdir}/runtests t-13 -
test/test-14_basic_openpgp.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-142 ${srcdir}/runtests t-14 -
test/test-15_basic_msva.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 USE_MSVA="yes" make -f $(dirname ${0})/TestMakefilet-152 USE_MSVA="yes" ${srcdir}/runtests t-15 -
test/test-16_view-status.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-162 ${srcdir}/runtests t-16 -
test/test-17_cgi_vars_large_cert.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-172 ${srcdir}/runtests t-17 -
test/test-18_client_verification_wrong_cert.bash
rdff03fa r34e5dc7 1 1 #!/bin/bash 2 make -f $(dirname ${0})/TestMakefilet-182 ${srcdir}/runtests t-18 -
test/test-19_TLS_reverse_proxy.bash
rdff03fa r34e5dc7 14 14 trap stop_backend EXIT 15 15 16 make -f $(dirname ${0})/TestMakefilet-1916 ${srcdir}/runtests t-19 17 17 18 18 backend_apache "${testdir}" "backend.conf" stop -
test/test-20_TLS_reverse_proxy_client_auth.bash
rdff03fa r34e5dc7 14 14 trap stop_backend EXIT 15 15 16 make -f $(dirname ${0})/TestMakefilet-2016 ${srcdir}/runtests t-20 17 17 18 18 backend_apache "${testdir}" "backend.conf" stop -
test/test-21_TLS_reverse_proxy_wrong_cert.bash
rdff03fa r34e5dc7 14 14 trap stop_backend EXIT 15 15 16 make -f $(dirname ${0})/TestMakefilet-2116 ${srcdir}/runtests t-21 17 17 18 18 backend_apache "${testdir}" "backend.conf" stop -
test/test-22_TLS_reverse_proxy_crl_revoke.bash
rdff03fa r34e5dc7 14 14 trap stop_backend EXIT 15 15 16 make -f $(dirname ${0})/TestMakefilet-2216 ${srcdir}/runtests t-22 17 17 18 18 backend_apache "${testdir}" "backend.conf" stop -
test/test-23_TLS_reverse_proxy_mismatched_priorities.bash
rdff03fa r34e5dc7 19 19 trap stop_backend EXIT 20 20 21 make -f $(dirname ${0})/TestMakefilet-2321 ${srcdir}/runtests t-23 22 22 23 23 backend_apache "${testdir}" "backend.conf" stop -
test/test-24_pkcs11_cert.bash
rdff03fa r34e5dc7 25 25 set -e 26 26 27 make -f $(dirname ${0})/TestMakefilet-2427 ${srcdir}/runtests t-24 28 28 29 29 cleanup_tmpconf
Note: See TracChangeset
for help on using the changeset viewer.