Skip to content

Commit

Permalink
Update cmd/test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
agievich committed Jan 22, 2024
1 parent 94f1d7b commit 3e57135
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
17 changes: 16 additions & 1 deletion cmd/test/test.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ rem ===========================================================================
rem \brief Testing command-line interface
rem \project bee2evp/cmd
rem \created 2022.06.24
rem \version 2024.01.19
rem \version 2024.01.22
rem ===========================================================================

rem ===========================================================================
Expand Down Expand Up @@ -58,6 +58,21 @@ if %ERRORLEVEL% neq 0 goto Error
bee2cmd bsum -bash-prg-hash2561 -c -- -c
if %ERRORLEVEL% neq 0 goto Error

bee2cmd bsum -bash-prg-hash2562 -c -- -c
if %ERRORLEVEL% equ 0 goto Error

bee2cmd bsum -c -bash-prg-hash2561 -- -c
if %ERRORLEVEL% neq 0 goto Error

bee2cmd bsum -c -bash-prg-hash2561 -c -- -c
if %ERRORLEVEL% equ 0 goto Error

bee2cmd bsum -c -belt-hash -bash-prg-hash2561 -- -c
if %ERRORLEVEL% equ 0 goto Error

bee2cmd bsum -b -c -- -c
if %ERRORLEVEL% equ 0 goto Error

echo ****** OK

rem ===========================================================================
Expand Down
12 changes: 11 additions & 1 deletion cmd/test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# \brief Testing command-line interface
# \project bee2evp/cmd
# \created 2022.06.24
# \version 2024.01.19
# \version 2024.01.22
# =============================================================================

bee2cmd="${BEE2CMD:-./bee2cmd}"
Expand Down Expand Up @@ -53,6 +53,16 @@ test_bsum() {
|| return 1
$bee2cmd bsum -bash-prg-hash2561 -c -- -c \
|| return 1
$bee2cmd bsum -bash-prg-hash2562 -c -- -c \
&& return 1
$bee2cmd bsum -c -bash-prg-hash2561 -- -c \
|| return 1
$bee2cmd bsum -c -bash-prg-hash2561 -c -- -c \
&& return 1
$bee2cmd bsum -c -belt-hash -bash-prg-hash2561 -- -c \
&& return 1
$bee2cmd bsum -b -c -- -c \
&& return 1
return 0
}

Expand Down

0 comments on commit 3e57135

Please sign in to comment.