added log manager and query classifier tests

This commit is contained in:
Markus Makela 2014-09-12 06:06:11 +03:00
parent 8697b97617
commit d8c34aabad
5 changed files with 15 additions and 3 deletions

View File

@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 2.6)
set(LOG_MANAGER_HEADERS log_manager.h)
add_library(log_manager SHARED log_manager.cc)
target_link_libraries(log_manager utils)
install(TARGETS log_manager DESTINATION lib)
install(TARGETS log_manager DESTINATION lib)
add_subdirectory(test)

View File

@ -0,0 +1,5 @@
add_executable(testlog testlog.c)
add_executable(testorder testorder.c)
target_link_libraries(testlog utils pthread log_manager)
target_link_libraries(testorder utils pthread log_manager)
add_test(NAME TestLogOrder COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/logorder.sh 500 0 500 logtest.log)

View File

@ -1,3 +1,4 @@
set(QUERY_CLASSIFIER_HEADERS query_classifier.h)
add_library(query_classifier SHARED query_classifier.cc ${MYSQL_HEADERS})
install(TARGETS query_classifier DESTINATION lib)
install(TARGETS query_classifier DESTINATION lib)
add_subdirectory(test)

View File

@ -0,0 +1 @@
add_subdirectory(canonical_tests)

View File

@ -0,0 +1,4 @@
file(COPY ${ERRMSG} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
add_executable(canonizer canonizer.c)
target_link_libraries(canonizer pthread query_classifier z dl ssl aio crypt crypto rt m ${EMBEDDED_LIB} fullcore)
add_test(NAME TestCanonicalQuery COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/canontest.sh testcanon.log input.sql output.sql expected.sql)