Add otion to test using config.h or config.recommend

pull/263/head
Jeffrey Walton 2016-09-08 07:38:20 -04:00
parent b6e0465e71
commit 66dc925f94
1 changed files with 16 additions and 0 deletions

View File

@ -30,6 +30,12 @@
# rather than all of them. Its useful at places like the GCC Compile Farm, where being nice is policy. # rather than all of them. Its useful at places like the GCC Compile Farm, where being nice is policy.
# ./cryptest.sh nice # ./cryptest.sh nice
# You can test using original config.h with the following. 'orig', 'original' and 'config.h' are synonyms:
# ./cryptest.sh original
# You can test using config.recommend with the following. 'rec', 'recommend' and 'config.recommend' are synonyms:
# ./cryptest.sh recommend
############################################ ############################################
# Set to suite your taste # Set to suite your taste
@ -157,6 +163,7 @@ elif [[ ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0") ]]; then
fi fi
fi fi
WANTED_CONFIG=0
for ARG in "$@" for ARG in "$@"
do do
# Recognize "fast" and "quick", which does not perform tests that take more time to execute # Recognize "fast" and "quick", which does not perform tests that take more time to execute
@ -166,6 +173,15 @@ do
# Recognize "farm" and "nice", which uses 1/2 the CPU cores in accordance with GCC Compile Farm policy # Recognize "farm" and "nice", which uses 1/2 the CPU cores in accordance with GCC Compile Farm policy
elif [[ ($("$EGREP" -ix "farm" <<< "$ARG") || $("$EGREP" -ix "nice" <<< "$ARG")) ]]; then elif [[ ($("$EGREP" -ix "farm" <<< "$ARG") || $("$EGREP" -ix "nice" <<< "$ARG")) ]]; then
WANT_NICE=1 WANT_NICE=1
elif [[ ($("$EGREP" -ix "orig" <<< "$ARG") || $("$EGREP" -ix "original" <<< "$ARG") || $("$EGREP" -ix "config.h" <<< "$ARG")) ]]; then
git checkout config.h &>/dev/null
WANTED_CONFIG=1
elif [[ ($("$EGREP" -ix "rec" <<< "$ARG") || $("$EGREP" -ix "recommend" <<< "$ARG") || $("$EGREP" -ix "config.recommend" <<< "$ARG")) ]]; then
git checkout config.recommend &>/dev/null
cp config.recommend config.h
WANTED_CONFIG=1
else
echo "Unknown option $ARG"
fi fi
done done