]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: skip tlsfuzzer tests in FIPS mode
authorDaiki Ueno <ueno@gnu.org>
Thu, 24 Jul 2025 06:33:45 +0000 (15:33 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 24 Jul 2025 06:33:45 +0000 (15:33 +0900)
Those tests are not expected to run in FIPS mode and may return
different results than in non-FIPS mode.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
tests/suite/tls-fuzzer/tls-fuzzer-common.sh

index 82fae8150cb9736875e780f5444ea8464afa89e9..987e45cf5515833c6e0939ccaa76a9a1f9c83b7b 100755 (executable)
@@ -26,7 +26,10 @@ PSKFILE="${builddir}/tls-fuzzer.psk.$$.tmp"
 
 . "${srcdir}/../scripts/common.sh"
 
-eval "${GETPORT}"
+if test "${GNUTLS_FORCE_FIPS_MODE}" = 1 ; then
+       echo "Cannot run in FIPS140-2 mode"
+       exit 77
+fi
 
 if ! test -d "${srcdir}/tls-fuzzer/tlsfuzzer" ; then
        exit 77
@@ -36,6 +39,8 @@ if test "${PYTHON}" = ":" ; then
        exit 77
 fi
 
+eval "${GETPORT}"
+
 pushd "${srcdir}/tls-fuzzer/tlsfuzzer"
 
 wait_for_free_port $PORT