diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 07b0102..b12552c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -16,6 +16,11 @@ add_test(NAME cli.decipher COMMAND ${CMAKE_COMMAND} -DPROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/decipher.cmake) +add_test(NAME cli.decrypt COMMAND ${CMAKE_COMMAND} + -DBKCRACK_COMMAND=$ + -DPROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR} + -P ${CMAKE_CURRENT_SOURCE_DIR}/decrypt.cmake) + add_test(NAME cli.change-password COMMAND ${CMAKE_COMMAND} -DBKCRACK_COMMAND=$ -DPROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR} diff --git a/tests/decrypt.cmake b/tests/decrypt.cmake new file mode 100644 index 0000000..23131d3 --- /dev/null +++ b/tests/decrypt.cmake @@ -0,0 +1,10 @@ +include(${PROJECT_SOURCE_DIR}/tests/verify_hash.cmake) + +execute_process( + COMMAND ${BKCRACK_COMMAND} + -C ${PROJECT_SOURCE_DIR}/example/secrets.zip + -k c4490e28 b414a23d 91404b31 + -D decrypt.zip + COMMAND_ERROR_IS_FATAL ANY) +verify_hash(decrypt.zip 7365b22e535e545fc60952e82acea961dce512d939dd01545e0a20f7fe82bb8e) +file(REMOVE decrypt.zip)