mirror of
https://github.com/isar/libmdbx.git
synced 2025-04-27 07:02:26 +08:00
cmake-test: avoid run tests in case cross-compilation without emulator.
This commit is contained in:
parent
03f9ed8820
commit
abc2341cb4
@ -67,6 +67,12 @@ endif()
|
|||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
if (CMAKE_CROSSCOMPILING AND NOT CMAKE_CROSSCOMPILING_EMULATOR)
|
||||||
|
message(WARNING "No emulator to run cross-compiled tests")
|
||||||
|
add_test(NAME fake_since_no_crosscompiling_emulator COMMAND ${CMAKE_COMMAND} -E
|
||||||
|
echo "No emulator to run cross-compiled tests")
|
||||||
|
else()
|
||||||
|
|
||||||
add_test(NAME smoke COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test
|
add_test(NAME smoke COMMAND ${MDBX_OUTPUT_DIR}/mdbx_test
|
||||||
--progress --console=no --pathname=smoke.db --dont-cleanup-after basic)
|
--progress --console=no --pathname=smoke.db --dont-cleanup-after basic)
|
||||||
set_tests_properties(smoke PROPERTIES
|
set_tests_properties(smoke PROPERTIES
|
||||||
@ -117,3 +123,5 @@ set_tests_properties(uniq_nested_chk_copy PROPERTIES
|
|||||||
DEPENDS uniq_nested
|
DEPENDS uniq_nested
|
||||||
TIMEOUT 60
|
TIMEOUT 60
|
||||||
REQUIRED_FILES uniq_nested.db-copy)
|
REQUIRED_FILES uniq_nested.db-copy)
|
||||||
|
|
||||||
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user