Skip to content

Commit 57c58e0

Browse files
committed
Add tests for cmd/st/crc
1 parent 834f03a commit 57c58e0

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

cmd/test/test.cmd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ rem ===========================================================================
33
rem \brief Testing command-line interface
44
rem \project bee2evp/cmd
55
rem \created 2022.06.24
6-
rem \version 2025.04.22
6+
rem \version 2025.04.23
77
rem \pre The working directory contains zed.csr.
88
rem ===========================================================================
99

@@ -705,6 +705,12 @@ if %ERRORLEVEL% neq 0 goto Error
705705
bee2cmd st stamp
706706
if %ERRORLEVEL% neq 0 goto Error
707707

708+
bee2cmd st crc
709+
if %ERRORLEVEL% neq 0 goto Error
710+
711+
bee2cmd st crc 123
712+
if %ERRORLEVEL% neq 0 goto Error
713+
708714
echo ****** OK
709715

710716
rem ===========================================================================

cmd/test/test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# \brief Testing command-line interface
44
# \project bee2evp/cmd
55
# \created 2022.06.24
6-
# \version 2025.04.22
6+
# \version 2025.04.23
77
# \pre The working directory contains zed.csr.
88
# =============================================================================
99

@@ -529,6 +529,10 @@ test_st(){
529529
|| return 1
530530
$bee2cmd st stamp \
531531
|| return 1
532+
$bee2cmd st crc \
533+
|| return 1
534+
$bee2cmd st crc 123 \
535+
|| return 1
532536

533537
return 0
534538
}

0 commit comments

Comments
 (0)