diff options
author | Geir Storli <geirst@yahoo-inc.com> | 2017-05-05 13:40:42 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahoo-inc.com> | 2017-05-12 14:01:23 +0000 |
commit | b0ea3ea8a5d65ca8e8298e50bebc984882e8f767 (patch) | |
tree | 2943c003b8d1b73e79ba351dd18589133974771c | |
parent | d02daee3cd8317637160c586a7f28fe8b0d1f7d4 (diff) |
Add skeleton for unit tests for docstore file chunk.
-rw-r--r-- | searchlib/CMakeLists.txt | 1 | ||||
-rw-r--r-- | searchlib/src/tests/docstore/file_chunk/CMakeLists.txt | 8 | ||||
-rw-r--r-- | searchlib/src/tests/docstore/file_chunk/FILES | 1 | ||||
-rw-r--r-- | searchlib/src/tests/docstore/file_chunk/file_chunk_test.cpp | 12 |
4 files changed, 22 insertions, 0 deletions
diff --git a/searchlib/CMakeLists.txt b/searchlib/CMakeLists.txt index 58d32020fb5..c15ed681d8f 100644 --- a/searchlib/CMakeLists.txt +++ b/searchlib/CMakeLists.txt @@ -117,6 +117,7 @@ vespa_define_module( src/tests/docstore/chunk src/tests/docstore/document_store src/tests/docstore/document_store_visitor + src/tests/docstore/file_chunk src/tests/docstore/lid_info src/tests/docstore/logdatastore src/tests/docstore/store_by_bucket diff --git a/searchlib/src/tests/docstore/file_chunk/CMakeLists.txt b/searchlib/src/tests/docstore/file_chunk/CMakeLists.txt new file mode 100644 index 00000000000..66b618d2885 --- /dev/null +++ b/searchlib/src/tests/docstore/file_chunk/CMakeLists.txt @@ -0,0 +1,8 @@ +# Copyright 2017 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +vespa_add_executable(searchlib_file_chunk_test_app TEST + SOURCES + file_chunk_test.cpp + DEPENDS + searchlib +) +vespa_add_test(NAME searchlib_file_chunk_test_app COMMAND searchlib_file_chunk_test_app) diff --git a/searchlib/src/tests/docstore/file_chunk/FILES b/searchlib/src/tests/docstore/file_chunk/FILES new file mode 100644 index 00000000000..9425cdb4f00 --- /dev/null +++ b/searchlib/src/tests/docstore/file_chunk/FILES @@ -0,0 +1 @@ +file_chunk_test.cpp diff --git a/searchlib/src/tests/docstore/file_chunk/file_chunk_test.cpp b/searchlib/src/tests/docstore/file_chunk/file_chunk_test.cpp new file mode 100644 index 00000000000..0c21217648c --- /dev/null +++ b/searchlib/src/tests/docstore/file_chunk/file_chunk_test.cpp @@ -0,0 +1,12 @@ +// Copyright 2017 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +#include <vespa/vespalib/testkit/test_kit.h> +#include <vespa/searchlib/docstore/filechunk.h> + +#include <vespa/log/log.h> +LOG_SETUP("file_chunk_test"); + +using namespace search; + +TEST_MAIN() { TEST_RUN_ALL(); } + |