Changeset 21181b2 in mod_gnutls for test


Ignore:
Timestamp:
Mar 14, 2016, 4:05:13 PM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
a0161fe
Parents:
c0c4106
Message:

Test suite: Enable OCSP if OpenSSL is available, provide port for responder

Tests must Define OCSP_PORT in their apache.conf to enable the OCSP
responder port.

Location:
test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile.am

    rc0c4106 r21181b2  
    188188# port for MSVA in test cases that use it
    189189MSVA_PORT ?= 9933
     190# port for OCSP server (Apache vhost if enabled)
     191if ENABLE_OCSP_TEST
     192OCSP_PORT ?= 9936
     193endif
    190194# maximum time to wait for MSVA startup (milliseconds)
    191195TEST_MSVA_MAX_WAIT ?= 10000
     
    213217endif
    214218
     219if ENABLE_OCSP_TEST
     220AM_TESTS_ENVIRONMENT += export OPENSSL="@OPENSSL@"; \
     221        export OCSP_PORT="$(OCSP_PORT)";
     222endif
     223
    215224if ENABLE_NETNS
    216225AM_TESTS_ENVIRONMENT += export UNSHARE="@UNSHARE@"; \
  • test/ocsp_server.conf

    rc0c4106 r21181b2  
    2020                SetEnv  OCSP_CERT       ${PWD}/ocsp-responder/x509.pem
    2121                SetEnv  OCSP_KEY        ${PWD}/ocsp-responder/secret.key
     22                <If "-n osenv('OPENSSL')">
     23                        # Pass OPENSSL variable to CGI script if set
     24                        SetEnv  OPENSSL         ${OPENSSL}
     25                </If>
    2226        </Location>
    2327        <Directory ${srcdir}/data>
Note: See TracChangeset for help on using the changeset viewer.