[Box Backup-commit] COMMIT r1582 - box/chris/merge/test/bbackupd

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sun Apr 22 23:09:20 BST 2007


Author: chris
Date: 2007-04-22 23:09:20 +0100 (Sun, 22 Apr 2007)
New Revision: 1582

Modified:
   box/chris/merge/test/bbackupd/testbbackupd.cpp
Log:
Compare restored files as part of restore test (refs #3, merges part 
of [623])


Modified: box/chris/merge/test/bbackupd/testbbackupd.cpp
===================================================================
--- box/chris/merge/test/bbackupd/testbbackupd.cpp	2007-04-22 21:43:59 UTC (rev 1581)
+++ box/chris/merge/test/bbackupd/testbbackupd.cpp	2007-04-22 22:09:20 UTC (rev 1582)
@@ -2115,6 +2115,15 @@
 			protocol.QueryFinished();
 		}
 
+		// Compare the restored files
+		compareReturnValue = ::system(BBACKUPQUERY " -q "
+			"-c testfiles/bbackupd.conf "
+			"-l testfiles/query10.log "
+			"\"compare -cEQ Test1 testfiles/restore-Test1\" "
+			"quit");
+		TEST_RETURN(compareReturnValue, 1);
+		TestRemoteProcessMemLeaks("bbackupquery.memleaks");
+		
 		printf("Add files with current time\n");
 	
 		// Add some more files and modify others




More information about the Boxbackup-commit mailing list