mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 08:05:45 +01:00
Split test into valgrind and no-valgrind version
Running valgrind on: "DTLS client reconnect from same port: reconnect, nbio" results in timeouts. New version added that runs only under valgrind. Original only runs when valgrind is not used
This commit is contained in:
parent
629c1ad398
commit
b8c8018343
@ -130,6 +130,13 @@ not_with_valgrind() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# skip the next test if valgrind is NOT in use
|
||||||
|
only_with_valgrind() {
|
||||||
|
if [ "$MEMCHECK" -eq 0 ]; then
|
||||||
|
SKIP_NEXT="YES"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# multiply the client timeout delay by the given factor for the next test
|
# multiply the client timeout delay by the given factor for the next test
|
||||||
needs_more_time() {
|
needs_more_time() {
|
||||||
CLI_DELAY_FACTOR=$1
|
CLI_DELAY_FACTOR=$1
|
||||||
@ -3049,13 +3056,22 @@ run_test "DTLS client reconnect from same port: reconnect" \
|
|||||||
-S "The operation timed out" \
|
-S "The operation timed out" \
|
||||||
-s "Client initiated reconnection from same port"
|
-s "Client initiated reconnection from same port"
|
||||||
|
|
||||||
run_test "DTLS client reconnect from same port: reconnect, nbio" \
|
not_with_valgrind # server/client too slow to respond in time (next test has higher timeouts)
|
||||||
|
run_test "DTLS client reconnect from same port: reconnect, nbio, no valgrind" \
|
||||||
"$P_SRV dtls=1 exchanges=2 read_timeout=1000 nbio=2" \
|
"$P_SRV dtls=1 exchanges=2 read_timeout=1000 nbio=2" \
|
||||||
"$P_CLI dtls=1 exchanges=2 debug_level=2 hs_timeout=500-1000 reconnect_hard=1" \
|
"$P_CLI dtls=1 exchanges=2 debug_level=2 hs_timeout=500-1000 reconnect_hard=1" \
|
||||||
0 \
|
0 \
|
||||||
-S "The operation timed out" \
|
-S "The operation timed out" \
|
||||||
-s "Client initiated reconnection from same port"
|
-s "Client initiated reconnection from same port"
|
||||||
|
|
||||||
|
only_with_valgrind # Only with valgrind, do previous test but with higher read_timeout and hs_timeout
|
||||||
|
run_test "DTLS client reconnect from same port: reconnect, nbio, valgrind" \
|
||||||
|
"$P_SRV dtls=1 exchanges=2 read_timeout=2000 nbio=2 hs_timeout=1500-6000" \
|
||||||
|
"$P_CLI dtls=1 exchanges=2 debug_level=2 hs_timeout=1500-3000 reconnect_hard=1" \
|
||||||
|
0 \
|
||||||
|
-S "The operation timed out" \
|
||||||
|
-s "Client initiated reconnection from same port"
|
||||||
|
|
||||||
run_test "DTLS client reconnect from same port: no cookies" \
|
run_test "DTLS client reconnect from same port: no cookies" \
|
||||||
"$P_SRV dtls=1 exchanges=2 read_timeout=1000 cookies=0" \
|
"$P_SRV dtls=1 exchanges=2 read_timeout=1000 cookies=0" \
|
||||||
"$P_CLI dtls=1 exchanges=2 debug_level=2 hs_timeout=500-8000 reconnect_hard=1" \
|
"$P_CLI dtls=1 exchanges=2 debug_level=2 hs_timeout=500-8000 reconnect_hard=1" \
|
||||||
|
Loading…
Reference in New Issue
Block a user