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(syncEncodeTest "") add_executable(syncWriteTest "") add_executable(syncReplicateTest "") add_executable(syncRefTest "") add_executable(syncLogStoreCheck "") add_executable(syncRaftCfgTest "") add_executable(syncRespMgrTest "") add_executable(syncSnapshotTest "") add_executable(syncApplyMsgTest "") add_executable(syncConfigChangeTest "") add_executable(syncConfigChangeSnapshotTest "") add_executable(syncSnapshotSendTest "") add_executable(syncSnapshotRspTest "") add_executable(syncSnapshotSenderTest "") add_executable(syncSnapshotReceiverTest "") add_executable(syncTestTool "") add_executable(syncRaftLogTest "") add_executable(syncRaftLogTest2 "") add_executable(syncRaftLogTest3 "") 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(syncEncodeTest PRIVATE "syncEncodeTest.cpp" ) target_sources(syncWriteTest PRIVATE "syncWriteTest.cpp" ) target_sources(syncReplicateTest PRIVATE "syncReplicateTest.cpp" ) target_sources(syncRefTest PRIVATE "syncRefTest.cpp" ) target_sources(syncLogStoreCheck PRIVATE "syncLogStoreCheck.cpp" ) target_sources(syncRaftCfgTest PRIVATE "syncRaftCfgTest.cpp" ) target_sources(syncRespMgrTest PRIVATE "syncRespMgrTest.cpp" ) target_sources(syncSnapshotTest PRIVATE "syncSnapshotTest.cpp" ) target_sources(syncApplyMsgTest PRIVATE "syncApplyMsgTest.cpp" ) target_sources(syncConfigChangeTest PRIVATE "syncConfigChangeTest.cpp" ) target_sources(syncConfigChangeSnapshotTest PRIVATE "syncConfigChangeSnapshotTest.cpp" ) target_sources(syncSnapshotSendTest PRIVATE "syncSnapshotSendTest.cpp" ) target_sources(syncSnapshotRspTest PRIVATE "syncSnapshotRspTest.cpp" ) target_sources(syncSnapshotSenderTest PRIVATE "syncSnapshotSenderTest.cpp" ) target_sources(syncSnapshotReceiverTest PRIVATE "syncSnapshotReceiverTest.cpp" ) target_sources(syncTestTool PRIVATE "syncTestTool.cpp" ) target_sources(syncRaftLogTest PRIVATE "syncRaftLogTest.cpp" ) target_sources(syncRaftLogTest2 PRIVATE "syncRaftLogTest2.cpp" ) target_sources(syncRaftLogTest3 PRIVATE "syncRaftLogTest3.cpp" ) target_include_directories(syncTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncEnvTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncPingTimerTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncIOTickQTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncIOTickPingTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncIOSendMsgTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncIOClientTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncIOServerTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncRaftStoreTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncEnqTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncIndexTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncInitTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncUtilTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncVotesGrantedTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncVotesRespondTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncIndexMgrTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncLogStoreTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncEntryTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncRequestVoteTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncRequestVoteReplyTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncAppendEntriesTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncAppendEntriesReplyTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncClientRequestTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncTimeoutTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncPingTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncPingReplyTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncRpcMsgTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncPingTimerTest2 PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncPingSelfTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncElectTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncEncodeTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncWriteTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncReplicateTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncRefTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncLogStoreCheck PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncRaftCfgTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncRespMgrTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncSnapshotTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncApplyMsgTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncConfigChangeTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncConfigChangeSnapshotTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncSnapshotSendTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncSnapshotRspTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncSnapshotSenderTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncSnapshotReceiverTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncTestTool PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncRaftLogTest PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncRaftLogTest2 PUBLIC "${TD_SOURCE_DIR}/include/libs/sync" "${CMAKE_CURRENT_SOURCE_DIR}/../inc" ) target_include_directories(syncRaftLogTest3 PUBLIC "${TD_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(syncEncodeTest sync gtest_main ) target_link_libraries(syncWriteTest sync gtest_main ) target_link_libraries(syncReplicateTest sync gtest_main ) target_link_libraries(syncRefTest sync gtest_main ) target_link_libraries(syncLogStoreCheck sync gtest_main ) target_link_libraries(syncRaftCfgTest sync gtest_main ) target_link_libraries(syncRespMgrTest sync gtest_main ) target_link_libraries(syncSnapshotTest sync gtest_main ) target_link_libraries(syncApplyMsgTest sync gtest_main ) target_link_libraries(syncConfigChangeTest sync gtest_main ) target_link_libraries(syncConfigChangeSnapshotTest sync gtest_main ) target_link_libraries(syncSnapshotSendTest sync gtest_main ) target_link_libraries(syncSnapshotRspTest sync gtest_main ) target_link_libraries(syncSnapshotSenderTest sync gtest_main ) target_link_libraries(syncSnapshotReceiverTest sync gtest_main ) target_link_libraries(syncTestTool sync gtest_main ) target_link_libraries(syncRaftLogTest sync gtest_main ) target_link_libraries(syncRaftLogTest2 sync gtest_main ) target_link_libraries(syncRaftLogTest3 sync gtest_main ) enable_testing() add_test( NAME sync_test COMMAND syncTest )