diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-05 10:25:02 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-05 12:07:03 +0300 |
commit | cc3a982397323f9adcc58b84ac54f38ddff0ae48 (patch) | |
tree | f751411b9254b4fe61b0354abc9b601ed2256842 | |
parent | Makefile: best practices (diff) | |
download | aes-tools-cc3a982397323f9adcc58b84ac54f38ddff0ae48.tar.gz aes-tools-cc3a982397323f9adcc58b84ac54f38ddff0ae48.zip |
cmake: check CTest tests output
Diffstat (limited to '')
-rw-r--r-- | test/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7156ac8..1445141 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -4,3 +4,19 @@ add_test(NAME nist_boxes COMMAND Python3::Interpreter "${CMAKE_CURRENT_SOURCE_DI add_test(NAME cavp COMMAND Python3::Interpreter "${CMAKE_CURRENT_SOURCE_DIR}/cavp.py" --path "$<TARGET_FILE_DIR:util_encrypt_block>") add_test(NAME cavp_boxes COMMAND Python3::Interpreter "${CMAKE_CURRENT_SOURCE_DIR}/cavp.py" --path "$<TARGET_FILE_DIR:util_encrypt_block>" --boxes) add_test(NAME file COMMAND Python3::Interpreter "${CMAKE_CURRENT_SOURCE_DIR}/file.py" --path "$<TARGET_FILE_DIR:util_encrypt_file>") + +set_tests_properties(nist PROPERTIES + FAIL_REGULAR_EXPRESSION "Failed: *[1-9]" + PASS_REGULAR_EXPRESSION "Succeeded: *30") +set_tests_properties(nist_boxes PROPERTIES + FAIL_REGULAR_EXPRESSION "Failed: *[1-9]" + PASS_REGULAR_EXPRESSION "Succeeded: *30") +set_tests_properties(cavp PROPERTIES + FAIL_REGULAR_EXPRESSION "Failed: *[1-9]" + PASS_REGULAR_EXPRESSION "Succeeded: *96") +set_tests_properties(cavp_boxes PROPERTIES + FAIL_REGULAR_EXPRESSION "Failed: *[1-9]" + PASS_REGULAR_EXPRESSION "Succeeded: *96") +set_tests_properties(file PROPERTIES + FAIL_REGULAR_EXPRESSION "Failed: *[1-9]" + PASS_REGULAR_EXPRESSION "Succeeded: *180") |