Changeset 2828 for box/trunk/test
- Timestamp:
- 08/01/2011 21:33:19 (17 months ago)
- File:
-
- 1 edited
-
box/trunk/test/bbackupd/testbbackupd.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/test/bbackupd/testbbackupd.cpp
r2793 r2828 522 522 523 523 // 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); 525 528 526 529 // Log out … … 3432 3435 // Test the restoration 3433 3436 TEST_THAT(BackupClientRestore(*client, restoredirid, 3434 " testfiles/restore-Test1",3437 "Test1", "testfiles/restore-Test1", 3435 3438 true /* print progress dots */) 3436 3439 == Restore_Complete); … … 3441 3444 // Make sure you can't restore a restored directory 3442 3445 TEST_THAT(BackupClientRestore(*client, restoredirid, 3443 " testfiles/restore-Test1",3446 "Test1", "testfiles/restore-Test1", 3444 3447 true /* print progress dots */) 3445 3448 == Restore_TargetExists); … … 3452 3455 // properly later (when bbackupd is stopped) 3453 3456 TEST_THAT(BackupClientRestore(*client, deldirid, 3454 " testfiles/restore-Test1-x1",3457 "Test1", "testfiles/restore-Test1-x1", 3455 3458 true /* print progress dots */, 3456 3459 true /* deleted files */) … … 3465 3468 Logging::Guard guard(Log::FATAL); 3466 3469 TEST_THAT(BackupClientRestore(*client, 3467 restoredirid, 3470 restoredirid, "Test1", 3468 3471 "testfiles/no-such-path/subdir", 3469 3472 true /* print progress dots */) … … 3813 3816 // rather than doing anything 3814 3817 TEST_THAT(BackupClientRestore(*client, restoredirid, 3815 " testfiles/restore-interrupt",3818 "Test1", "testfiles/restore-interrupt", 3816 3819 true /* print progress dots */) 3817 3820 == Restore_ResumePossible); … … 3819 3822 // Then resume it 3820 3823 TEST_THAT(BackupClientRestore(*client, restoredirid, 3821 " testfiles/restore-interrupt",3824 "Test1", "testfiles/restore-interrupt", 3822 3825 true /* print progress dots */, 3823 3826 false /* deleted files */, … … 3854 3857 // Do restore and undelete 3855 3858 TEST_THAT(BackupClientRestore(*client, deldirid, 3856 " testfiles/restore-Test1-x1-2",3859 "Test1", "testfiles/restore-Test1-x1-2", 3857 3860 true /* print progress dots */, 3858 3861 true /* deleted files */,
Note: See TracChangeset
for help on using the changeset viewer.
