Skip to content

Commit

Permalink
Make test case on zip content listing more precise
Browse files Browse the repository at this point in the history
  • Loading branch information
kimci86 committed Feb 25, 2024
1 parent 88e04a0 commit 0b5a891
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ set_tests_properties(cli.bruteforce.medium PROPERTIES PASS_REGULAR_EXPRESSION "P
set_tests_properties(cli.bruteforce.long PROPERTIES PASS_REGULAR_EXPRESSION "Password: abcdefghijkl\n")

add_test(NAME cli.list COMMAND bkcrack -L secrets.zip WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/example)
set_tests_properties(cli.list PROPERTIES PASS_REGULAR_EXPRESSION "advice\.jpg.*spiral\.svg")
set_tests_properties(cli.list PROPERTIES PASS_REGULAR_EXPRESSION "
Index Encryption Compression CRC32 Uncompressed Packed size Name
----- ---------- ----------- -------- ------------ ------------ ----------------
0 ZipCrypto Deflate 7ca9f10a 54799 54700 advice.jpg
1 ZipCrypto Store a99f1d0d 1265 1277 spiral.svg
")

add_test(NAME cli.version COMMAND bkcrack --version)
set_tests_properties(cli.version PROPERTIES PASS_REGULAR_EXPRESSION "^bkcrack ${bkcrack_VERSION} - ${bkcrack_VERSION_DATE}\n\$")
Expand Down

0 comments on commit 0b5a891

Please sign in to comment.