diff options
author | Andrew Morrow <acm@mongodb.com> | 2019-06-19 11:36:50 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2019-06-20 14:31:23 -0400 |
commit | e3f4aa4cf938be00e33874408185767ad256a769 (patch) | |
tree | a6490e5fcd6912d46514b2657a1dc46a352fd943 /src/mongo/db/fts | |
parent | 065a8926202af35bd19a9e2974aaa18f341604fa (diff) | |
download | mongo-e3f4aa4cf938be00e33874408185767ad256a769.tar.gz |
SERVER-41809 Collapse unit tests on a per-directory basis
Diffstat (limited to 'src/mongo/db/fts')
-rw-r--r-- | src/mongo/db/fts/SConscript | 45 | ||||
-rw-r--r-- | src/mongo/db/fts/unicode/SConscript | 31 |
2 files changed, 30 insertions, 46 deletions
diff --git a/src/mongo/db/fts/SConscript b/src/mongo/db/fts/SConscript index 72d3ca6aff8..219871dadf5 100644 --- a/src/mongo/db/fts/SConscript +++ b/src/mongo/db/fts/SConscript @@ -79,26 +79,27 @@ env.Library('ftsmongod', [ 'ftsmongod.cpp', ], LIBDEPS=["base_fts","$BUILD_DIR/mongo/base"]) -env.CppUnitTest(target='fts_test', - source=[ - "fts_basic_phrase_matcher_test.cpp", - "fts_basic_tokenizer_test.cpp", - "fts_element_iterator_test.cpp", - "fts_index_format_test.cpp", - "fts_language_test.cpp", - "fts_matcher_test.cpp", - "fts_query_impl_test.cpp", - "fts_query_noop_test.cpp", - "fts_spec_test.cpp", - "fts_unicode_phrase_matcher_test.cpp", - "fts_unicode_tokenizer_test.cpp", - "stemmer_test.cpp", - "stop_words_test.cpp", - "tokenizer_test.cpp", - ], - LIBDEPS=[ - "$BUILD_DIR/mongo/db/fts/fts_query_noop", - "$BUILD_DIR/mongo/db/matcher/expressions", - "base_fts", - ], +env.CppUnitTest( + target='db_fts_test', + source=[ + "fts_basic_phrase_matcher_test.cpp", + "fts_basic_tokenizer_test.cpp", + "fts_element_iterator_test.cpp", + "fts_index_format_test.cpp", + "fts_language_test.cpp", + "fts_matcher_test.cpp", + "fts_query_impl_test.cpp", + "fts_query_noop_test.cpp", + "fts_spec_test.cpp", + "fts_unicode_phrase_matcher_test.cpp", + "fts_unicode_tokenizer_test.cpp", + "stemmer_test.cpp", + "stop_words_test.cpp", + "tokenizer_test.cpp", + ], + LIBDEPS=[ + "$BUILD_DIR/mongo/db/fts/fts_query_noop", + "$BUILD_DIR/mongo/db/matcher/expressions", + "base_fts", + ], ) diff --git a/src/mongo/db/fts/unicode/SConscript b/src/mongo/db/fts/unicode/SConscript index 32ad0b92417..85f71077606 100644 --- a/src/mongo/db/fts/unicode/SConscript +++ b/src/mongo/db/fts/unicode/SConscript @@ -38,8 +38,8 @@ env.Command( env.Alias('generated-sources', "codepoints_diacritic_list.cpp") env.Library( - target='unicode', - source=[ + target='unicode', + source=[ 'codepoints_casefold.cpp', 'codepoints_delimiter_list.cpp', 'codepoints_diacritic_list.cpp', @@ -53,30 +53,13 @@ env.Library( ) env.CppUnitTest( - target='string_test', + target='db_fts_unicode_test', source=[ - 'string_test.cpp' + 'byte_vector_test.cpp', + 'codepoints_test.cpp', + 'string_test.cpp', ], LIBDEPS=[ - 'unicode', - ] -) - -env.CppUnitTest( - target='codepoints_test', - source=[ - 'codepoints_test.cpp' + 'unicode', ], - LIBDEPS=[ - 'unicode', - ] -) - -env.CppUnitTest( - target='byte_vector_test', - source=[ - 'byte_vector_test.cpp' - ], - LIBDEPS=[ - ] ) |