Make TEST_RESULTS and friends configurable. Remove previous results from INSTALL_RESULTS

pull/200/head
Jeffrey Walton 2016-06-20 00:34:18 -04:00
parent 9750998d2c
commit e916b9049c
1 changed files with 15 additions and 4 deletions

View File

@ -25,10 +25,18 @@
############################################
# Set to suite your taste
TEST_RESULTS=cryptest-result.txt
BENCHMARK_RESULTS=cryptest-bench.txt
WARN_RESULTS=cryptest-warn.txt
INSTALL_RESULTS=cryptest-install.txt
if [[ (-z "$TEST_RESULTS") ]]; then
TEST_RESULTS=cryptest-result.txt
fi
if [[ (-z "$BENCHMARK_RESULTS") ]]; then
BENCHMARK_RESULTS=cryptest-bench.txt
fi
if [[ (-z "$WARN_RESULTS") ]]; then
WARN_RESULTS=cryptest-warn.txt
id
if [[ (-z "$INSTALL_RESULTS") ]]; then
INSTALL_RESULTS=cryptest-install.txt
fi
# Remove previous test results
rm -f "$TEST_RESULTS" > /dev/null 2>&1
@ -40,6 +48,9 @@ touch "$BENCHMARK_RESULTS"
rm -f "$WARN_RESULTS" > /dev/null 2>&1
touch "$WARN_RESULTS"
rm -f "$INSTALL_RESULTS" > /dev/null 2>&1
touch "$INSTALL_RESULTS"
# Avoid CRYPTOPP_DATA_DIR in this shell (it is tested below)
unset CRYPTOPP_DATA_DIR