Changeset dda3acf in mod_gnutls
- Timestamp:
- Mar 25, 2015, 6:56:36 AM (6 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, proxy-ticket, upstream
- Children:
- 7d2123d
- Parents:
- 6bbc00a
- Location:
- test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
test/TestMakefile
r6bbc00a rdda3acf 13 13 14 14 export TEST_GAP ?= 1.5 15 export TEST_QUERY_DELAY ?= 215 export TEST_QUERY_DELAY ?= 6 16 16 17 17 TEST_LOCK := ./test.lock -
test/runtests
r6bbc00a rdda3acf 91 91 fi 92 92 93 if (sed "s/__HOSTNAME__/${TEST_HOST}/" < ./input && sleep "$TEST_QUERY_DELAY") | \ 94 gnutls-cli -p "${TEST_PORT}" $(cat ./gnutls-cli.args) "${TEST_HOST}" > \ 95 "$output" ; then 93 # The sleep call keeps the pipe from the subshell to gnutls-cli 94 # open. Without it gnutls-cli would terminate as soon as sed is 95 # done, and not wait for a response from the server, leading to 96 # failing tests. Sending sleep to the background allows the test 97 # case to proceed instead of waiting for it to return, but has the 98 # disadvantage of leaving the sleep process dangling until it 99 # eventually times out. Still preferable to a fixed delay. 100 if (sed "s/__HOSTNAME__/${TEST_HOST}/" <./input && \ 101 sleep "${TEST_QUERY_DELAY}" &) | \ 102 gnutls-cli -p "${TEST_PORT}" $(cat ./gnutls-cli.args) "${TEST_HOST}" \ 103 >"$output"; 104 then 96 105 if [ -e fail* ]; then 97 106 printf "%s should have failed but succeeded\n" "$(basename "$t")" >&2 … … 104 113 fi 105 114 fi 115 106 116 if [ -e output ] ; then 107 117 diff -q -u output <( tail -n "$(wc -l < output)" "$output" )
Note: See TracChangeset
for help on using the changeset viewer.