From a98c73f4f6b71988aaf4dd481fc323caccaadbd9 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: Thu, 12 Jan 2023 01:42:14 +0300 Subject: [PATCH] =?UTF-8?q?mdbx-cmake:=20=D0=B2=D1=8B=D0=B7=D0=BE=D0=B2=20?= =?UTF-8?q?mdbx=5Fchk=20=D0=B2=20=D1=80=D0=B5=D0=B6=D0=B8=D0=BC=D0=B5=20?= =?UTF-8?q?=D1=87=D1=82=D0=B5=D0=BD=D0=B8=D1=8F-=D0=B7=D0=B0=D0=BF=D0=B8?= =?UTF-8?q?=D1=81=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=D0=BA=D0=B8=20MDBX=5FEXCLUSIVE=20=D0=B2=20=D1=8D?= =?UTF-8?q?=D1=82=D0=BE=D0=BC=20=D1=80=D0=B5=D0=B6=D0=B8=D0=BC=D0=B5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeLog.md | 1 + test/CMakeLists.txt | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index d6092b1d..fe94a40a 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -25,6 +25,7 @@ and [by Yandex](https://translated.turbopages.org/proxy_u/ru-en.en/https/gitflic - Исправление опечаток. - Доработка теста для полной стохастической проверки `MDBX_EKEYMISMATCH` в режиме `MDBX_APPEND`. + - Добавление в CMake-тесты вызова mdbx_chk в режиме чтения-записи для проверки MDBX_EXCLUSIVE в этом режиме. ------------------------------------------------------------------------------- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0a067d09..1889c8b8 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -92,11 +92,13 @@ else() set_tests_properties(smoke_chk PROPERTIES DEPENDS smoke TIMEOUT 60 + FAIL_REGULAR_EXPRESSION "cooperative mode" REQUIRED_FILES smoke.db) add_test(NAME smoke_chk_copy COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv smoke.db-copy) set_tests_properties(smoke_chk_copy PROPERTIES DEPENDS smoke TIMEOUT 60 + FAIL_REGULAR_EXPRESSION "cooperative mode" REQUIRED_FILES smoke.db-copy) endif() @@ -109,15 +111,16 @@ else() TIMEOUT 600 RUN_SERIAL OFF) if(MDBX_BUILD_TOOLS) - add_test(NAME dupsort_writemap_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv dupsort_writemap.db) + add_test(NAME dupsort_writemap_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvvwc dupsort_writemap.db) set_tests_properties(dupsort_writemap_chk PROPERTIES DEPENDS dupsort_writemap TIMEOUT 60 REQUIRED_FILES dupsort_writemap.db) - add_test(NAME dupsort_writemap_chk_copy COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv dupsort_writemap.db-copy) + add_test(NAME dupsort_writemap_chk_copy COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvvc dupsort_writemap.db-copy) set_tests_properties(dupsort_writemap_chk_copy PROPERTIES DEPENDS dupsort_writemap TIMEOUT 60 + FAIL_REGULAR_EXPRESSION "monopolistic mode" REQUIRED_FILES dupsort_writemap.db-copy) endif() @@ -128,15 +131,17 @@ else() TIMEOUT 1800 RUN_SERIAL OFF) if(MDBX_BUILD_TOOLS) - add_test(NAME uniq_nested_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv uniq_nested.db) + add_test(NAME uniq_nested_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvvw uniq_nested.db) set_tests_properties(uniq_nested_chk PROPERTIES DEPENDS uniq_nested TIMEOUT 60 + FAIL_REGULAR_EXPRESSION "cooperative mode" REQUIRED_FILES uniq_nested.db) add_test(NAME uniq_nested_chk_copy COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv uniq_nested.db-copy) set_tests_properties(uniq_nested_chk_copy PROPERTIES DEPENDS uniq_nested TIMEOUT 60 + FAIL_REGULAR_EXPRESSION "cooperative mode" REQUIRED_FILES uniq_nested.db-copy) endif()