From df24e34993206d5a53061ba667a580f9b65dc8a1 Mon Sep 17 00:00:00 2001 From: Basil Hess Date: Fri, 7 Jul 2023 17:17:09 +0200 Subject: [PATCH] Add readme note on ctest timeouts & disable timeouts for KAT tests. --- README.md | 4 +++- test/CMakeLists.txt | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 243be6e..d37cb51 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,8 @@ The test harness consists of the following units: - Self-tests: runs random self-tests (key-generation, signing and verifying) - `SQIsign__SELFTEST` - 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 `. + ## Known Answer Tests (KAT) 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. -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 diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2461029..51c0c46 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -21,5 +21,7 @@ FOREACH(SVARIANT ${SVARIANT_S}) add_test(sqisign_${SVARIANT}_KAT sqisign_test_kat_${SVARIANT}) add_test(sqisign_${SVARIANT}_SELFTEST sqisign_test_scheme_${SVARIANT}) + + set_tests_properties(sqisign_${SVARIANT}_KAT PROPERTIES TIMEOUT 0) ENDFOREACH()