Add WANT_BENCHMARKS to speedup testing

pull/200/head
Jeffrey Walton 2016-06-18 16:50:00 -04:00
parent c8586d65fe
commit 35ec61b59c
1 changed files with 76 additions and 61 deletions

View File

@ -19,6 +19,9 @@
# CXXFLAGS=-Wall ./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
@ -346,6 +349,11 @@ if [[ (-z "$HAVE_DISASS") ]]; then
fi
fi
# Benchmarks take a long time...
if [[ (-z "$WANT_BENCHMARKS") ]]; then
WANT_BENCHMARKS=1
fi
############################################
# System information
@ -3005,6 +3013,10 @@ if [[ "$HAVE_ARM_CRYPTO" -ne "0" ]]; then
fi
fi
############################################
# Benchmarks
if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then
############################################
# Benchmarks, c++03
if [[ "$HAVE_CXX03" -ne "0" ]]; then
@ -3081,6 +3093,7 @@ if [[ "$HAVE_CXX14" -ne "0" ]]; then
fi
fi
fi
fi
# For Cygwin, we need to test both PREFER_BERKELEY_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"
fi
if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then
echo
echo "************************************" | 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
echo "ERROR: failed to execute benchmarks" | tee -a "$INSTALL_RESULTS"
fi
fi
echo
echo "************************************" | tee -a "$INSTALL_RESULTS"