576 lines
12 KiB
CMake
576 lines
12 KiB
CMake
add_executable(syncTest "")
|
|
add_executable(syncEnvTest "")
|
|
add_executable(syncPingTimerTest "")
|
|
add_executable(syncIOTickQTest "")
|
|
add_executable(syncIOTickPingTest "")
|
|
add_executable(syncIOSendMsgTest "")
|
|
add_executable(syncIOClientTest "")
|
|
add_executable(syncIOServerTest "")
|
|
add_executable(syncRaftStoreTest "")
|
|
add_executable(syncEnqTest "")
|
|
add_executable(syncIndexTest "")
|
|
add_executable(syncInitTest "")
|
|
add_executable(syncUtilTest "")
|
|
add_executable(syncVotesGrantedTest "")
|
|
add_executable(syncVotesRespondTest "")
|
|
add_executable(syncIndexMgrTest "")
|
|
add_executable(syncLogStoreTest "")
|
|
add_executable(syncEntryTest "")
|
|
add_executable(syncRequestVoteTest "")
|
|
add_executable(syncRequestVoteReplyTest "")
|
|
add_executable(syncAppendEntriesTest "")
|
|
add_executable(syncAppendEntriesReplyTest "")
|
|
add_executable(syncClientRequestTest "")
|
|
add_executable(syncTimeoutTest "")
|
|
add_executable(syncPingTest "")
|
|
add_executable(syncPingReplyTest "")
|
|
add_executable(syncRpcMsgTest "")
|
|
add_executable(syncPingTimerTest2 "")
|
|
add_executable(syncPingSelfTest "")
|
|
add_executable(syncElectTest "")
|
|
add_executable(syncElectTest2 "")
|
|
add_executable(syncElectTest3 "")
|
|
add_executable(syncEncodeTest "")
|
|
add_executable(syncWriteTest "")
|
|
add_executable(syncReplicateTest "")
|
|
add_executable(syncReplicateTest2 "")
|
|
add_executable(syncReplicateTest3 "")
|
|
add_executable(syncReplicateLoadTest "")
|
|
add_executable(syncRefTest "")
|
|
add_executable(syncLogStoreCheck "")
|
|
|
|
|
|
target_sources(syncTest
|
|
PRIVATE
|
|
"syncTest.cpp"
|
|
)
|
|
target_sources(syncEnvTest
|
|
PRIVATE
|
|
"syncEnvTest.cpp"
|
|
)
|
|
target_sources(syncPingTimerTest
|
|
PRIVATE
|
|
"syncPingTimerTest.cpp"
|
|
)
|
|
target_sources(syncIOTickQTest
|
|
PRIVATE
|
|
"syncIOTickQTest.cpp"
|
|
)
|
|
target_sources(syncIOTickPingTest
|
|
PRIVATE
|
|
"syncIOTickPingTest.cpp"
|
|
)
|
|
target_sources(syncIOSendMsgTest
|
|
PRIVATE
|
|
"syncIOSendMsgTest.cpp"
|
|
)
|
|
target_sources(syncIOClientTest
|
|
PRIVATE
|
|
"syncIOClientTest.cpp"
|
|
)
|
|
target_sources(syncIOServerTest
|
|
PRIVATE
|
|
"syncIOServerTest.cpp"
|
|
)
|
|
target_sources(syncRaftStoreTest
|
|
PRIVATE
|
|
"syncRaftStoreTest.cpp"
|
|
)
|
|
target_sources(syncEnqTest
|
|
PRIVATE
|
|
"syncEnqTest.cpp"
|
|
)
|
|
target_sources(syncIndexTest
|
|
PRIVATE
|
|
"syncIndexTest.cpp"
|
|
)
|
|
target_sources(syncInitTest
|
|
PRIVATE
|
|
"syncInitTest.cpp"
|
|
)
|
|
target_sources(syncUtilTest
|
|
PRIVATE
|
|
"syncUtilTest.cpp"
|
|
)
|
|
target_sources(syncVotesGrantedTest
|
|
PRIVATE
|
|
"syncVotesGrantedTest.cpp"
|
|
)
|
|
target_sources(syncVotesRespondTest
|
|
PRIVATE
|
|
"syncVotesRespondTest.cpp"
|
|
)
|
|
target_sources(syncIndexMgrTest
|
|
PRIVATE
|
|
"syncIndexMgrTest.cpp"
|
|
)
|
|
target_sources(syncLogStoreTest
|
|
PRIVATE
|
|
"syncLogStoreTest.cpp"
|
|
)
|
|
target_sources(syncEntryTest
|
|
PRIVATE
|
|
"syncEntryTest.cpp"
|
|
)
|
|
target_sources(syncRequestVoteTest
|
|
PRIVATE
|
|
"syncRequestVoteTest.cpp"
|
|
)
|
|
target_sources(syncRequestVoteReplyTest
|
|
PRIVATE
|
|
"syncRequestVoteReplyTest.cpp"
|
|
)
|
|
target_sources(syncAppendEntriesTest
|
|
PRIVATE
|
|
"syncAppendEntriesTest.cpp"
|
|
)
|
|
target_sources(syncAppendEntriesReplyTest
|
|
PRIVATE
|
|
"syncAppendEntriesReplyTest.cpp"
|
|
)
|
|
target_sources(syncClientRequestTest
|
|
PRIVATE
|
|
"syncClientRequestTest.cpp"
|
|
)
|
|
target_sources(syncTimeoutTest
|
|
PRIVATE
|
|
"syncTimeoutTest.cpp"
|
|
)
|
|
target_sources(syncPingTest
|
|
PRIVATE
|
|
"syncPingTest.cpp"
|
|
)
|
|
target_sources(syncPingReplyTest
|
|
PRIVATE
|
|
"syncPingReplyTest.cpp"
|
|
)
|
|
target_sources(syncRpcMsgTest
|
|
PRIVATE
|
|
"syncRpcMsgTest.cpp"
|
|
)
|
|
target_sources(syncPingTimerTest2
|
|
PRIVATE
|
|
"syncPingTimerTest2.cpp"
|
|
)
|
|
target_sources(syncPingSelfTest
|
|
PRIVATE
|
|
"syncPingSelfTest.cpp"
|
|
)
|
|
target_sources(syncElectTest
|
|
PRIVATE
|
|
"syncElectTest.cpp"
|
|
)
|
|
target_sources(syncElectTest2
|
|
PRIVATE
|
|
"syncElectTest2.cpp"
|
|
)
|
|
target_sources(syncElectTest3
|
|
PRIVATE
|
|
"syncElectTest3.cpp"
|
|
)
|
|
target_sources(syncEncodeTest
|
|
PRIVATE
|
|
"syncEncodeTest.cpp"
|
|
)
|
|
target_sources(syncWriteTest
|
|
PRIVATE
|
|
"syncWriteTest.cpp"
|
|
)
|
|
target_sources(syncReplicateTest
|
|
PRIVATE
|
|
"syncReplicateTest.cpp"
|
|
)
|
|
target_sources(syncReplicateTest2
|
|
PRIVATE
|
|
"syncReplicateTest2.cpp"
|
|
)
|
|
target_sources(syncReplicateTest3
|
|
PRIVATE
|
|
"syncReplicateTest3.cpp"
|
|
)
|
|
target_sources(syncReplicateLoadTest
|
|
PRIVATE
|
|
"syncReplicateLoadTest.cpp"
|
|
)
|
|
target_sources(syncRefTest
|
|
PRIVATE
|
|
"syncRefTest.cpp"
|
|
)
|
|
target_sources(syncLogStoreCheck
|
|
PRIVATE
|
|
"syncLogStoreCheck.cpp"
|
|
)
|
|
|
|
|
|
target_include_directories(syncTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncEnvTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncPingTimerTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncIOTickQTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncIOTickPingTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncIOSendMsgTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncIOClientTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncIOServerTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncRaftStoreTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncEnqTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncIndexTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncInitTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncUtilTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncVotesGrantedTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncVotesRespondTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncIndexMgrTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncLogStoreTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncEntryTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncRequestVoteTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncRequestVoteReplyTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncAppendEntriesTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncAppendEntriesReplyTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncClientRequestTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncTimeoutTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncPingTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncPingReplyTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncRpcMsgTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncPingTimerTest2
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncPingSelfTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncElectTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncElectTest2
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncElectTest3
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncEncodeTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncWriteTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncReplicateTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncReplicateTest2
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncReplicateTest3
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncReplicateLoadTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncRefTest
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
target_include_directories(syncLogStoreCheck
|
|
PUBLIC
|
|
"${CMAKE_SOURCE_DIR}/include/libs/sync"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../inc"
|
|
)
|
|
|
|
|
|
target_link_libraries(syncTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncEnvTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncPingTimerTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncIOTickQTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncIOTickPingTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncIOSendMsgTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncIOClientTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncIOServerTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncRaftStoreTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncEnqTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncIndexTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncInitTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncUtilTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncVotesGrantedTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncVotesRespondTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncIndexMgrTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncLogStoreTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncEntryTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncRequestVoteTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncRequestVoteReplyTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncAppendEntriesTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncAppendEntriesReplyTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncClientRequestTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncTimeoutTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncPingTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncPingReplyTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncRpcMsgTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncPingTimerTest2
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncPingSelfTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncElectTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncElectTest2
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncElectTest3
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncEncodeTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncWriteTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncReplicateTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncReplicateTest2
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncReplicateTest3
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncReplicateLoadTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncRefTest
|
|
sync
|
|
gtest_main
|
|
)
|
|
target_link_libraries(syncLogStoreCheck
|
|
sync
|
|
gtest_main
|
|
)
|
|
|
|
|
|
enable_testing()
|
|
add_test(
|
|
NAME sync_test
|
|
COMMAND syncTest
|
|
)
|
|
|
|
|