aboutsummaryrefslogtreecommitdiffstats
path: root/streamingvisitors/src/tests/searchvisitor
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@gmail.com>2016-08-23 15:10:36 +0200
committerVegard Sjonfjell <vegardsjo@gmail.com>2016-08-23 15:10:36 +0200
commit55e5a91901109161186e05d3a6e959e06958bbba (patch)
treef312bab2c60207ee305dbcfa047fcc4fa8fd2dc1 /streamingvisitors/src/tests/searchvisitor
parentd337a29392fb752dc725e4aea5efa0cc0df5f17a (diff)
Aressem/cmake more out of source tests (#441)
* vespalib tests run out of source. * staging_vespalib run tests out of source. * fastos tests run out of source. * Fixed storage tests out of source. * Fixed some of the config tests. * config* tests run out of source. * document_* tests run out of source. * documentapi_ tests run out of source. * Fixed fsa out of source tests. * Fix jrt_test out of source. * More tests run out of source. * Fix some slobrok and messagebus tests. * More fixes for out of source tests. * Done with first pass of regular tests out of source. * Only use SOURCE_DIRECTORY in a limited set of places. * Fix some remaining tests. * Some cleanups. * No need for extra slash.
Diffstat (limited to 'streamingvisitors/src/tests/searchvisitor')
-rw-r--r--streamingvisitors/src/tests/searchvisitor/searchvisitor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/streamingvisitors/src/tests/searchvisitor/searchvisitor.cpp b/streamingvisitors/src/tests/searchvisitor/searchvisitor.cpp
index 77df70ad256..7442e695227 100644
--- a/streamingvisitors/src/tests/searchvisitor/searchvisitor.cpp
+++ b/streamingvisitors/src/tests/searchvisitor/searchvisitor.cpp
@@ -35,11 +35,11 @@ public:
SearchVisitorTest::SearchVisitorTest() :
vespalib::TestApp(),
_componentRegister(),
- _env("dir:cfg")
+ _env("dir:" + GetSourceDirectory() + "cfg")
{
_componentRegister.setNodeInfo("mycluster", lib::NodeType::STORAGE, 1);
_componentRegister.setClock(_clock);
- StorageComponent::DocumentTypeRepoSP repo(new DocumentTypeRepo(readDocumenttypesConfig("cfg/documenttypes.cfg")));
+ StorageComponent::DocumentTypeRepoSP repo(new DocumentTypeRepo(readDocumenttypesConfig(GetSourceDirectory() + "cfg/documenttypes.cfg")));
_componentRegister.setDocumentTypeRepo(repo);
_component.reset(new StorageComponent(_componentRegister, "storage"));
};
@@ -92,13 +92,13 @@ SearchVisitorTest::testSearchVisitor()
vespalib::string stackDump = StackDumpCreator::create(*node);
params.set("query", stackDump);
- testCreateSearchVisitor("dir:cfg", params);
+ testCreateSearchVisitor("dir:" + GetSourceDirectory() + "cfg", params);
}
void
SearchVisitorTest::testOnlyRequireWeakReadConsistency()
{
- SearchVisitorFactory factory("dir:cfg");
+ SearchVisitorFactory factory("dir:" + GetSourceDirectory() + "cfg");
VisitorFactory& factoryBase(factory);
vdslib::Parameters params;
std::unique_ptr<Visitor> sv(