Unify unit test naming

The tests now all use snake_case naming.
This commit is contained in:
Markus Mäkelä
2018-08-03 12:24:35 +03:00
parent 02b330e4fe
commit 710f2d3c79
3 changed files with 7 additions and 7 deletions

View File

@ -43,14 +43,14 @@ add_executable(test_cacheoptions
) )
target_link_libraries(test_cacheoptions maxscale-common) target_link_libraries(test_cacheoptions maxscale-common)
add_test(TestCache_rules testrules) add_test(test_cache_rules testrules)
add_test(TestCache_inmemory_keygeneration testkeygeneration storage_inmemory ${CMAKE_CURRENT_SOURCE_DIR}/input.test) add_test(test_cache_inmemory_keygeneration testkeygeneration storage_inmemory ${CMAKE_CURRENT_SOURCE_DIR}/input.test)
#usage: testrawstorage storage-module [threads [time [items [min-size [max-size]]]]]\n" #usage: testrawstorage storage-module [threads [time [items [min-size [max-size]]]]]\n"
add_test(TestCache_storage_inmemory testrawstorage storage_inmemory 0 10 1000 1024 1024000) add_test(test_cache_storage_inmemory testrawstorage storage_inmemory 0 10 1000 1024 1024000)
#usage: testlrustorage storage-module [threads [time [items [min-size [max-size]]]]]\n" #usage: testlrustorage storage-module [threads [time [items [min-size [max-size]]]]]\n"
add_test(TestCache_lru_inmemory testlrustorage storage_inmemory 0 10 1000 1024 1024000) add_test(test_cache_lru_inmemory testlrustorage storage_inmemory 0 10 1000 1024 1024000)
add_test(TestCache_options test_cacheoptions) add_test(test_cache_options test_cacheoptions)

View File

@ -3,4 +3,4 @@ include_directories(..)
add_executable(masking_testrules testrules.cc ../maskingrules.cc) add_executable(masking_testrules testrules.cc ../maskingrules.cc)
target_link_libraries(masking_testrules maxscale-common ${JANSSON_LIBRARIES}) target_link_libraries(masking_testrules maxscale-common ${JANSSON_LIBRARIES})
add_test(TestMasking_rules masking_testrules) add_test(test_masking_rules masking_testrules)

View File

@ -1,5 +1,5 @@
if(BUILD_TESTS) 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) 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) target_link_libraries(testbinlogrouter maxscale-common ${PCRE_LINK_FLAGS} uuid)
add_test(NAME TestBinlogRouter COMMAND ./testbinlogrouter WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) add_test(NAME test_binlogrouter COMMAND ./testbinlogrouter WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
endif() endif()