added log manager and query classifier tests
This commit is contained in:
parent
8697b97617
commit
d8c34aabad
@ -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)
|
5
log_manager/test/CMakeLists.txt
Normal file
5
log_manager/test/CMakeLists.txt
Normal 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)
|
@ -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)
|
1
query_classifier/test/CMakeLists.txt
Normal file
1
query_classifier/test/CMakeLists.txt
Normal file
@ -0,0 +1 @@
|
||||
add_subdirectory(canonical_tests)
|
4
query_classifier/test/canonical_tests/CMakeLists.txt
Normal file
4
query_classifier/test/canonical_tests/CMakeLists.txt
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user