diff options
author | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-08-10 00:43:20 +0000 |
---|---|---|
committer | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-08-10 00:43:20 +0000 |
commit | d8a9ff981f1ce8590c5b1c5376cad0e3e07abacf (patch) | |
tree | da431cf2485ba177b1a18473be2e34eaf315d1ec /rdiff-backup/testing/finaltest.py | |
parent | 386fc7d4c764912447906324b77d83223052ac9e (diff) | |
download | rdiff-backup-d8a9ff981f1ce8590c5b1c5376cad0e3e07abacf.tar.gz |
Added tests for --windows-mode and high bit permissions.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@181 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/finaltest.py')
-rw-r--r-- | rdiff-backup/testing/finaltest.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/rdiff-backup/testing/finaltest.py b/rdiff-backup/testing/finaltest.py index 31c57b8..f1a1a51 100644 --- a/rdiff-backup/testing/finaltest.py +++ b/rdiff-backup/testing/finaltest.py @@ -211,6 +211,36 @@ class Final(PathSetter): self.set_connections(None, None, "test2/tmp/", "../../") self.exec_rb(None, '../../../../../../proc', 'testfiles/procoutput') + def testWindowsMode(self): + """Test backup with the --windows-mode option""" + old_schema = self.rb_schema + self.rb_schema = old_schema + " --windows-mode " + self.set_connections(None, None, None, None) + + self.delete_tmpdirs() + + # Back up increment2, this contains a file with colons + self.exec_rb(20000, 'testfiles/increment2', 'testfiles/output') + time.sleep(1) + + # Back up increment3 + self.exec_rb(30000, 'testfiles/increment3', 'testfiles/output') + + Globals.time_separator = "_" + inc_paths = self.getinc_paths("increments.", + "testfiles/output/rdiff-backup-data") + Globals.time_separator = ":" + assert len(inc_paths) == 1 + # Restore increment2 + self.exec_rb(None, inc_paths[0], 'testfiles/restoretarget2') + assert CompareRecursive(Local.inc2rp, Local.rpout2) + + # Now check to make sure no ":" in output directory + popen_fp = os.popen("find testfiles/output -name '*:*' | wc") + wc_output = popen_fp.read() + popen_fp.close() + assert wc_output.split() == ["0", "0", "0"], wc_output + class FinalSelection(PathSetter): """Test selection options""" |