Changeset 05984a0 in mod_gnutls
- Timestamp:
- Dec 26, 2019, 3:47:10 AM (13 months ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- 0909c92
- Parents:
- 006f91a
- git-author:
- Fiona Klute <fiona.klute@…> (12/26/19 03:38:34)
- git-committer:
- Fiona Klute <fiona.klute@…> (12/26/19 03:47:10)
- Location:
- test
- Files:
-
- 3 added
- 1 deleted
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
test/Makefile.am
r006f91a r05984a0 1 1 SUBDIRS = tests 2 2 3 dist_check_SCRIPTS= test-00_basic.bash \3 test_scripts = test-00_basic.bash \ 4 4 test-01_serverwide_priorities.bash \ 5 5 test-02_cache_in_vhost.bash \ … … 17 17 test-14_resume_session.bash 18 18 if USE_MSVA 19 dist_check_SCRIPTS+= test-15_basic_msva.bash20 endif 21 dist_check_SCRIPTS+= test-16_view-status.bash \19 test_scripts += test-15_basic_msva.bash 20 endif 21 test_scripts += test-16_view-status.bash \ 22 22 test-17_cgi_vars_large_cert.bash \ 23 23 test-18_client_verification_wrong_cert.bash \ … … 40 40 41 41 TEST_EXTENSIONS = .bash 42 TESTS = $(dist_check_SCRIPTS) 42 TESTS = $(test_scripts) 43 44 dist_check_SCRIPTS = netns_py.bash $(test_scripts) 43 45 44 46 check_PROGRAMS = pgpcrc … … 56 58 # Python tools for tests 57 59 noinst_PYTHON = https-test-client.py mgstest/http.py mgstest/__init__.py \ 58 mgstest/ tests.py60 mgstest/services.py mgstest/tests.py runtest.py 59 61 60 62 # Identities in the miniature CA, server, and client environment for … … 252 254 253 255 EXTRA_DIST = $(apache_data) $(cert_templates) $(shared_identities:=/uid.in) \ 254 apache_service.bash common.bash runtestsauthority/server/crl.template \256 apache_service.bash common.bash authority/server/crl.template \ 255 257 softhsm.bash 256 258 -
test/newtest
r006f91a r05984a0 25 25 # create run script for make check 26 26 newscript="test-${newname}.bash" 27 echo '#!/bin/bash' >"${newscript}" 28 echo "\${srcdir}/runtests t-${newnum}" >>"${newscript}" 27 cat - >"${newscript}" <<EOF 28 #!/bin/bash 29 . \${srcdir}/netns_py.bash \${srcdir}/runtest.py --test-number ${newnum} 30 EOF 29 31 chmod a+x "${newscript}" 30 32 -
test/test-00_basic.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-02 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 0 -
test/test-01_serverwide_priorities.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-12 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 1 -
test/test-02_cache_in_vhost.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-22 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 2 -
test/test-03_cachetimeout_in_vhost.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-32 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 3 -
test/test-04_basic_nosni.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-42 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 4 -
test/test-05_mismatched-priorities.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-52 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 5 -
test/test-06_verify_sni_a.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-62 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 6 -
test/test-07_verify_sni_b.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-72 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 7 -
test/test-08_verify_no_sni_fallback_to_first_vhost.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-82 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 8 -
test/test-09_verify_no_sni_fails_with_wrong_order.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-92 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 9 -
test/test-10_basic_client_verification.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-102 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 10 -
test/test-11_basic_client_verification_fail.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-112 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 11 -
test/test-12_cgi_variables.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-122 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 12 -
test/test-13_cgi_variables_no_client_cert.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-132 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 13 -
test/test-14_resume_session.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 2 set -e 3 ${srcdir}/runtests t-14 3 log="outputs/14_resume_session.log" 4 4 5 t="$(basename ${0} .bash)" 6 output="outputs/${t#test-}.output" 5 ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 14 \ 6 --log-connection "${log}" 7 7 8 echo "Checking if the session was resumed successfully..." 8 9 # NOTE: The "Resume Handshake was completed" message appears after the 9 10 # second handshake is complete, whether the session has been resumed 10 11 # or not. The following message is required! 11 grep "This is a resumed session" "${ output}"12 grep "This is a resumed session" "${log}" -
test/test-15_basic_msva.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 USE_MSVA="yes" ${srcdir}/runtests t-15 2 export USE_MSVA="yes" 3 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 15 -
test/test-16_view-status.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 2 set -e 3 ${srcdir}/runtests t-164 3 5 # expected output file 4 # expected output files 5 log="outputs/16_view-status.log" 6 6 output="outputs/16_view-status.output" 7 8 ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 16 \ 9 --log-connection "${log}" --log-responses "${output}" 10 7 11 # get the cipher suite reported by gnutls-cli 8 cli_suite="$(grep -o -P '(?<=^-\sDescription:\s).*$' "${ output}")" || true12 cli_suite="$(grep -o -P '(?<=^-\sDescription:\s).*$' "${log}")" || true 9 13 # extract cipher suite from the server status output 10 14 status_suite="$(grep -o -P '(?<=^Current TLS session:\s).*$' "${output}")" \ -
test/test-17_cgi_vars_large_cert.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-172 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 17 -
test/test-18_client_verification_wrong_cert.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-182 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 18 -
test/test-19_TLS_reverse_proxy.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-192 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 19 -
test/test-20_TLS_reverse_proxy_client_auth.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-202 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 20 -
test/test-21_TLS_reverse_proxy_wrong_cert.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-212 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 21 -
test/test-22_TLS_reverse_proxy_crl_revoke.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-222 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 22 -
test/test-23_TLS_reverse_proxy_mismatched_priorities.bash
r006f91a r05984a0 5 5 # back end server is configured not to use TLS 1.2. The proxy request 6 6 # must fail and the client must receive an error message to pass. 7 ${srcdir}/runtests t-237 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 23 -
test/test-24_pkcs11_cert.bash
r006f91a r05984a0 34 34 set -e 35 35 36 ${srcdir}/ runtests t-2436 ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 24 37 37 38 38 cleanup_tmpconf -
test/test-25_Disable_TLS_1.0.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-252 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 25 -
test/test-26_redirect_HTTP_to_HTTPS.bash
r006f91a r05984a0 7 7 export TEST_HTTP_PORT 8 8 9 ${srcdir}/runtests t-269 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 26 -
test/test-27_OCSP_server.bash
r006f91a r05984a0 5 5 [ -n "${OCSP_PORT}" ] || exit 77 6 6 7 ${srcdir}/runtests t-27 7 log="outputs/27_OCSP_server.log" 8 ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 27 \ 9 --log-connection "${log}" 8 10 ret=${?} 9 11 10 12 echo "Checking if client actually got a stapled response." 11 if grep -P "^- Options: .*OCSP status request," outputs/27_*.output; then13 if grep -P "^- Options: .*OCSP status request," "${log}"; then 12 14 echo "OK" 13 15 else -
test/test-29_force_handshake_vhost.bash
r006f91a r05984a0 1 1 #!/bin/bash 2 ${srcdir}/runtests t-292 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 29 -
test/test-30_ip_based_vhosts.bash
r006f91a r05984a0 21 21 export TARGET_IP 22 22 23 ${srcdir}/runtests t-3023 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 30 -
test/test-31_vhost_SNI_serveralias_match.bash
r006f91a r05984a0 5 5 6 6 require_gnutls_cli 3.5.12 || (echo "Using --sni-hostname requires gnutls-cli version 3.5.12 or newer"; exit 77) 7 ${srcdir}/runtests t-317 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 31 -
test/test-32_vhost_SNI_serveralias_mismatch.bash
r006f91a r05984a0 5 5 6 6 require_gnutls_cli 3.5.12 || (echo "Using --sni-hostname requires gnutls-cli version 3.5.12 or newer"; exit 77) 7 ${srcdir}/runtests t-327 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 32 -
test/test-33_vhost_SNI_serveralias_missinghost.bash
r006f91a r05984a0 5 5 6 6 require_gnutls_cli 3.5.12 || (echo "Using --sni-hostname requires gnutls-cli version 3.5.12 or newer"; exit 77) 7 ${srcdir}/runtests t-33 7 8 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 33 -
test/test-34_TLS_reverse_proxy_h2.bash
r006f91a r05984a0 6 6 fi 7 7 done 8 ${srcdir}/runtests t-348 . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 34
Note: See TracChangeset
for help on using the changeset viewer.