mdbx-cmake: avoid tests with mdbx_chk when MDBX_BUILD_TOOLS=OFF.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-04-22 18:07:51 +03:00
parent 7770cae4b5
commit 03e7e3be74

View File

@ -79,6 +79,7 @@ else()
set_tests_properties(smoke PROPERTIES set_tests_properties(smoke PROPERTIES
TIMEOUT 600 TIMEOUT 600
RUN_SERIAL OFF) RUN_SERIAL OFF)
if(MDBX_BUILD_TOOLS)
add_test(NAME smoke_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv smoke.db) add_test(NAME smoke_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv smoke.db)
set_tests_properties(smoke_chk PROPERTIES set_tests_properties(smoke_chk PROPERTIES
DEPENDS smoke DEPENDS smoke
@ -89,6 +90,7 @@ else()
DEPENDS smoke DEPENDS smoke
TIMEOUT 60 TIMEOUT 60
REQUIRED_FILES smoke.db-copy) REQUIRED_FILES smoke.db-copy)
endif()
add_test(NAME dupsort_writemap COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test add_test(NAME dupsort_writemap COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test
--loglevel=notice --loglevel=notice
@ -97,6 +99,7 @@ else()
set_tests_properties(dupsort_writemap PROPERTIES set_tests_properties(dupsort_writemap PROPERTIES
TIMEOUT 600 TIMEOUT 600
RUN_SERIAL OFF) 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 -nvv dupsort_writemap.db)
set_tests_properties(dupsort_writemap_chk PROPERTIES set_tests_properties(dupsort_writemap_chk PROPERTIES
DEPENDS dupsort_writemap DEPENDS dupsort_writemap
@ -107,6 +110,7 @@ else()
DEPENDS dupsort_writemap DEPENDS dupsort_writemap
TIMEOUT 60 TIMEOUT 60
REQUIRED_FILES dupsort_writemap.db-copy) REQUIRED_FILES dupsort_writemap.db-copy)
endif()
add_test(NAME uniq_nested COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test add_test(NAME uniq_nested COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test
--loglevel=notice --loglevel=notice
@ -114,6 +118,7 @@ else()
set_tests_properties(uniq_nested PROPERTIES set_tests_properties(uniq_nested PROPERTIES
TIMEOUT 1800 TIMEOUT 1800
RUN_SERIAL OFF) 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 -nvv uniq_nested.db)
set_tests_properties(uniq_nested_chk PROPERTIES set_tests_properties(uniq_nested_chk PROPERTIES
DEPENDS uniq_nested DEPENDS uniq_nested
@ -124,5 +129,6 @@ else()
DEPENDS uniq_nested DEPENDS uniq_nested
TIMEOUT 60 TIMEOUT 60
REQUIRED_FILES uniq_nested.db-copy) REQUIRED_FILES uniq_nested.db-copy)
endif()
endif() endif()