mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 05:58:21 +08:00
cmake-test: avoid run tests in case cross-compilation without emulator.
This commit is contained in:
parent
03f9ed8820
commit
abc2341cb4
@ -67,53 +67,61 @@ endif()
|
|||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
add_test(NAME smoke COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test
|
if (CMAKE_CROSSCOMPILING AND NOT CMAKE_CROSSCOMPILING_EMULATOR)
|
||||||
--progress --console=no --pathname=smoke.db --dont-cleanup-after basic)
|
message(WARNING "No emulator to run cross-compiled tests")
|
||||||
set_tests_properties(smoke PROPERTIES
|
add_test(NAME fake_since_no_crosscompiling_emulator COMMAND ${CMAKE_COMMAND} -E
|
||||||
TIMEOUT 600
|
echo "No emulator to run cross-compiled tests")
|
||||||
RUN_SERIAL OFF)
|
else()
|
||||||
add_test(NAME smoke_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv smoke.db)
|
|
||||||
set_tests_properties(smoke_chk PROPERTIES
|
|
||||||
DEPENDS smoke
|
|
||||||
TIMEOUT 60
|
|
||||||
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
|
|
||||||
REQUIRED_FILES smoke.db-copy)
|
|
||||||
|
|
||||||
add_test(NAME dupsort_writemap COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test
|
add_test(NAME smoke COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test
|
||||||
--loglevel=notice
|
--progress --console=no --pathname=smoke.db --dont-cleanup-after basic)
|
||||||
--table=+data.integer --keygen.split=29 --datalen.min=min --datalen.max=max --progress --console=no
|
set_tests_properties(smoke PROPERTIES
|
||||||
--repeat=2 --pathname=dupsort_writemap.db --dont-cleanup-after basic)
|
TIMEOUT 600
|
||||||
set_tests_properties(dupsort_writemap PROPERTIES
|
RUN_SERIAL OFF)
|
||||||
TIMEOUT 600
|
add_test(NAME smoke_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv smoke.db)
|
||||||
RUN_SERIAL OFF)
|
set_tests_properties(smoke_chk PROPERTIES
|
||||||
add_test(NAME dupsort_writemap_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv dupsort_writemap.db)
|
DEPENDS smoke
|
||||||
set_tests_properties(dupsort_writemap_chk PROPERTIES
|
TIMEOUT 60
|
||||||
DEPENDS dupsort_writemap
|
REQUIRED_FILES smoke.db)
|
||||||
TIMEOUT 60
|
add_test(NAME smoke_chk_copy COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv smoke.db-copy)
|
||||||
REQUIRED_FILES dupsort_writemap.db)
|
set_tests_properties(smoke_chk_copy PROPERTIES
|
||||||
add_test(NAME dupsort_writemap_chk_copy COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv dupsort_writemap.db-copy)
|
DEPENDS smoke
|
||||||
set_tests_properties(dupsort_writemap_chk_copy PROPERTIES
|
TIMEOUT 60
|
||||||
DEPENDS dupsort_writemap
|
REQUIRED_FILES smoke.db-copy)
|
||||||
TIMEOUT 60
|
|
||||||
REQUIRED_FILES dupsort_writemap.db-copy)
|
|
||||||
|
|
||||||
add_test(NAME uniq_nested COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test
|
add_test(NAME dupsort_writemap COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test
|
||||||
--loglevel=notice
|
--loglevel=notice
|
||||||
--mode=-writemap,-nosync-safe,-lifo --progress --console=no --repeat=2 --pathname=uniq_nested.db --dont-cleanup-after basic)
|
--table=+data.integer --keygen.split=29 --datalen.min=min --datalen.max=max --progress --console=no
|
||||||
set_tests_properties(uniq_nested PROPERTIES
|
--repeat=2 --pathname=dupsort_writemap.db --dont-cleanup-after basic)
|
||||||
TIMEOUT 1800
|
set_tests_properties(dupsort_writemap PROPERTIES
|
||||||
RUN_SERIAL OFF)
|
TIMEOUT 600
|
||||||
add_test(NAME uniq_nested_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv uniq_nested.db)
|
RUN_SERIAL OFF)
|
||||||
set_tests_properties(uniq_nested_chk PROPERTIES
|
add_test(NAME dupsort_writemap_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv dupsort_writemap.db)
|
||||||
DEPENDS uniq_nested
|
set_tests_properties(dupsort_writemap_chk PROPERTIES
|
||||||
TIMEOUT 60
|
DEPENDS dupsort_writemap
|
||||||
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 dupsort_writemap.db)
|
||||||
set_tests_properties(uniq_nested_chk_copy PROPERTIES
|
add_test(NAME dupsort_writemap_chk_copy COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv dupsort_writemap.db-copy)
|
||||||
DEPENDS uniq_nested
|
set_tests_properties(dupsort_writemap_chk_copy PROPERTIES
|
||||||
TIMEOUT 60
|
DEPENDS dupsort_writemap
|
||||||
REQUIRED_FILES uniq_nested.db-copy)
|
TIMEOUT 60
|
||||||
|
REQUIRED_FILES dupsort_writemap.db-copy)
|
||||||
|
|
||||||
|
add_test(NAME uniq_nested COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test
|
||||||
|
--loglevel=notice
|
||||||
|
--mode=-writemap,-nosync-safe,-lifo --progress --console=no --repeat=2 --pathname=uniq_nested.db --dont-cleanup-after basic)
|
||||||
|
set_tests_properties(uniq_nested PROPERTIES
|
||||||
|
TIMEOUT 1800
|
||||||
|
RUN_SERIAL OFF)
|
||||||
|
add_test(NAME uniq_nested_chk COMMAND ${MDBX_OUTPUT_DIR}/mdbx_chk -nvv uniq_nested.db)
|
||||||
|
set_tests_properties(uniq_nested_chk PROPERTIES
|
||||||
|
DEPENDS uniq_nested
|
||||||
|
TIMEOUT 60
|
||||||
|
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
|
||||||
|
REQUIRED_FILES uniq_nested.db-copy)
|
||||||
|
|
||||||
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user