Skip to content

Commit

Permalink
Enable Basic shard tests for HomeStore.
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd committed Oct 18, 2023
1 parent f16ed3f commit 53ff385
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/lib/homestore_backend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ target_link_libraries(shard_homestore_test
homeobject_homestore
${COMMON_TEST_DEPS}
)
#add_test(NAME ShardHomestoreTest COMMAND shard_homestore_test -csv error)
add_test(NAME ShardHomestoreTest COMMAND shard_homestore_test -csv error)

add_executable (blob_homestore_test)
target_sources(blob_homestore_test PRIVATE $<TARGET_OBJECTS:blob_test>)
Expand Down
19 changes: 10 additions & 9 deletions src/lib/homestore_backend/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@ cmake_minimum_required(VERSION 3.13)

include_directories (BEFORE .)

add_executable(test_home_object)
target_sources(test_home_object PRIVATE test_home_object.cpp)
target_link_libraries(test_home_object
add_executable(test_hs_homeobject)
target_sources(test_hs_homeobject PRIVATE test_hs_homeobject.cpp)
target_link_libraries(test_hs_homeobject
homeobject_homestore
${COMMON_TEST_DEPS}
)
add_test(NAME HomeObject COMMAND ${CMAKE_BINARY_DIR}/bin/test_home_object)
set_property(TEST HomeObject PROPERTY RUN_SERIAL 1)
add_test(NAME HSHomeObject COMMAND ${CMAKE_BINARY_DIR}/bin/test_hs_homeobject)
set_property(TEST HSHomeObject PROPERTY RUN_SERIAL 1)

add_executable (test_shard_manager)
target_sources(test_shard_manager PRIVATE test_shard_manager.cpp)
target_link_libraries(test_shard_manager
add_executable (hs_shard_tests)
target_sources(hs_shard_tests PRIVATE hs_shard_tests.cpp)
target_link_libraries(hs_shard_tests
homeobject_homestore
${COMMON_TEST_DEPS}
)
add_test(NAME ShardManagerTest COMMAND ${CMAKE_BINARY_DIR}/bin/test_shard_manager)
add_test(NAME HSShardTests COMMAND ${CMAKE_BINARY_DIR}/bin/hs_shard_tests)
set_property(TEST HSShardTests PROPERTY RUN_SERIAL 1)

add_executable (test_heap_chunk_selector)
target_sources(test_heap_chunk_selector PRIVATE test_heap_chunk_selector.cpp ../heap_chunk_selector.cpp)
Expand Down

0 comments on commit 53ff385

Please sign in to comment.