diff -Nru librelp-1.5.0/debian/changelog librelp-1.5.0/debian/changelog --- librelp-1.5.0/debian/changelog 2021-01-03 08:22:11.000000000 +0000 +++ librelp-1.5.0/debian/changelog 2021-01-24 23:29:04.000000000 +0000 @@ -1,3 +1,11 @@ +librelp (1.5.0-1ubuntu2.20.04.2) focal; urgency=medium + + * Reduce message count in tests/(tls-)basic-realistic.sh so they reliably + succeed on slow platforms like riscv64. (LP: #1912969) + - d/p/shrink-basic-realistic-tests.sh + + -- Matthew Ruffell Mon, 25 Jan 2021 12:29:04 +1300 + librelp (1.5.0-1ubuntu2.20.04.1) focal; urgency=medium * Fix file descriptor leak as sockets are stuck in CLOSE_WAIT diff -Nru librelp-1.5.0/debian/patches/series librelp-1.5.0/debian/patches/series --- librelp-1.5.0/debian/patches/series 2021-01-03 08:22:11.000000000 +0000 +++ librelp-1.5.0/debian/patches/series 2021-01-24 23:29:04.000000000 +0000 @@ -3,3 +3,4 @@ lp1908473-01-replsess-fix-double-free-of-sendbuf-in-some-cases.patch lp1908473-02-fix-memory-leak-on-session-break.patch lp1908473-03-Fix-FD-leak-when-socket-shutdown-is-one-sided.patch +shrink-basic-realistic-tests.sh diff -Nru librelp-1.5.0/debian/patches/shrink-basic-realistic-tests.sh librelp-1.5.0/debian/patches/shrink-basic-realistic-tests.sh --- librelp-1.5.0/debian/patches/shrink-basic-realistic-tests.sh 1970-01-01 00:00:00.000000000 +0000 +++ librelp-1.5.0/debian/patches/shrink-basic-realistic-tests.sh 2021-01-24 23:29:04.000000000 +0000 @@ -0,0 +1,31 @@ +Description: Shrink (tls-)basic-realistic tests + Reduce the message count so they reliably succeed on slow platforms like + riscv64. Fast platforms work too. +Author: Matthew Ruffell + +Index: librelp-1.5.0/tests/basic-realistic.sh +=================================================================== +--- librelp-1.5.0.orig/tests/basic-realistic.sh 2021-01-25 12:26:20.617437217 +1300 ++++ librelp-1.5.0/tests/basic-realistic.sh 2021-01-25 12:26:20.617437217 +1300 +@@ -3,7 +3,7 @@ + # a more relastic test which actually sends a bit larger number + # of messages + . ${srcdir:=$(pwd)}/test-framework.sh +-NUMMESSAGES=50000 ++NUMMESSAGES=10000 + startup_receiver + ./send -t 127.0.0.1 -p $TESTPORT -n$NUMMESSAGES $OPT_VERBOSE + stop_receiver +Index: librelp-1.5.0/tests/tls-basic-realistic.sh +=================================================================== +--- librelp-1.5.0.orig/tests/tls-basic-realistic.sh 2021-01-25 12:26:20.617437217 +1300 ++++ librelp-1.5.0/tests/tls-basic-realistic.sh 2021-01-25 12:26:20.617437217 +1300 +@@ -3,7 +3,7 @@ + # a more relastic test which actually sends a bit larger number + # of messages + . ${srcdir:=$(pwd)}/test-framework.sh +-NUMMESSAGES=50000 ++NUMMESSAGES=10000 + + function actual_test() { + startup_receiver --tls-lib $TEST_TLS_LIB -T -a "name" -x ${srcdir}/tls-certs/ca.pem \