Changeset 2828 for box/trunk/test


Ignore:
Timestamp:
08/01/2011 21:33:19 (17 months ago)
Author:
chris
Message:

Log the path, name and size of files being restored at TRACE level for
users wanting more detailed restore output.

Disable printing dots when logging at TRACE level is enabled.

Warn rather than failing to restore when the file attributes could not
be restored. (merges [2745], [2827]).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/test/bbackupd/testbbackupd.cpp

    r2793 r2828  
    522522                         
    523523                        // Test the restoration 
    524                         TEST_THAT(BackupClientRestore(protocol, restoredirid, "testfiles/restore-interrupt", true /* print progress dots */) == Restore_Complete); 
     524                        TEST_THAT(BackupClientRestore(protocol, restoredirid, 
     525                                "Test1", "testfiles/restore-interrupt", 
     526                                true /* print progress dots */) 
     527                                == Restore_Complete); 
    525528 
    526529                        // Log out 
     
    34323435                        // Test the restoration 
    34333436                        TEST_THAT(BackupClientRestore(*client, restoredirid,  
    3434                                 "testfiles/restore-Test1",  
     3437                                "Test1", "testfiles/restore-Test1",  
    34353438                                true /* print progress dots */)  
    34363439                                == Restore_Complete); 
     
    34413444                        // Make sure you can't restore a restored directory 
    34423445                        TEST_THAT(BackupClientRestore(*client, restoredirid,  
    3443                                 "testfiles/restore-Test1",  
     3446                                "Test1", "testfiles/restore-Test1",  
    34443447                                true /* print progress dots */)  
    34453448                                == Restore_TargetExists); 
     
    34523455                        // properly later (when bbackupd is stopped) 
    34533456                        TEST_THAT(BackupClientRestore(*client, deldirid,  
    3454                                 "testfiles/restore-Test1-x1",  
     3457                                "Test1", "testfiles/restore-Test1-x1",  
    34553458                                true /* print progress dots */,  
    34563459                                true /* deleted files */)  
     
    34653468                                Logging::Guard guard(Log::FATAL); 
    34663469                                TEST_THAT(BackupClientRestore(*client, 
    3467                                         restoredirid,  
     3470                                        restoredirid, "Test1", 
    34683471                                        "testfiles/no-such-path/subdir",  
    34693472                                        true /* print progress dots */)  
     
    38133816                        // rather than doing anything 
    38143817                        TEST_THAT(BackupClientRestore(*client, restoredirid,  
    3815                                 "testfiles/restore-interrupt",  
     3818                                "Test1", "testfiles/restore-interrupt",  
    38163819                                true /* print progress dots */)  
    38173820                                == Restore_ResumePossible); 
     
    38193822                        // Then resume it 
    38203823                        TEST_THAT(BackupClientRestore(*client, restoredirid,  
    3821                                 "testfiles/restore-interrupt",  
     3824                                "Test1", "testfiles/restore-interrupt",  
    38223825                                true /* print progress dots */,  
    38233826                                false /* deleted files */,  
     
    38543857                        // Do restore and undelete 
    38553858                        TEST_THAT(BackupClientRestore(*client, deldirid,  
    3856                                 "testfiles/restore-Test1-x1-2",  
     3859                                "Test1", "testfiles/restore-Test1-x1-2",  
    38573860                                true /* print progress dots */,  
    38583861                                true /* deleted files */,  
Note: See TracChangeset for help on using the changeset viewer.