Changeset 849b87e in mod_gnutls for test/runtests


Ignore:
Timestamp:
Oct 30, 2018, 3:35:21 PM (12 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master
Children:
0062ede
Parents:
04753db8
Message:

Test suite: Add support for IP-based virtual hosts

  • Pass TEST_IP to the tests
  • Add IP addresses to the server certificate
  • Allow tests to access the server via an IP address instead of TEST_HOST
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtests

    r04753db8 r849b87e  
    217217fi
    218218
     219if [ -n "${TARGET_IP}" ]; then
     220    TARGET="${TARGET_IP}"
     221else
     222    TARGET="${TEST_HOST}"
     223fi
     224
    219225# PID file for sleep command (explanation below)
    220226sleep_pidfile="$(mktemp mod_gnutls_test-XXXXXX.pid)"
     
    232238if (sed -r "s/__HOSTNAME__/${TEST_HOST}/;s/\r?$/\r/" <${testdir}/input && \
    233239           run_with_pidfile "${sleep_pidfile}" sleep "${TEST_QUERY_TIMEOUT}" &) | \
    234        gnutls-cli -p "${TEST_PORT}" $(cat ${testdir}/gnutls-cli.args) "${TEST_HOST}" \
     240       gnutls-cli -p "${TEST_PORT}" $(cat ${testdir}/gnutls-cli.args) "${TARGET}" \
    235241       | tee "$output" && test "${PIPESTATUS[1]}" -eq 0;
    236242then
Note: See TracChangeset for help on using the changeset viewer.