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,16 +79,18 @@ else()
set_tests_properties(smoke PROPERTIES set_tests_properties(smoke PROPERTIES
TIMEOUT 600 TIMEOUT 600
RUN_SERIAL OFF) RUN_SERIAL OFF)
add_test(NAME smoke_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv smoke.db) if(MDBX_BUILD_TOOLS)
set_tests_properties(smoke_chk PROPERTIES add_test(NAME smoke_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv smoke.db)
DEPENDS smoke set_tests_properties(smoke_chk PROPERTIES
TIMEOUT 60 DEPENDS smoke
REQUIRED_FILES smoke.db) TIMEOUT 60
add_test(NAME smoke_chk_copy COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv smoke.db-copy) REQUIRED_FILES smoke.db)
set_tests_properties(smoke_chk_copy PROPERTIES add_test(NAME smoke_chk_copy COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv smoke.db-copy)
DEPENDS smoke set_tests_properties(smoke_chk_copy PROPERTIES
TIMEOUT 60 DEPENDS smoke
REQUIRED_FILES smoke.db-copy) TIMEOUT 60
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,16 +99,18 @@ else()
set_tests_properties(dupsort_writemap PROPERTIES set_tests_properties(dupsort_writemap PROPERTIES
TIMEOUT 600 TIMEOUT 600
RUN_SERIAL OFF) RUN_SERIAL OFF)
add_test(NAME dupsort_writemap_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv dupsort_writemap.db) if(MDBX_BUILD_TOOLS)
set_tests_properties(dupsort_writemap_chk PROPERTIES add_test(NAME dupsort_writemap_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv dupsort_writemap.db)
DEPENDS dupsort_writemap set_tests_properties(dupsort_writemap_chk PROPERTIES
TIMEOUT 60 DEPENDS dupsort_writemap
REQUIRED_FILES dupsort_writemap.db) TIMEOUT 60
add_test(NAME dupsort_writemap_chk_copy COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv dupsort_writemap.db-copy) REQUIRED_FILES dupsort_writemap.db)
set_tests_properties(dupsort_writemap_chk_copy PROPERTIES add_test(NAME dupsort_writemap_chk_copy COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv dupsort_writemap.db-copy)
DEPENDS dupsort_writemap set_tests_properties(dupsort_writemap_chk_copy PROPERTIES
TIMEOUT 60 DEPENDS dupsort_writemap
REQUIRED_FILES dupsort_writemap.db-copy) TIMEOUT 60
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,15 +118,17 @@ else()
set_tests_properties(uniq_nested PROPERTIES set_tests_properties(uniq_nested PROPERTIES
TIMEOUT 1800 TIMEOUT 1800
RUN_SERIAL OFF) RUN_SERIAL OFF)
add_test(NAME uniq_nested_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv uniq_nested.db) if(MDBX_BUILD_TOOLS)
set_tests_properties(uniq_nested_chk PROPERTIES add_test(NAME uniq_nested_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv uniq_nested.db)
DEPENDS uniq_nested set_tests_properties(uniq_nested_chk PROPERTIES
TIMEOUT 60 DEPENDS uniq_nested
REQUIRED_FILES uniq_nested.db) TIMEOUT 60
add_test(NAME uniq_nested_chk_copy COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv uniq_nested.db-copy) REQUIRED_FILES uniq_nested.db)
set_tests_properties(uniq_nested_chk_copy PROPERTIES add_test(NAME uniq_nested_chk_copy COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv uniq_nested.db-copy)
DEPENDS uniq_nested set_tests_properties(uniq_nested_chk_copy PROPERTIES
TIMEOUT 60 DEPENDS uniq_nested
REQUIRED_FILES uniq_nested.db-copy) TIMEOUT 60
REQUIRED_FILES uniq_nested.db-copy)
endif()
endif() endif()