Changeset 2010 for box/trunk/test


Ignore:
Timestamp:
16/12/2007 23:52:05 (4 years ago)
Author:
chris
Message:

Pass test options to test daemons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/test/basicserver/testbasicserver.cpp

    r1572 r2010  
    437437        // Launch a basic server 
    438438        { 
    439                 int pid = LaunchServer("./test srv1 testfiles/srv1.conf",  
    440                         "testfiles/srv1.pid"); 
     439                std::string cmd = "./test"; 
     440                cmd += test_args; 
     441                cmd += " srv1 testfiles/srv1.conf"; 
     442                int pid = LaunchServer(cmd, "testfiles/srv1.pid"); 
    441443 
    442444                TEST_THAT(pid != -1 && pid != 0); 
     
    481483        // Launch a test forking server 
    482484        { 
    483                 int pid = LaunchServer("./test srv2 testfiles/srv2.conf",  
    484                         "testfiles/srv2.pid"); 
     485                std::string cmd = "./test"; 
     486                cmd += test_args; 
     487                cmd += " srv2 testfiles/srv2.conf"; 
     488                int pid = LaunchServer(cmd, "testfiles/srv2.pid"); 
    485489 
    486490                TEST_THAT(pid != -1 && pid != 0); 
     
    549553        // Launch a test SSL server 
    550554        { 
    551                 int pid = LaunchServer("./test srv3 testfiles/srv3.conf", 
    552                         "testfiles/srv3.pid"); 
     555                std::string cmd = "./test"; 
     556                cmd += test_args; 
     557                cmd += " srv3 testfiles/srv3.conf"; 
     558                int pid = LaunchServer(cmd, "testfiles/srv3.pid"); 
    553559 
    554560                TEST_THAT(pid != -1 && pid != 0); 
     
    628634        // Launch a test protocol handling server 
    629635        { 
    630                 int pid = LaunchServer("./test srv4 testfiles/srv4.conf",  
    631                         "testfiles/srv4.pid"); 
     636                std::string cmd = "./test"; 
     637                cmd += test_args; 
     638                cmd += " srv4 testfiles/srv4.conf"; 
     639                int pid = LaunchServer(cmd, "testfiles/srv4.pid"); 
    632640 
    633641                TEST_THAT(pid != -1 && pid != 0); 
Note: See TracChangeset for help on using the changeset viewer.