CMakeLists.txt 12.1 KB
Newer Older
M
Minghao Li 已提交
1 2
add_executable(syncTest "")
add_executable(syncEnvTest "")
M
Minghao Li 已提交
3
add_executable(syncPingTimerTest "")
M
sync io  
Minghao Li 已提交
4 5
add_executable(syncIOTickQTest "")
add_executable(syncIOTickPingTest "")
M
sync io  
Minghao Li 已提交
6
add_executable(syncIOSendMsgTest "")
M
Minghao Li 已提交
7 8
add_executable(syncIOClientTest "")
add_executable(syncIOServerTest "")
M
Minghao Li 已提交
9
add_executable(syncRaftStoreTest "")
M
Minghao Li 已提交
10
add_executable(syncEnqTest "")
M
Minghao Li 已提交
11
add_executable(syncIndexTest "")
M
Minghao Li 已提交
12
add_executable(syncInitTest "")
M
Minghao Li 已提交
13
add_executable(syncUtilTest "")
M
Minghao Li 已提交
14
add_executable(syncVotesGrantedTest "")
M
Minghao Li 已提交
15
add_executable(syncVotesRespondTest "")
M
Minghao Li 已提交
16
add_executable(syncIndexMgrTest "")
M
Minghao Li 已提交
17
add_executable(syncLogStoreTest "")
M
Minghao Li 已提交
18
add_executable(syncEntryTest "")
M
Minghao Li 已提交
19 20 21 22
add_executable(syncRequestVoteTest "")
add_executable(syncRequestVoteReplyTest "")
add_executable(syncAppendEntriesTest "")
add_executable(syncAppendEntriesReplyTest "")
M
Minghao Li 已提交
23 24
add_executable(syncClientRequestTest "")
add_executable(syncTimeoutTest "")
M
Minghao Li 已提交
25 26
add_executable(syncPingTest "")
add_executable(syncPingReplyTest "")
M
Minghao Li 已提交
27
add_executable(syncRpcMsgTest "")
M
Minghao Li 已提交
28 29
add_executable(syncPingTimerTest2 "")
add_executable(syncPingSelfTest "")
M
Minghao Li 已提交
30
add_executable(syncElectTest "")
M
Minghao Li 已提交
31
add_executable(syncEncodeTest "")
M
Minghao Li 已提交
32
add_executable(syncWriteTest "")
M
Minghao Li 已提交
33
add_executable(syncReplicateTest "")
M
Minghao Li 已提交
34
add_executable(syncRefTest "")
M
Minghao Li 已提交
35
add_executable(syncLogStoreCheck "")
M
Minghao Li 已提交
36 37
add_executable(syncRaftCfgTest "")
add_executable(syncRespMgrTest "")
M
Minghao Li 已提交
38
add_executable(syncSnapshotTest "")
M
Minghao Li 已提交
39
add_executable(syncApplyMsgTest "")
M
Minghao Li 已提交
40 41 42 43 44 45 46 47 48 49


target_sources(syncTest
    PRIVATE
    "syncTest.cpp"
)
target_sources(syncEnvTest
    PRIVATE
    "syncEnvTest.cpp"
)
M
Minghao Li 已提交
50
target_sources(syncPingTimerTest
M
Minghao Li 已提交
51
    PRIVATE
M
Minghao Li 已提交
52
    "syncPingTimerTest.cpp"
M
Minghao Li 已提交
53
)
M
sync io  
Minghao Li 已提交
54
target_sources(syncIOTickQTest
M
sync io  
Minghao Li 已提交
55
    PRIVATE
M
sync io  
Minghao Li 已提交
56
    "syncIOTickQTest.cpp"
M
sync io  
Minghao Li 已提交
57
)
M
sync io  
Minghao Li 已提交
58
target_sources(syncIOTickPingTest
M
sync io  
Minghao Li 已提交
59
    PRIVATE
M
sync io  
Minghao Li 已提交
60
    "syncIOTickPingTest.cpp"
M
sync io  
Minghao Li 已提交
61
)
M
sync io  
Minghao Li 已提交
62 63 64 65
target_sources(syncIOSendMsgTest
    PRIVATE
    "syncIOSendMsgTest.cpp"
)
M
Minghao Li 已提交
66
target_sources(syncIOClientTest
M
sync io  
Minghao Li 已提交
67
    PRIVATE
M
Minghao Li 已提交
68
    "syncIOClientTest.cpp"
M
sync io  
Minghao Li 已提交
69
)
M
Minghao Li 已提交
70
target_sources(syncIOServerTest
M
sync io  
Minghao Li 已提交
71
    PRIVATE
M
Minghao Li 已提交
72
    "syncIOServerTest.cpp"
M
sync io  
Minghao Li 已提交
73
)
M
Minghao Li 已提交
74 75 76 77
target_sources(syncRaftStoreTest
    PRIVATE
    "syncRaftStoreTest.cpp"
)
M
Minghao Li 已提交
78 79 80 81
target_sources(syncEnqTest
    PRIVATE
    "syncEnqTest.cpp"
)
M
Minghao Li 已提交
82 83 84 85
target_sources(syncIndexTest
    PRIVATE
    "syncIndexTest.cpp"
)
M
Minghao Li 已提交
86 87 88 89
target_sources(syncInitTest
    PRIVATE
    "syncInitTest.cpp"
)
M
Minghao Li 已提交
90 91 92 93
target_sources(syncUtilTest
    PRIVATE
    "syncUtilTest.cpp"
)
M
Minghao Li 已提交
94 95 96 97
target_sources(syncVotesGrantedTest
    PRIVATE
    "syncVotesGrantedTest.cpp"
)
M
Minghao Li 已提交
98 99 100 101
target_sources(syncVotesRespondTest
    PRIVATE
    "syncVotesRespondTest.cpp"
)
M
Minghao Li 已提交
102 103 104 105
target_sources(syncIndexMgrTest
    PRIVATE
    "syncIndexMgrTest.cpp"
)
M
Minghao Li 已提交
106 107 108 109
target_sources(syncLogStoreTest
    PRIVATE
    "syncLogStoreTest.cpp"
)
M
Minghao Li 已提交
110 111 112 113
target_sources(syncEntryTest
    PRIVATE
    "syncEntryTest.cpp"
)
M
Minghao Li 已提交
114
target_sources(syncRequestVoteTest
M
Minghao Li 已提交
115
    PRIVATE
M
Minghao Li 已提交
116
    "syncRequestVoteTest.cpp"
M
Minghao Li 已提交
117
)
M
Minghao Li 已提交
118
target_sources(syncRequestVoteReplyTest
M
Minghao Li 已提交
119
    PRIVATE
M
Minghao Li 已提交
120 121 122 123 124 125 126 127 128
    "syncRequestVoteReplyTest.cpp"
)
target_sources(syncAppendEntriesTest
    PRIVATE
    "syncAppendEntriesTest.cpp"
)
target_sources(syncAppendEntriesReplyTest
    PRIVATE
    "syncAppendEntriesReplyTest.cpp"
M
Minghao Li 已提交
129
)
M
Minghao Li 已提交
130 131 132 133 134 135 136 137
target_sources(syncClientRequestTest
    PRIVATE
    "syncClientRequestTest.cpp"
)
target_sources(syncTimeoutTest
    PRIVATE
    "syncTimeoutTest.cpp"
)
M
Minghao Li 已提交
138 139 140 141 142 143 144 145
target_sources(syncPingTest
    PRIVATE
    "syncPingTest.cpp"
)
target_sources(syncPingReplyTest
    PRIVATE
    "syncPingReplyTest.cpp"
)
M
Minghao Li 已提交
146 147 148 149
target_sources(syncRpcMsgTest
    PRIVATE
    "syncRpcMsgTest.cpp"
)
M
Minghao Li 已提交
150 151 152 153 154 155 156 157
target_sources(syncPingTimerTest2
    PRIVATE
    "syncPingTimerTest2.cpp"
)
target_sources(syncPingSelfTest
    PRIVATE
    "syncPingSelfTest.cpp"
)
M
Minghao Li 已提交
158 159 160 161
target_sources(syncElectTest
    PRIVATE
    "syncElectTest.cpp"
)
M
Minghao Li 已提交
162 163 164 165
target_sources(syncEncodeTest
    PRIVATE
    "syncEncodeTest.cpp"
)
M
Minghao Li 已提交
166 167 168 169
target_sources(syncWriteTest
    PRIVATE
    "syncWriteTest.cpp"
)
M
Minghao Li 已提交
170 171 172 173
target_sources(syncReplicateTest
    PRIVATE
    "syncReplicateTest.cpp"
)
M
Minghao Li 已提交
174 175 176 177
target_sources(syncRefTest
    PRIVATE
    "syncRefTest.cpp"
)
M
Minghao Li 已提交
178 179 180 181
target_sources(syncLogStoreCheck
    PRIVATE
    "syncLogStoreCheck.cpp"
)
M
Minghao Li 已提交
182 183 184 185 186 187 188 189
target_sources(syncRaftCfgTest
    PRIVATE
    "syncRaftCfgTest.cpp"
)
target_sources(syncRespMgrTest
    PRIVATE
    "syncRespMgrTest.cpp"
)
M
Minghao Li 已提交
190 191 192 193
target_sources(syncSnapshotTest
    PRIVATE
    "syncSnapshotTest.cpp"
)
M
Minghao Li 已提交
194 195 196 197
target_sources(syncApplyMsgTest
    PRIVATE
    "syncApplyMsgTest.cpp"
)
M
Minghao Li 已提交
198 199 200 201


target_include_directories(syncTest
    PUBLIC
M
Minghao Li 已提交
202
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
203 204 205 206
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
target_include_directories(syncEnvTest
    PUBLIC
M
Minghao Li 已提交
207
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
208 209
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
210
target_include_directories(syncPingTimerTest
M
Minghao Li 已提交
211
    PUBLIC
M
Minghao Li 已提交
212
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
213 214
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
sync io  
Minghao Li 已提交
215
target_include_directories(syncIOTickQTest
M
sync io  
Minghao Li 已提交
216
    PUBLIC
M
Minghao Li 已提交
217
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
sync io  
Minghao Li 已提交
218 219
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
sync io  
Minghao Li 已提交
220
target_include_directories(syncIOTickPingTest
M
sync io  
Minghao Li 已提交
221
    PUBLIC
M
Minghao Li 已提交
222
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
sync io  
Minghao Li 已提交
223 224
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
sync io  
Minghao Li 已提交
225 226
target_include_directories(syncIOSendMsgTest
    PUBLIC
M
Minghao Li 已提交
227
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
sync io  
Minghao Li 已提交
228 229
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
230
target_include_directories(syncIOClientTest
M
sync io  
Minghao Li 已提交
231
    PUBLIC
M
Minghao Li 已提交
232
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
sync io  
Minghao Li 已提交
233 234
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
235
target_include_directories(syncIOServerTest
M
sync io  
Minghao Li 已提交
236
    PUBLIC
M
Minghao Li 已提交
237
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
sync io  
Minghao Li 已提交
238 239
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
240 241
target_include_directories(syncRaftStoreTest
    PUBLIC
M
Minghao Li 已提交
242
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
243 244
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
245 246
target_include_directories(syncEnqTest
    PUBLIC
M
Minghao Li 已提交
247
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
248 249
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
250 251
target_include_directories(syncIndexTest
    PUBLIC
M
Minghao Li 已提交
252
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
253 254
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
255 256
target_include_directories(syncInitTest
    PUBLIC
M
Minghao Li 已提交
257
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
258 259
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
260 261
target_include_directories(syncUtilTest
    PUBLIC
M
Minghao Li 已提交
262
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
263 264
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
265 266
target_include_directories(syncVotesGrantedTest
    PUBLIC
M
Minghao Li 已提交
267
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
268 269
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
270 271
target_include_directories(syncVotesRespondTest
    PUBLIC
M
Minghao Li 已提交
272
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
273 274
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
275 276
target_include_directories(syncIndexMgrTest
    PUBLIC
M
Minghao Li 已提交
277
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
278 279
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
280 281
target_include_directories(syncLogStoreTest
    PUBLIC
M
Minghao Li 已提交
282
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
283 284
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
285 286
target_include_directories(syncEntryTest
    PUBLIC
M
Minghao Li 已提交
287
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
288 289
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
290 291
target_include_directories(syncRequestVoteTest
    PUBLIC
M
Minghao Li 已提交
292
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
293 294 295 296
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
target_include_directories(syncRequestVoteReplyTest
    PUBLIC
M
Minghao Li 已提交
297
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
298 299 300
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
target_include_directories(syncAppendEntriesTest
M
Minghao Li 已提交
301
    PUBLIC
M
Minghao Li 已提交
302
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
303 304
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
305
target_include_directories(syncAppendEntriesReplyTest
M
Minghao Li 已提交
306
    PUBLIC
M
Minghao Li 已提交
307
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
308 309
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
310 311
target_include_directories(syncClientRequestTest
    PUBLIC
M
Minghao Li 已提交
312
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
313 314 315 316
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
target_include_directories(syncTimeoutTest
    PUBLIC
M
Minghao Li 已提交
317
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
318 319
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
320 321
target_include_directories(syncPingTest
    PUBLIC
M
Minghao Li 已提交
322
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
323 324 325 326
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
target_include_directories(syncPingReplyTest
    PUBLIC
M
Minghao Li 已提交
327
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
328 329
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
330 331
target_include_directories(syncRpcMsgTest
    PUBLIC
M
Minghao Li 已提交
332
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
333 334
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
335 336
target_include_directories(syncPingTimerTest2
    PUBLIC
M
Minghao Li 已提交
337
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
338 339 340 341
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
target_include_directories(syncPingSelfTest
    PUBLIC
M
Minghao Li 已提交
342
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
343 344
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
345 346
target_include_directories(syncElectTest
    PUBLIC
M
Minghao Li 已提交
347
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
348 349
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
350 351
target_include_directories(syncEncodeTest
    PUBLIC
M
Minghao Li 已提交
352
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
353 354
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
355 356
target_include_directories(syncWriteTest
    PUBLIC
M
Minghao Li 已提交
357
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
358 359
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
360 361
target_include_directories(syncReplicateTest
    PUBLIC
M
Minghao Li 已提交
362
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
363 364
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
365 366
target_include_directories(syncRefTest
    PUBLIC
M
Minghao Li 已提交
367
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
368 369
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
370 371
target_include_directories(syncLogStoreCheck
    PUBLIC
M
Minghao Li 已提交
372 373 374 375 376 377 378 379 380 381 382
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
target_include_directories(syncRaftCfgTest
    PUBLIC
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
target_include_directories(syncRespMgrTest
    PUBLIC
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
M
Minghao Li 已提交
383 384
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
385 386 387 388 389
target_include_directories(syncSnapshotTest
    PUBLIC
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
390 391 392 393 394
target_include_directories(syncApplyMsgTest
    PUBLIC
    "${CMAKE_SOURCE_DIR}/include/libs/sync"
    "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
)
M
Minghao Li 已提交
395 396 397 398 399 400 401 402 403 404


target_link_libraries(syncTest
    sync
    gtest_main
)
target_link_libraries(syncEnvTest
    sync
    gtest_main
)
M
Minghao Li 已提交
405
target_link_libraries(syncPingTimerTest
M
Minghao Li 已提交
406 407 408
    sync
    gtest_main
)
M
sync io  
Minghao Li 已提交
409
target_link_libraries(syncIOTickQTest
M
sync io  
Minghao Li 已提交
410 411 412
    sync
    gtest_main
)
M
sync io  
Minghao Li 已提交
413
target_link_libraries(syncIOTickPingTest
M
sync io  
Minghao Li 已提交
414 415 416
    sync
    gtest_main
)
M
sync io  
Minghao Li 已提交
417 418 419 420
target_link_libraries(syncIOSendMsgTest
    sync
    gtest_main
)
M
Minghao Li 已提交
421
target_link_libraries(syncIOClientTest
M
sync io  
Minghao Li 已提交
422 423 424
    sync
    gtest_main
)
M
Minghao Li 已提交
425
target_link_libraries(syncIOServerTest
M
sync io  
Minghao Li 已提交
426 427 428
    sync
    gtest_main
)
M
Minghao Li 已提交
429 430 431 432
target_link_libraries(syncRaftStoreTest
    sync
    gtest_main
)
M
Minghao Li 已提交
433 434 435 436
target_link_libraries(syncEnqTest
    sync
    gtest_main
)
M
Minghao Li 已提交
437 438 439 440
target_link_libraries(syncIndexTest
    sync
    gtest_main
)
M
Minghao Li 已提交
441 442 443 444
target_link_libraries(syncInitTest
    sync
    gtest_main
)
M
Minghao Li 已提交
445 446 447 448
target_link_libraries(syncUtilTest
    sync
    gtest_main
)
M
Minghao Li 已提交
449 450 451 452
target_link_libraries(syncVotesGrantedTest
    sync
    gtest_main
)
M
Minghao Li 已提交
453 454 455 456
target_link_libraries(syncVotesRespondTest
    sync
    gtest_main
)
M
Minghao Li 已提交
457 458 459 460
target_link_libraries(syncIndexMgrTest
    sync
    gtest_main
)
M
Minghao Li 已提交
461 462 463 464
target_link_libraries(syncLogStoreTest
    sync
    gtest_main
)
M
Minghao Li 已提交
465 466 467 468
target_link_libraries(syncEntryTest
    sync
    gtest_main
)
M
Minghao Li 已提交
469 470 471 472 473 474 475 476 477
target_link_libraries(syncRequestVoteTest
    sync
    gtest_main
)
target_link_libraries(syncRequestVoteReplyTest
    sync
    gtest_main
)
target_link_libraries(syncAppendEntriesTest
M
Minghao Li 已提交
478 479 480
    sync
    gtest_main
)
M
Minghao Li 已提交
481
target_link_libraries(syncAppendEntriesReplyTest
M
Minghao Li 已提交
482 483 484
    sync
    gtest_main
)
M
Minghao Li 已提交
485 486 487 488 489 490 491 492
target_link_libraries(syncClientRequestTest
    sync
    gtest_main
)
target_link_libraries(syncTimeoutTest
    sync
    gtest_main
)
M
Minghao Li 已提交
493 494 495 496 497 498 499 500
target_link_libraries(syncPingTest
    sync
    gtest_main
)
target_link_libraries(syncPingReplyTest
    sync
    gtest_main
)
M
Minghao Li 已提交
501 502 503 504
target_link_libraries(syncRpcMsgTest
    sync
    gtest_main
)
M
Minghao Li 已提交
505 506 507 508 509 510 511 512
target_link_libraries(syncPingTimerTest2
    sync
    gtest_main
)
target_link_libraries(syncPingSelfTest
    sync
    gtest_main
)
M
Minghao Li 已提交
513 514 515 516
target_link_libraries(syncElectTest
    sync
    gtest_main
)
M
Minghao Li 已提交
517 518 519 520
target_link_libraries(syncEncodeTest
    sync
    gtest_main
)
M
Minghao Li 已提交
521 522 523 524
target_link_libraries(syncWriteTest
    sync
    gtest_main
)
M
Minghao Li 已提交
525 526 527 528
target_link_libraries(syncReplicateTest
    sync
    gtest_main
)
M
Minghao Li 已提交
529 530 531 532
target_link_libraries(syncRefTest
    sync
    gtest_main
)
M
Minghao Li 已提交
533 534 535 536
target_link_libraries(syncLogStoreCheck
    sync
    gtest_main
)
M
Minghao Li 已提交
537 538 539 540 541 542 543 544
target_link_libraries(syncRaftCfgTest
    sync
    gtest_main
)
target_link_libraries(syncRespMgrTest
    sync
    gtest_main
)
M
Minghao Li 已提交
545 546 547 548
target_link_libraries(syncSnapshotTest
    sync
    gtest_main
)
M
Minghao Li 已提交
549 550 551 552
target_link_libraries(syncApplyMsgTest
    sync
    gtest_main
)
M
Minghao Li 已提交
553 554 555 556 557 558 559


enable_testing()
add_test(
    NAME sync_test
    COMMAND syncTest
)
M
Minghao Li 已提交
560 561