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