From 710f2d3c79231bed743c118983c07d5499ef5d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 3 Aug 2018 12:24:35 +0300 Subject: [PATCH] Unify unit test naming The tests now all use snake_case naming. --- server/modules/filter/cache/test/CMakeLists.txt | 10 +++++----- server/modules/filter/masking/test/CMakeLists.txt | 2 +- .../modules/routing/binlogrouter/test/CMakeLists.txt | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/server/modules/filter/cache/test/CMakeLists.txt b/server/modules/filter/cache/test/CMakeLists.txt index 04fcea197..aae89cf74 100644 --- a/server/modules/filter/cache/test/CMakeLists.txt +++ b/server/modules/filter/cache/test/CMakeLists.txt @@ -43,14 +43,14 @@ add_executable(test_cacheoptions ) 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" -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" -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) diff --git a/server/modules/filter/masking/test/CMakeLists.txt b/server/modules/filter/masking/test/CMakeLists.txt index 5fc64f7c7..2aba26f5f 100644 --- a/server/modules/filter/masking/test/CMakeLists.txt +++ b/server/modules/filter/masking/test/CMakeLists.txt @@ -3,4 +3,4 @@ include_directories(..) add_executable(masking_testrules testrules.cc ../maskingrules.cc) target_link_libraries(masking_testrules maxscale-common ${JANSSON_LIBRARIES}) -add_test(TestMasking_rules masking_testrules) +add_test(test_masking_rules masking_testrules) diff --git a/server/modules/routing/binlogrouter/test/CMakeLists.txt b/server/modules/routing/binlogrouter/test/CMakeLists.txt index 1bbf7eca4..89fbb6ed7 100644 --- a/server/modules/routing/binlogrouter/test/CMakeLists.txt +++ b/server/modules/routing/binlogrouter/test/CMakeLists.txt @@ -1,5 +1,5 @@ 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}) + add_test(NAME test_binlogrouter COMMAND ./testbinlogrouter WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) endif()