From bcbddea99ec91f9919551c5e40801094f41e5a62 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 24 Aug 2020 13:59:59 +0800 Subject: CMake: update tests --- tests/CMakeLists.txt | 6 ------ tests/include/CMakeLists.txt | 2 ++ tests/storage/CMakeLists.txt | 6 ++++++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 934bccb..4dfaed1 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -12,8 +12,6 @@ target_link_libraries( pinyin ) -add_test(NAME pinyin COMMAND test_pinyin) - add_executable( test_phrase test_phrase.cpp @@ -24,8 +22,6 @@ target_link_libraries( pinyin ) -add_test(NAME phrase COMMAND test_phrase) - add_executable( test_chewing test_chewing.cpp @@ -35,5 +31,3 @@ target_link_libraries( test_chewing pinyin ) - -add_test(NAME chewing COMMAND test_chewing) diff --git a/tests/include/CMakeLists.txt b/tests/include/CMakeLists.txt index 3ad956c..43c029f 100644 --- a/tests/include/CMakeLists.txt +++ b/tests/include/CMakeLists.txt @@ -7,3 +7,5 @@ target_link_libraries( test_memory_chunk pinyin ) + +add_test(NAME memory_chunk COMMAND test_memory_chunk) diff --git a/tests/storage/CMakeLists.txt b/tests/storage/CMakeLists.txt index 378e134..4b3a60f 100644 --- a/tests/storage/CMakeLists.txt +++ b/tests/storage/CMakeLists.txt @@ -40,6 +40,8 @@ target_link_libraries( pinyin ) +add_test(NAME phrase_index_logger COMMAND test_phrase_index_logger) + add_executable( test_phrase_table test_phrase_table.cpp @@ -60,6 +62,8 @@ target_link_libraries( pinyin ) +add_test(NAME ngram COMMAND test_ngram) + add_executable( test_flexible_ngram test_flexible_ngram.cpp @@ -69,3 +73,5 @@ target_link_libraries( test_flexible_ngram pinyin ) + +add_test(NAME flexible_ngram COMMAND test_flexible_ngram) -- cgit