This clarifies what parts of the router are specific to the binlogrouter and what are common between the binlogrouter and avrorouter. Ideally, the two modules would use the same infrastructure to handle the processing of replication events. This is the first, albeit small, step towards making the code in the binlogrouter the common infrastructure.
6 lines
352 B
CMake
6 lines
352 B
CMake
if(BUILD_TESTS)
|
|
add_executable(testbinlogrouter testbinlog.cc ../blr.cc ../blr_slave.cc ../blr_master.cc ../blr_file.cc ../blr_cache.cc ../blr_event.cc)
|
|
target_link_libraries(testbinlogrouter maxscale-common ${PCRE_LINK_FLAGS} uuid)
|
|
add_test(NAME TestBinlogRouter COMMAND ./testbinlogrouter WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
|
endif()
|