diff options
author | Jeffrey Walton <noloader@gmail.com> | 2023-01-19 22:04:34 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2023-01-19 22:04:34 -0500 |
commit | e1ad53184768328d75825c870ccc2a4e300fc7b2 (patch) | |
tree | 72d65ee9c9912cf8b4fa41e3341d222e9e102127 /TestScripts | |
parent | 524e99f2190197151aa3f7406bc6f39b85e5d12c (diff) | |
download | cryptopp-git-e1ad53184768328d75825c870ccc2a4e300fc7b2.tar.gz |
Update cryptest.sh with test for no command
Diffstat (limited to 'TestScripts')
-rwxr-xr-x | TestScripts/cryptest.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/TestScripts/cryptest.sh b/TestScripts/cryptest.sh index 9ae1c42d..96ca80f0 100755 --- a/TestScripts/cryptest.sh +++ b/TestScripts/cryptest.sh @@ -7856,6 +7856,16 @@ if [[ ("$IS_CYGWIN" -eq 0) && ("$IS_MINGW" -eq 0) ]]; then echo "Testing: Install (help file)" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" echo ./cryptest.exe h 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then + echo "ERROR: failed to provide help" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" + FAILED_LIST+=("Install with data directory") + fi + + echo + echo "************************************" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" + echo "Testing: Install (no command)" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" + echo + ./cryptest.exe h 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" if [[ ("${PIPESTATUS[0]}" -ne 1) ]]; then echo "ERROR: failed to provide help" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" FAILED_LIST+=("Install with data directory") |