Add WANT_BENCHMARKS to speedup testing
parent
c8586d65fe
commit
35ec61b59c
15
cryptest.sh
15
cryptest.sh
|
|
@ -19,6 +19,9 @@
|
||||||
# CXXFLAGS=-Wall ./cryptest.sh
|
# CXXFLAGS=-Wall ./cryptest.sh
|
||||||
# CXXFLAGS="-Wall -Wextra" ./cryptest.sh
|
# CXXFLAGS="-Wall -Wextra" ./cryptest.sh
|
||||||
|
|
||||||
|
# The fastest results (in running time) will most likely use:
|
||||||
|
# HAVE_VALGRIND=0 WANT_BENCHMARKS=0 ./cryptest.sh
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
# Set to suite your taste
|
# Set to suite your taste
|
||||||
|
|
||||||
|
|
@ -346,6 +349,11 @@ if [[ (-z "$HAVE_DISASS") ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Benchmarks take a long time...
|
||||||
|
if [[ (-z "$WANT_BENCHMARKS") ]]; then
|
||||||
|
WANT_BENCHMARKS=1
|
||||||
|
fi
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
# System information
|
# System information
|
||||||
|
|
||||||
|
|
@ -3005,6 +3013,10 @@ if [[ "$HAVE_ARM_CRYPTO" -ne "0" ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
############################################
|
||||||
|
# Benchmarks
|
||||||
|
if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
# Benchmarks, c++03
|
# Benchmarks, c++03
|
||||||
if [[ "$HAVE_CXX03" -ne "0" ]]; then
|
if [[ "$HAVE_CXX03" -ne "0" ]]; then
|
||||||
|
|
@ -3081,6 +3093,7 @@ if [[ "$HAVE_CXX14" -ne "0" ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# For Cygwin, we need to test both PREFER_BERKELEY_STYLE_SOCKETS
|
# For Cygwin, we need to test both PREFER_BERKELEY_STYLE_SOCKETS
|
||||||
# and PREFER_WINDOWS_STYLE_SOCKETS
|
# and PREFER_WINDOWS_STYLE_SOCKETS
|
||||||
|
|
@ -3477,6 +3490,7 @@ if [[ ("$IS_CYGWIN" -eq "0") && ("$IS_MINGW" -eq "0") ]]; then
|
||||||
echo "ERROR: failed to execute test vectors" | tee -a "$INSTALL_RESULTS"
|
echo "ERROR: failed to execute test vectors" | tee -a "$INSTALL_RESULTS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then
|
||||||
echo
|
echo
|
||||||
echo "************************************" | tee -a "$INSTALL_RESULTS"
|
echo "************************************" | tee -a "$INSTALL_RESULTS"
|
||||||
echo "Testing: Install (benchmarks)" | tee -a "$INSTALL_RESULTS"
|
echo "Testing: Install (benchmarks)" | tee -a "$INSTALL_RESULTS"
|
||||||
|
|
@ -3485,6 +3499,7 @@ if [[ ("$IS_CYGWIN" -eq "0") && ("$IS_MINGW" -eq "0") ]]; then
|
||||||
if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then
|
if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then
|
||||||
echo "ERROR: failed to execute benchmarks" | tee -a "$INSTALL_RESULTS"
|
echo "ERROR: failed to execute benchmarks" | tee -a "$INSTALL_RESULTS"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "************************************" | tee -a "$INSTALL_RESULTS"
|
echo "************************************" | tee -a "$INSTALL_RESULTS"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue