aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aesxx/utils/test/block.cmake
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-05 17:48:35 +0500
committerEgor Tensin <egor@tensin.name>2026-10-05 17:48:35 +0500
commite8adf880c13f0ba10a3e23cdabaf02d4166c4fa4 (patch)
treec753360b5fec945da16276d0a4ad3a9758c7467b /aesxx/utils/test/block.cmake
parentconsistent prelude.mk (diff)
downloadaes-tools-e8adf880c13f0ba10a3e23cdabaf02d4166c4fa4.tar.gz
aes-tools-e8adf880c13f0ba10a3e23cdabaf02d4166c4fa4.zip
upgrade cmake-common
Diffstat (limited to 'aesxx/utils/test/block.cmake')
-rw-r--r--aesxx/utils/test/block.cmake22
1 files changed, 8 insertions, 14 deletions
diff --git a/aesxx/utils/test/block.cmake b/aesxx/utils/test/block.cmake
index c6aa196..e5f2dfc 100644
--- a/aesxx/utils/test/block.cmake
+++ b/aesxx/utils/test/block.cmake
@@ -67,13 +67,10 @@ foreach(algorithm ${algorithms})
string(JOIN "\n" output ${ciphertexts_${algorithm}_${mode}})
message(STATUS "Adding test for encrypt_block (${algorithm}/${mode})")
- add_test(NAME "util_encrypt_block_${algorithm}_${mode}"
- COMMAND Python3::Interpreter
- "${CMAKE_SOURCE_DIR}/cmake/tools/ctest-driver.py"
- run
- --pass-regex "^${output}$"
- --
- "$<TARGET_FILE:util_encrypt_block>" -a "${algorithm}" -m "${mode}" ${input}
+ add_test(NAME "util_encrypt_block_${algorithm}_${mode}" ${test_run}
+ --pass-regex "^${output}$"
+ --
+ "$<TARGET_FILE:util_encrypt_block>" -a "${algorithm}" -m "${mode}" ${input}
)
set(input "")
@@ -87,13 +84,10 @@ foreach(algorithm ${algorithms})
string(JOIN "\n" output ${plaintexts})
message(STATUS "Adding test for decrypt_block (${algorithm}/${mode})")
- add_test(NAME "util_decrypt_block_${algorithm}_${mode}"
- COMMAND Python3::Interpreter
- "${CMAKE_SOURCE_DIR}/cmake/tools/ctest-driver.py"
- run
- --pass-regex "^${output}$"
- --
- "$<TARGET_FILE:util_decrypt_block>" -a "${algorithm}" -m "${mode}" ${input}
+ add_test(NAME "util_decrypt_block_${algorithm}_${mode}" ${test_run}
+ --pass-regex "^${output}$"
+ --
+ "$<TARGET_FILE:util_decrypt_block>" -a "${algorithm}" -m "${mode}" ${input}
)
endforeach()
endforeach()