diff options
author | Peng Wu <alexepico@gmail.com> | 2020-08-24 13:59:59 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2020-08-24 13:59:59 +0800 |
commit | bcbddea99ec91f9919551c5e40801094f41e5a62 (patch) | |
tree | 5124ac1c85d4469c863a0f094ac00d4b87feba70 | |
parent | 079cbf27c96d31ca487f7137cd8262f553b095f0 (diff) | |
download | libpinyin-bcbddea99ec91f9919551c5e40801094f41e5a62.tar.gz libpinyin-bcbddea99ec91f9919551c5e40801094f41e5a62.tar.xz libpinyin-bcbddea99ec91f9919551c5e40801094f41e5a62.zip |
CMake: update tests
-rw-r--r-- | tests/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/include/CMakeLists.txt | 2 | ||||
-rw-r--r-- | 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) |