summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-12-16 23:52:05 +0000
committerChris Wilson <chris+github@qwirx.com>2007-12-16 23:52:05 +0000
commitd7ff76379b7b339c22f238d04e87301197485396 (patch)
treeaa64456fd34805dc6bfbfd7ae4f94c85e0690825 /test
parent28e9fa9893c0771a38ea2dc8c7829615dda167f0 (diff)
Pass test options to test daemons.
Diffstat (limited to 'test')
-rw-r--r--test/basicserver/testbasicserver.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/test/basicserver/testbasicserver.cpp b/test/basicserver/testbasicserver.cpp
index 4b33f555..be704881 100644
--- a/test/basicserver/testbasicserver.cpp
+++ b/test/basicserver/testbasicserver.cpp
@@ -436,8 +436,10 @@ int test(int argc, const char *argv[])
// Launch a basic server
{
- int pid = LaunchServer("./test srv1 testfiles/srv1.conf",
- "testfiles/srv1.pid");
+ std::string cmd = "./test";
+ cmd += test_args;
+ cmd += " srv1 testfiles/srv1.conf";
+ int pid = LaunchServer(cmd, "testfiles/srv1.pid");
TEST_THAT(pid != -1 && pid != 0);
if(pid > 0)
@@ -480,8 +482,10 @@ int test(int argc, const char *argv[])
// Launch a test forking server
{
- int pid = LaunchServer("./test srv2 testfiles/srv2.conf",
- "testfiles/srv2.pid");
+ std::string cmd = "./test";
+ cmd += test_args;
+ cmd += " srv2 testfiles/srv2.conf";
+ int pid = LaunchServer(cmd, "testfiles/srv2.pid");
TEST_THAT(pid != -1 && pid != 0);
@@ -548,8 +552,10 @@ int test(int argc, const char *argv[])
// Launch a test SSL server
{
- int pid = LaunchServer("./test srv3 testfiles/srv3.conf",
- "testfiles/srv3.pid");
+ std::string cmd = "./test";
+ cmd += test_args;
+ cmd += " srv3 testfiles/srv3.conf";
+ int pid = LaunchServer(cmd, "testfiles/srv3.pid");
TEST_THAT(pid != -1 && pid != 0);
@@ -627,8 +633,10 @@ int test(int argc, const char *argv[])
//protocolserver:
// Launch a test protocol handling server
{
- int pid = LaunchServer("./test srv4 testfiles/srv4.conf",
- "testfiles/srv4.pid");
+ std::string cmd = "./test";
+ cmd += test_args;
+ cmd += " srv4 testfiles/srv4.conf";
+ int pid = LaunchServer(cmd, "testfiles/srv4.pid");
TEST_THAT(pid != -1 && pid != 0);