
This target doesn't need a running MaxScale and only executes core, log_manager and query_classifier unit tests.
15 lines
625 B
CMake
15 lines
625 B
CMake
if(${ERRMSG} MATCHES "ERRMSG-NOTFOUND")
|
|
message(FATAL_ERROR "The errmsg.sys file was not found, please define the path with -DERRMSG=<path>")
|
|
else()
|
|
if(${CMAKE_VERSION} VERSION_LESS 2.8)
|
|
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${ERRMSG} ${CMAKE_CURRENT_BINARY_DIR})
|
|
else()
|
|
file(COPY ${ERRMSG} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
endif()
|
|
endif()
|
|
|
|
add_subdirectory(canonical_tests)
|
|
add_executable(classify classify.c)
|
|
target_link_libraries(classify query_classifier fullcore)
|
|
add_test(Internal-TestQueryClassifier classify ${CMAKE_CURRENT_SOURCE_DIR}/input.sql ${CMAKE_CURRENT_SOURCE_DIR}/expected.sql)
|