From e916b9049c1da034a17efa1df423329795273003 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 20 Jun 2016 00:34:18 -0400 Subject: [PATCH] Make TEST_RESULTS and friends configurable. Remove previous results from INSTALL_RESULTS --- cryptest.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/cryptest.sh b/cryptest.sh index b20c99ff..a69bc39d 100755 --- a/cryptest.sh +++ b/cryptest.sh @@ -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