summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <daniel.goodliffe@pressassociation.com>2015-07-20 10:33:40 +0100
committerDan Goodliffe <daniel.goodliffe@pressassociation.com>2015-07-20 10:33:40 +0100
commit7e4a53294dbeedff021c644d3541979a990cc184 (patch)
tree70e6e95d0ec7906226e8dad0eb9af7689a778b7a
parentSwitch to the StringSeq interface where possible because it's considerably le... (diff)
downloadnetfs-7e4a53294dbeedff021c644d3541979a990cc184.tar.bz2
netfs-7e4a53294dbeedff021c644d3541979a990cc184.tar.xz
netfs-7e4a53294dbeedff021c644d3541979a990cc184.zip
Support specification of configuration files when creating a test core
-rw-r--r--netfs/unittests/testCore.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/netfs/unittests/testCore.cpp b/netfs/unittests/testCore.cpp
index 07590b6..10b04e2 100644
--- a/netfs/unittests/testCore.cpp
+++ b/netfs/unittests/testCore.cpp
@@ -15,12 +15,12 @@ const std::string testEndpoint("tcp -h localhost -p 12012");
class Core {
public:
- Core() :
+ Core(const std::string & daemonConfig = "defaultDaemon.xml", const std::string & fuseConfig = "defaultFuse.xml") :
daemonHost(testEndpoint, {
- "--NetFSD.ConfigPath=" + (RootDir / "defaultDaemon.xml").string()
+ "--NetFSD.ConfigPath=" + (RootDir / daemonConfig).string()
}),
fuseHost(testEndpoint, {
- (RootDir / "defaultFuse.xml:testvol").string(),
+ (RootDir / fuseConfig).string() + ":testvol",
(RootDir / "test").string()
}),
ic(daemonHost.ic),