Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lift tests so they can be reused by homestore implementation once wor… #72

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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