Skip to content

Commit

Permalink
Update cryptest.sh with test for no command
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Jan 20, 2023
1 parent 524e99f commit e1ad531
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions TestScripts/cryptest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e1ad531

Please sign in to comment.