Ignore:
Timestamp:
28/03/2008 22:59:28 (4 years ago)
Author:
chris
Message:

Allow configuration of the server port that the client will connect to
(bbackupd and bbackupquery).

Redesign ConfigurationVerify? to use classes instead of structs.

Use port 22011 instead of 2201 during tests, to reduce the chances of
conflicting with a running bbstored or other process.

Ignore autogen_* in svn:ignore everywhere instead of individual per-file
ignores.

Location:
box/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • box/trunk

    • Property svn:ignore
      •  

        old new  
        1111release 
        1212runtest.pl 
         13.hg 
  • box/trunk/test/bbackupd/testbbackupd.cpp

    r2107 r2116  
    515515                        // connect and log in 
    516516                        SocketStreamTLS conn; 
    517                         conn.Open(context, Socket::TypeINET, "localhost", BOX_PORT_BBSTORED); 
     517                        conn.Open(context, Socket::TypeINET, "localhost", 
     518                                22011); 
    518519                        BackupProtocolClient protocol(conn); 
    519520                        protocol.QueryVersion(BACKUP_STORE_SERVER_VERSION); 
     
    608609{ 
    609610        sSocket.Open(rContext, Socket::TypeINET,  
    610                 "localhost", BOX_PORT_BBSTORED); 
     611                "localhost", 22011); 
    611612        std::auto_ptr<BackupProtocolClient> connection; 
    612613        connection.reset(new BackupProtocolClient(sSocket)); 
     
    25602561                                == Restore_TargetExists); 
    25612562                         
    2562                         // Make sure you can't restore to a nonexistant path 
    2563                         printf("Try to restore to a path that doesn't exist\n"); 
    2564                         TEST_THAT(BackupClientRestore(*client, restoredirid,  
    2565                                 "testfiles/no-such-path/subdir",  
    2566                                 true /* print progress dots */)  
    2567                                 == Restore_TargetPathNotFound); 
    2568                          
    25692563                        // Find ID of the deleted directory 
    25702564                        deldirid = GetDirID(*client, "x1", restoredirid); 
     
    25782572                                true /* deleted files */)  
    25792573                                == Restore_Complete); 
     2574 
     2575                        // Make sure you can't restore to a nonexistant path 
     2576                        printf("\n\n==== Try to restore to a path " 
     2577                                "that doesn't exist\n"); 
     2578                        fflush(stdout); 
     2579                        TEST_THAT(BackupClientRestore(*client, restoredirid,  
     2580                                "testfiles/no-such-path/subdir",  
     2581                                true /* print progress dots */)  
     2582                                == Restore_TargetPathNotFound); 
    25802583 
    25812584                        // Log out 
Note: See TracChangeset for help on using the changeset viewer.