Changeset e3e0de1 in mod_gnutls for test/runtests


Ignore:
Timestamp:
Dec 7, 2019, 9:42:07 AM (18 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master, proxy-ticket
Children:
8b72599
Parents:
09d923b
Message:

https-test-client.py: Make host and port configurable per connection

Both variables can use environment variables. If unset they default to
TEST_TARGET and TEST_PORT. This makes it possible to connect to
different servers in one test, for example in proxy tests to check
that the backend server is behaving as expected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtests

    r09d923b re3e0de1  
    191191
    192192if [ -n "${TARGET_IP}" ]; then
    193     TARGET="${TARGET_IP}"
    194 else
    195     TARGET="${TEST_HOST}"
    196 fi
    197 
    198 ${PYTHON} ${srcdir}/https-test-client.py -p "${TEST_PORT}" "${TARGET}" \
     193    export TEST_TARGET="${TARGET_IP}"
     194else
     195    export TEST_TARGET="${TEST_HOST}"
     196fi
     197
     198${PYTHON} ${srcdir}/https-test-client.py \
    199199          --test-config "${testdir}/test.yml" \
    200200          --timeout "${TEST_QUERY_TIMEOUT}" \
Note: See TracChangeset for help on using the changeset viewer.