Ignore:
Timestamp:
May 11, 2015, 6:28:20 PM (5 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
31caead
Parents:
e24eed6
git-author:
Thomas Klute <thomas2.klute@…> (05/11/15 18:12:28)
git-committer:
Thomas Klute <thomas2.klute@…> (05/11/15 18:28:20)
Message:

Test suite: Add tests to "dist" target and support VPATH builds

Supporting VPATH builds requires using $srcdir to find non-generated
data rather than fixed relative paths. If test are not called through
the make system, local defaults must be used. Not changing directories
during tests any more makes this easier.

A few files (e.g. templates, generated CRL) have been moved around to
better match the new structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-22_TLS_reverse_proxy_crl_revoke.bash

    re24eed6 r33af2b7  
    22
    33set -e
     4: ${srcdir:="."}
    45
    5 testdir="./tests/22_TLS_reverse_proxy_crl_revoke"
    6 . ./proxy_backend.bash
    7 
    8 # Generate CRL revoking the server certificate. Using it as
    9 # GnuTLSProxyCRLFile should cause the connection to the back end
    10 # server to fail.
    11 certtool --generate-crl \
    12     --load-ca-privkey authority/secret.key \
    13     --load-ca-certificate authority/x509.pem \
    14     --load-certificate server/x509.pem \
    15     --template "${testdir}/crl.template" \
    16     >"${testdir}/crl.pem"
     6testdir="${srcdir}/tests/22_TLS_reverse_proxy_crl_revoke"
     7. $(dirname ${0})/proxy_backend.bash
    178
    189function stop_backend
     
    2314trap stop_backend EXIT
    2415
    25 make -f TestMakefile t-22
     16make -f $(dirname ${0})/TestMakefile t-22
    2617
    2718backend_apache "${testdir}" "backend.conf" stop
Note: See TracChangeset for help on using the changeset viewer.