From b327cafe1a8bf3f7b48b7e6901e6f4c57e393431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Fri, 22 Apr 2022 22:07:42 +0300 Subject: [PATCH] mdbx-cmake: seeding cmake tests. --- test/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 62a4e643..d3f3b38e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -73,8 +73,12 @@ if (CMAKE_CROSSCOMPILING AND NOT CMAKE_CROSSCOMPILING_EMULATOR) echo "No emulator to run cross-compiled tests") else() + string(RANDOM LENGTH 9 ALPHABET "1234567890" test_seed) + message(STATUS "The ${test_seed} will be used for seeding tests. Re-run cmake to re-seed it.") + add_test(NAME smoke COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test --loglevel=verbose + --keygen.seed=${test_seed} --progress --console=no --pathname=smoke.db --dont-cleanup-after basic) set_tests_properties(smoke PROPERTIES TIMEOUT 600 @@ -94,6 +98,7 @@ else() add_test(NAME dupsort_writemap COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test --loglevel=notice + --keygen.seed=${test_seed} --table=+data.integer --keygen.split=29 --datalen.min=min --datalen.max=max --progress --console=no --repeat=2 --pathname=dupsort_writemap.db --dont-cleanup-after basic) set_tests_properties(dupsort_writemap PROPERTIES