aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aesxx/utils/test
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-07-23 15:17:35 +0200
committerEgor Tensin <egor@tensin.name>2026-07-23 15:20:39 +0200
commitb0e15c7d9a0cc5ca31809b01254bca5f3a72f047 (patch)
treea4b702ca4a3717827fc3637a0709589cc85eed4d /aesxx/utils/test
parentaes/error: add static asserts to prevent missing error messages (diff)
downloadaes-tools-b0e15c7d9a0cc5ca31809b01254bca5f3a72f047.tar.gz
aes-tools-b0e15c7d9a0cc5ca31809b01254bca5f3a72f047.zip
make buildable on Linux
Diffstat (limited to 'aesxx/utils/test')
-rw-r--r--aesxx/utils/test/basic.cmake11
1 files changed, 8 insertions, 3 deletions
diff --git a/aesxx/utils/test/basic.cmake b/aesxx/utils/test/basic.cmake
index b8df5a3..cba1180 100644
--- a/aesxx/utils/test/basic.cmake
+++ b/aesxx/utils/test/basic.cmake
@@ -1,11 +1,16 @@
+list(APPEND utils block file)
+if(WIN32)
+ list(APPEND utils bmp)
+endif()
+
foreach(action encrypt decrypt)
- foreach(util block file bmp)
+ foreach(util ${utils})
set(exe "${action}_${util}")
set(tgt "util_${exe}")
add_test(NAME "${tgt}_help" COMMAND Python3::Interpreter
"${CMAKE_SOURCE_DIR}/cmake/tools/ctest-driver.py"
run
- --pass-regex "usage: ${exe}\\.exe" "set algorithm"
+ --pass-regex "usage: ${exe}" "set algorithm"
--fail-regex "usage error:"
--
"$<TARGET_FILE:${tgt}>" -h
@@ -16,7 +21,7 @@ foreach(action encrypt decrypt)
--exit-code 1
--pass-regex
"usage error: the option '--algorithm' is required"
- "usage: ${exe}\\.exe"
+ "usage: ${exe}"
"set algorithm"
--
"$<TARGET_FILE:${tgt}>"