Skip to content

Commit

Permalink
Lift tests so they can be reused by homestore implementation once wor…
Browse files Browse the repository at this point in the history
…king.
  • Loading branch information
szmyd committed Sep 26, 2023
1 parent c262887 commit 1c84f75
Show file tree
Hide file tree
Showing 12 changed files with 378 additions and 448 deletions.
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ ignore:
- "**/*_generated.h"
- "src/mocks/**"
- "src/lib/homestore/tests/**"
- "src/lib/memory/tests/**"
- "src/lib/tests/**"
3 changes: 3 additions & 0 deletions src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ target_link_libraries(${PROJECT_NAME}_core
${COMMON_DEPS}
)

if(BUILD_TESTING)
add_subdirectory(tests)
endif()

add_subdirectory(homestore)
add_subdirectory(memory)
24 changes: 23 additions & 1 deletion src/lib/memory/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,27 @@ target_link_libraries("${PROJECT_NAME}_memory"
)

if(BUILD_TESTING)
add_subdirectory(tests)
add_executable (pg_memory_test)
target_sources(pg_memory_test PRIVATE $<TARGET_OBJECTS:pg_test>)
target_link_libraries(pg_memory_test
homeobject_memory
${COMMON_TEST_DEPS}
)
add_test(NAME PGMemoryTest COMMAND pg_memory_test -csv error)

add_executable (shard_memory_test)
target_sources(shard_memory_test PRIVATE $<TARGET_OBJECTS:shard_test>)
target_link_libraries(shard_memory_test
homeobject_memory
${COMMON_TEST_DEPS}
)
add_test(NAME ShardMemoryTest COMMAND shard_memory_test -csv error)

add_executable (blob_memory_test)
target_sources(blob_memory_test PRIVATE $<TARGET_OBJECTS:blob_test>)
target_link_libraries(blob_memory_test
homeobject_memory
${COMMON_TEST_DEPS}
)
add_test(NAME BlobMemoryTest COMMAND blob_memory_test -csv error)
endif()
157 changes: 0 additions & 157 deletions src/lib/memory/tests/BlobManagerTest.cpp

This file was deleted.

29 changes: 0 additions & 29 deletions src/lib/memory/tests/CMakeLists.txt

This file was deleted.

120 changes: 0 additions & 120 deletions src/lib/memory/tests/PGManagerTest.cpp

This file was deleted.

Loading

0 comments on commit 1c84f75

Please sign in to comment.