Add in 'make check' bypass

This commit is contained in:
Andras Fekete
2024-01-16 11:58:10 -05:00
parent d4272bb48d
commit 5fc32a1124

View File

@@ -16,6 +16,7 @@ GIT="${GIT:-git -c advice.detachedHead=false}"
TEST_DIR="${TEST_DIR:-XXX-fips-test}" TEST_DIR="${TEST_DIR:-XXX-fips-test}"
FLAVOR="${FLAVOR:-linux}" FLAVOR="${FLAVOR:-linux}"
KEEP="${KEEP:-no}" KEEP="${KEEP:-no}"
MAKECHECK=${MAKECHECK:-yes}
FIPS_REPO="${FIPS_REPO:-git@github.com:wolfssl/fips.git}" FIPS_REPO="${FIPS_REPO:-git@github.com:wolfssl/fips.git}"
Usage() { Usage() {
@@ -39,7 +40,9 @@ usageText
} }
while [ "$1" ]; do while [ "$1" ]; do
if [ "$1" = 'keep' ]; then KEEP='yes'; else FLAVOR="$1"; fi if [ "$1" = 'keep' ]; then KEEP='yes';
elif [ "$1" = 'nomakecheck' ]; then MAKECHECK='no';
else FLAVOR="$1"; fi
shift shift
done done
@@ -359,10 +362,11 @@ then
fi fi
fi fi
if ! $MAKE check if [ "$MAKECHECK" = "yes" ]; then
then if ! $MAKE check; then
echo 'fips-check: Test failed. Debris left for analysis.' echo 'fips-check: Test failed. Debris left for analysis.'
exit 3 exit 3
fi
fi fi
# Clean up # Clean up