From 974a62af5dd6778676d282bafbf559124f051b3c Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 23 Jun 2016 20:03:13 -0400 Subject: [PATCH] Add switch for "HAVE_VALGRIND=0" and "WANT_BENCHMARKS=0" --- cryptest.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cryptest.sh b/cryptest.sh index 8c9ec9c0..f938dce5 100755 --- a/cryptest.sh +++ b/cryptest.sh @@ -95,6 +95,12 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then if [[ (-e "/usr/gnu/bin/awk") ]]; then AWK=/usr/gnu/bin/awk; else AWK=nawk; fi fi +# Recognize "fast" and "quick"... +if [[ ("$#" -eq "1") && ($("$EGREP" -ix "fast" <<< "$1") || $("$EGREP" -ix "quick" <<< "$1")) ]]; then + HAVE_VALGRIND=0 + WANT_BENCHMARKS=0 +fi + # We need to use the C++ compiler to determine feature availablility. Otherwise # mis-detections occur on a number of platforms. if [[ ((-z "$CXX") || ("$CXX" == "gcc")) ]]; then