From: Gert Doering Date: Fri, 10 Dec 2021 16:55:43 +0000 (+0100) Subject: add test case(s) to notice 'openvpn --show-cipher' crashing X-Git-Tag: v2.5.5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a744d1da6667506e6c201751834c768ac8a6e6f;p=thirdparty%2Fopenvpn.git add test case(s) to notice 'openvpn --show-cipher' crashing Signed-off-by: Gert Doering Acked-by: Arne Schwabe Message-Id: <20211210165543.77587-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23381.html Signed-off-by: Gert Doering (cherry picked from commit b08b5f5df96dbe7d854a2fbbeb8a3e104e3158e2) --- diff --git a/tests/t_lpback.sh b/tests/t_lpback.sh index 6206899d3..679529942 100755 --- a/tests/t_lpback.sh +++ b/tests/t_lpback.sh @@ -35,13 +35,18 @@ CIPHERS=$(${top_builddir}/src/openvpn/openvpn --show-ciphers | \ # GD, 2014-07-06 do not test RC5-* either (fails on NetBSD w/o libcrypto_rc5) CIPHERS=$(echo "$CIPHERS" | egrep -v '^(DES-EDE3-CFB1|DES-CFB1|RC5-)' ) +e=0 +if [ -z "$CIPHERS" ] ; then + echo "'openvpn --show-ciphers' FAILED (empty list)" + e=1 +fi + # Also test cipher 'none' CIPHERS=${CIPHERS}$(printf "\nnone") "${top_builddir}/src/openvpn/openvpn" --genkey secret key.$$ set +e -e=0 for cipher in ${CIPHERS} do printf "Testing cipher ${cipher}... "