Merge pull request #8154 from bandi13/fipsCheckAddFlag

Ability to bypass './configure' as some tests/scripts run it anyway
This commit is contained in:
Daniel Pouzzner
2024-11-06 15:07:17 -06:00
committed by GitHub
2 changed files with 33 additions and 29 deletions

View File

@@ -17,6 +17,7 @@ TEST_DIR="${TEST_DIR:-XXX-fips-test}"
FLAVOR="${FLAVOR:-linux}"
KEEP="${KEEP:-no}"
MAKECHECK=${MAKECHECK:-yes}
DOCONFIGURE=${DOCONFIGURE:-yes}
FIPS_REPO="${FIPS_REPO:-git@github.com:wolfssl/fips.git}"
Usage() {
@@ -43,6 +44,7 @@ usageText
while [ "$1" ]; do
if [ "$1" = 'keep' ]; then KEEP='yes';
elif [ "$1" = 'nomakecheck' ]; then MAKECHECK='no';
elif [ "$1" = 'nodoconfigure' ]; then DOCONFIGURE='no';
else FLAVOR="$1"; fi
shift
done
@@ -368,6 +370,7 @@ fi
# run the make test
./autogen.sh
if [ "$DOCONFIGURE" = "yes" ]; then
case "$FIPS_OPTION" in
cavp-selftest)
./configure --enable-selftest
@@ -400,6 +403,7 @@ if [ "$MAKECHECK" = "yes" ]; then
exit 3
fi
fi
fi
# Clean up
popd || exit 2

View File

@@ -61436,7 +61436,7 @@ static int test_wolfSSL_X509_NID(void)
#if (defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)) && \
!defined(NO_RSA) && defined(USE_CERT_BUFFERS_2048) && !defined(NO_ASN)
int sigType;
int nameSz;
int nameSz = 0;
X509* cert = NULL;
EVP_PKEY* pubKeyTmp = NULL;