aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/CMakeLists.txt
blob: bd7fb1be38a3c4d2e5ad3aea0bd8919b67aa8f0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
find_package(Python3 REQUIRED COMPONENTS Interpreter)

set(test_run
    WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/cmake"
    COMMAND Python3::Interpreter
    -m project.ctest_driver
    run
)

add_test(NAME nist ${test_run}
    --pass-regex [=[Succeeded: *30$]=]
    --fail-regex [=[Failed: *[1-9]]=]
    --
    "$<TARGET_FILE:Python3::Interpreter>"
    "${CMAKE_CURRENT_SOURCE_DIR}/nist.py"
    --path "$<TARGET_FILE_DIR:util_encrypt_block>"
)
add_test(NAME cavp ${test_run}
    --pass-regex [=[Succeeded: *96$]=]
    --fail-regex [=[Failed: *[1-9]]=]
    --
    "$<TARGET_FILE:Python3::Interpreter>"
    "${CMAKE_CURRENT_SOURCE_DIR}/cavp.py"
    --path "$<TARGET_FILE_DIR:util_encrypt_block>"
)
add_test(NAME file ${test_run}
    --pass-regex [=[Succeeded: *180$]=]
    --fail-regex [=[Failed: *[1-9]]=]
    --
    "$<TARGET_FILE:Python3::Interpreter>"
    "${CMAKE_CURRENT_SOURCE_DIR}/file.py"
    --path "$<TARGET_FILE_DIR:util_encrypt_file>"
)