aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Simons <jon@jonsimons.org>2018-05-25 04:35:04 -0700
committerJon Simons <jon@jonsimons.org>2018-06-27 19:41:02 -0700
commit4e3fb81172105f9d7b2f20c47f842397e7132725 (patch)
treee9c0b1fcd019ce8749d055fc2137392f5231bfdb
parent6273c409e38e815c377b2939926a2847ab338d42 (diff)
downloadlibssh-4e3fb81172105f9d7b2f20c47f842397e7132725.tar.gz
libssh-4e3fb81172105f9d7b2f20c47f842397e7132725.tar.xz
libssh-4e3fb81172105f9d7b2f20c47f842397e7132725.zip
pkd: add_test pkd_hello_i1 for `make test`
Add an entry for a `pkd_hello_i1` test which runs one iteration through each of the pkd algorithm combinations. Testing done: now `make test` will run `pkd_hello -i1` which completes in ~25 seconds on my local machine. Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--tests/pkd/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pkd/CMakeLists.txt b/tests/pkd/CMakeLists.txt
index 07384341..ff23ba95 100644
--- a/tests/pkd/CMakeLists.txt
+++ b/tests/pkd/CMakeLists.txt
@@ -32,4 +32,12 @@ set(pkd_libs
add_executable(pkd_hello ${pkd_hello_src})
target_link_libraries(pkd_hello ${pkd_libs})
+#
+# pkd_hello_i1 runs only one iteration per algorithm combination for
+# sake of speeding up overall test run time. More iterations can be
+# specified with `-i` and may be helpful for chasing down bugs that
+# are not 100% reproducible.
+#
+add_test(pkd_hello_i1 ${CMAKE_CURRENT_BINARY_DIR}/pkd_hello -i1)
+
endif (WITH_SERVER AND UNIX AND NOT WIN32)