From 8aa5f463b1573e407004e577a683be817b5a6585 Mon Sep 17 00:00:00 2001 From: Colton Willey Date: Wed, 4 Sep 2024 14:48:25 -0700 Subject: [PATCH] Add option to skip all tests requiring an internet connection. --- scripts/ocsp-stapling.test | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/ocsp-stapling.test b/scripts/ocsp-stapling.test index 90b7332a9..226f7cd08 100755 --- a/scripts/ocsp-stapling.test +++ b/scripts/ocsp-stapling.test @@ -11,6 +11,11 @@ if [[ -z "${RETRIES_REMAINING-}" ]]; then export RETRIES_REMAINING=2 fi +if test -n "$WOLFSSL_NO_EXTERNAL_NETWORK_TESTS"; then + echo 'skipping oscp-stapling.test because WOLFSSL_NO_EXTERNAL_NETWORK_TESTS defined.' + exit 77 +fi + if ! ./examples/client/client -V | grep -q 3; then echo 'skipping ocsp-stapling.test because TLS1.2 is not available.' 1>&2 exit 77