Add readme note on ctest timeouts & disable timeouts for KAT tests.
This commit is contained in:
@@ -105,6 +105,8 @@ The test harness consists of the following units:
|
|||||||
- Self-tests: runs random self-tests (key-generation, signing and verifying) - `SQIsign_<level>_SELFTEST`
|
- Self-tests: runs random self-tests (key-generation, signing and verifying) - `SQIsign_<level>_SELFTEST`
|
||||||
- Sub-library specific unit-tests.
|
- Sub-library specific unit-tests.
|
||||||
|
|
||||||
|
Note that, ctest has a default timeout of 1500s, which is applied to all tests except the KAT tests. To override the default timeout, run `ctest --timeout <seconds>`.
|
||||||
|
|
||||||
## Known Answer Tests (KAT)
|
## Known Answer Tests (KAT)
|
||||||
|
|
||||||
KAT are available in folder `KAT`. They can be generated by running the apps built in the `apps` folder:
|
KAT are available in folder `KAT`. They can be generated by running the apps built in the `apps` folder:
|
||||||
@@ -113,7 +115,7 @@ KAT are available in folder `KAT`. They can be generated by running the apps bui
|
|||||||
|
|
||||||
A successful execution will generate the `.req` and `.rsp` files.
|
A successful execution will generate the `.req` and `.rsp` files.
|
||||||
|
|
||||||
KAT verification is done as part of the test harness (see previous section).
|
A full KAT test is done as part of the test harness (see previous section).
|
||||||
|
|
||||||
## Benchmarks
|
## Benchmarks
|
||||||
|
|
||||||
|
|||||||
@@ -21,5 +21,7 @@ FOREACH(SVARIANT ${SVARIANT_S})
|
|||||||
|
|
||||||
add_test(sqisign_${SVARIANT}_KAT sqisign_test_kat_${SVARIANT})
|
add_test(sqisign_${SVARIANT}_KAT sqisign_test_kat_${SVARIANT})
|
||||||
add_test(sqisign_${SVARIANT}_SELFTEST sqisign_test_scheme_${SVARIANT})
|
add_test(sqisign_${SVARIANT}_SELFTEST sqisign_test_scheme_${SVARIANT})
|
||||||
|
|
||||||
|
set_tests_properties(sqisign_${SVARIANT}_KAT PROPERTIES TIMEOUT 0)
|
||||||
ENDFOREACH()
|
ENDFOREACH()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user