75950664a7
Summary: This diff splits single node and distributed storage from each other. Currently all of the storage code is copied into two directories (one single node, one distributed). The logic used in the storage implementation isn't touched, it will be refactored in following diffs. To clean the working directory after this diff you should execute: ``` rm database/state_delta.capnp rm database/state_delta.hpp rm storage/concurrent_id_mapper_rpc_messages.capnp rm storage/concurrent_id_mapper_rpc_messages.hpp ``` Reviewers: teon.banek, buda, msantl Reviewed By: teon.banek, msantl Subscribers: teon.banek, pullbot Differential Revision: https://phabricator.memgraph.io/D1625
82 lines
3.3 KiB
CMake
82 lines
3.3 KiB
CMake
set(test_prefix memgraph__concurrent__)
|
|
|
|
add_custom_target(memgraph__concurrent)
|
|
|
|
function(add_concurrent_test test_cpp)
|
|
# get exec name (remove extension from the abs path)
|
|
get_filename_component(exec_name ${test_cpp} NAME_WE)
|
|
set(target_name ${test_prefix}${exec_name})
|
|
add_executable(${target_name} ${test_cpp})
|
|
# OUTPUT_NAME sets the real name of a target when it is built and can be
|
|
# used to help create two targets of the same name even though CMake
|
|
# requires unique logical target names
|
|
set_target_properties(${target_name} PROPERTIES OUTPUT_NAME ${exec_name})
|
|
target_link_libraries(${target_name} gtest gmock gtest_main)
|
|
# register test
|
|
add_test(${target_name} ${exec_name})
|
|
add_dependencies(memgraph__concurrent ${target_name})
|
|
endfunction(add_concurrent_test)
|
|
|
|
add_concurrent_test(dynamic_bitset_clear_n.cpp)
|
|
target_link_libraries(${test_prefix}dynamic_bitset_clear_n mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(dynamic_bitset.cpp)
|
|
target_link_libraries(${test_prefix}dynamic_bitset mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(dynamic_bitset_set.cpp)
|
|
target_link_libraries(${test_prefix}dynamic_bitset_set mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(dynamic_bitset_set_n.cpp)
|
|
target_link_libraries(${test_prefix}dynamic_bitset_set_n mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(futex.cpp)
|
|
target_link_libraries(${test_prefix}futex mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(network_read_hang.cpp)
|
|
target_link_libraries(${test_prefix}network_read_hang mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(network_server.cpp)
|
|
target_link_libraries(${test_prefix}network_server mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(network_session_leak.cpp)
|
|
target_link_libraries(${test_prefix}network_session_leak mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(push_queue.cpp)
|
|
target_link_libraries(${test_prefix}push_queue mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(sl_hang.cpp)
|
|
target_link_libraries(${test_prefix}sl_hang mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(sl_insert_competetive.cpp)
|
|
target_link_libraries(${test_prefix}sl_insert_competetive mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(sl_insert.cpp)
|
|
target_link_libraries(${test_prefix}sl_insert mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(sl_map.cpp)
|
|
target_link_libraries(${test_prefix}sl_map mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(sl_memory.cpp)
|
|
target_link_libraries(${test_prefix}sl_memory mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(sl_memory_leak.cpp)
|
|
target_link_libraries(${test_prefix}sl_memory_leak mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(sl_remove_competetive.cpp)
|
|
target_link_libraries(${test_prefix}sl_remove_competetive mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(sl_remove_disjoint.cpp)
|
|
target_link_libraries(${test_prefix}sl_remove_disjoint mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(sl_remove_joint.cpp)
|
|
target_link_libraries(${test_prefix}sl_remove_joint mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(sl_set.cpp)
|
|
target_link_libraries(${test_prefix}sl_set mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(sl_simulation.cpp)
|
|
target_link_libraries(${test_prefix}sl_simulation mg-single-node kvstore_dummy_lib)
|
|
|
|
add_concurrent_test(spinlock.cpp)
|
|
target_link_libraries(${test_prefix}spinlock mg-single-node kvstore_dummy_lib)
|