rdiff-backup-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Rdiff-backup-commits] Changes to rdiff-backup/testing/finaltest.py


From: Ben Escoto
Subject: [Rdiff-backup-commits] Changes to rdiff-backup/testing/finaltest.py
Date: Sat, 20 Aug 2005 02:31:18 -0400

Index: rdiff-backup/testing/finaltest.py
diff -u rdiff-backup/testing/finaltest.py:1.36 
rdiff-backup/testing/finaltest.py:1.37
--- rdiff-backup/testing/finaltest.py:1.36      Sun Aug  7 17:43:46 2005
+++ rdiff-backup/testing/finaltest.py   Sat Aug 20 06:31:18 2005
@@ -377,6 +377,12 @@
                self.exec_rb_extra_args(None, "--list-increment-sizes",
                                                                
"testfiles/restoretest3")
 
+       def testListIncrementSizesRemote(self):
+               """Test --list-increment-sizes switch.  Uses restoretest3"""
+               self.set_connections('test1', '../', None, None)
+               self.exec_rb_extra_args(None, "--list-increment-sizes",
+                                                               
"testfiles/restoretest3")
+
        def testListIncrementsRemote(self):
                """Test --list-increment-sizes mode remotely.  Uses 
restoretest3"""
                self.set_connections('test1', '../', None, None)
@@ -426,6 +432,18 @@
                self.exec_rb_extra_args(None, "--override-chars-to-quote 
'^a-z0-9_ -.'",
                                                                
"testfiles/increment1", "testfiles/output")
                self.exec_rb_extra_args(None, "--remove-older-than now", 
"testfiles/output")
+
+       def testRemoveOlderThanRemote(self):
+               """Test --remove-older-than remotely"""
+               Myrm("testfiles/output")
+               assert not os.system("cp -a testfiles/restoretest3 
testfiles/output")
+               self.set_connections("test1/", "../", None, None)
+               self.exec_rb_extra_args(None, "--remove-older-than 20000",
+                                                               
"testfiles/output")
+               rbdir = rpath.RPath(Globals.local_connection,
+                                                       
"testfiles/output/rdiff-backup-data")
+               for inc in self.get_all_increments(rbdir):
+                       assert inc.getinctime() >= 20000
 
        def testCompare(self):
                """Test --compare and --compare-older-than modes"""




reply via email to

[Prev in Thread] Current Thread [Next in Thread]