Add missing Debug/CRYPTOPP_NO_BACKWARDS_COMPATIBILITY_562 test. Whitespace
parent
e682e2dd6f
commit
eb52134f03
31
cryptest.sh
31
cryptest.sh
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
# This is a test script that can be used on some Linux/Unix/Apple machines to automate building the
|
||||
# library and running the self test with various combinations of flags, options, and conditions.
|
||||
# For more details, see http://cryptopp.com/wiki/cryptest.sh.
|
||||
|
||||
# To run the script, simply perform the following:
|
||||
# ./cryptest.sh
|
||||
|
|
@ -22,8 +23,6 @@
|
|||
# The fastest results (in running time) will most likely use:
|
||||
# HAVE_VALGRIND=0 WANT_BENCHMARKS=0 ./cryptest.sh
|
||||
|
||||
# For more details, see http://cryptopp.com/wiki/cryptest.sh.
|
||||
|
||||
############################################
|
||||
# Set to suite your taste
|
||||
|
||||
|
|
@ -1276,6 +1275,34 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
############################################
|
||||
# Debug build, no backwards compatibility with Crypto++ 5.6.2.
|
||||
# This test will not be needed in Crypto++ 5.7 and above
|
||||
echo
|
||||
echo "************************************" | tee -a "$TEST_RESULTS"
|
||||
echo "Testing: debug, NO_BACKWARDS_COMPATIBILITY_562" | tee -a "$TEST_RESULTS"
|
||||
echo
|
||||
|
||||
unset CXXFLAGS
|
||||
"$MAKE" clean > /dev/null 2>&1
|
||||
rm -f adhoc.cpp > /dev/null 2>&1
|
||||
|
||||
export CXXFLAGS="$DEBUG_CXXFLAGS -DCRYPTOPP_NO_BACKWARDS_COMPATIBILITY_562 ${RETAINED_CXXFLAGS[@]}"
|
||||
"$MAKE" "${MAKEARGS[@]}" CXX="$CXX" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS"
|
||||
|
||||
if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then
|
||||
echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS"
|
||||
else
|
||||
./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS"
|
||||
if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then
|
||||
echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS"
|
||||
fi
|
||||
./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS"
|
||||
if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then
|
||||
echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS"
|
||||
fi
|
||||
fi
|
||||
|
||||
############################################
|
||||
# Release build, no backwards compatibility with Crypto++ 5.6.2.
|
||||
# This test will not be needed in Crypto++ 5.7 and above
|
||||
|
|
|
|||
Loading…
Reference in New Issue