From fcc6205a74d413112524f34a7b370fac5cfa2978 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 22 Apr 2007 22:09:20 +0000 Subject: Compare restored files as part of restore test (refs #3, merges part of [623]) --- test/bbackupd/testbbackupd.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/bbackupd') diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp index 788a9e46..a7e22ea5 100644 --- a/test/bbackupd/testbbackupd.cpp +++ b/test/bbackupd/testbbackupd.cpp @@ -2115,6 +2115,15 @@ int test_bbackupd() 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 -- cgit v1.2.3