Skip to content

Commit fe9a462

Browse files
author
Andras Fekete
committed
Get FIPS tests running
1 parent 7c08d65 commit fe9a462

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

scripts/test-sanity.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
# This script provides simple sanity checks to make sure the provider is working
3+
# NOTE: Careful running this script, because it will remove folders automatically
34

45
SET_PRE=$( set )
56
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
@@ -23,7 +24,9 @@ function doTestCmd() {
2324

2425
function runSpotCheck() {
2526
SPOTCHECK_ARGS=$1
26-
rm -rf ${WOLFSSL_INSTALL_DIR} ${WOLFPROV_INSTALL_DIR}
27+
unset OPENSSL_MODULES
28+
unset OPENSSL_CONF
29+
rm -rf ${WOLFSSL_INSTALL_DIR} ${WOLFSSL_SOURCE_DIR} ${WOLFPROV_INSTALL_DIR}
2730
doTestCmd "$1 init_wolfprov"
2831

2932
SET_POST=$( set )

scripts/utils-wolfssl.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ install_wolfssl() {
8484
WOLFSSL_CONFIG_CFLAGS+=" -DWOLFSSL_LOGGINGENABLED_DEFAULT=1"
8585
fi
8686
if [ "$WOLFSSL_ISFIPS" = "1" ]; then
87+
printf "with FIPS ... "
8788
CONF_ARGS+=" --enable-fips=ready"
8889
if [ ! -e "XXX-fips-test" ]; then
8990
./fips-check.sh keep nomakecheck fips-ready >>$LOG_FILE 2>&1

0 commit comments

Comments
 (0)