Ability to bypass './configure' as some tests/scripts run it anyway

This commit is contained in:
Andras Fekete
2024-11-06 08:39:23 -05:00
parent 95b47714d5
commit b4f0789ce5

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