diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-06-21 01:29:18 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-06-21 01:29:18 +0000 |
commit | 5015e6c7a84243200c00c467d892b1b2105ee9bb (patch) | |
tree | 46a6533237dbe77d60c46ac319730b80c0dd7d79 /rdiff-backup/testing/regressiontest.py | |
parent | f4da6ca2f3034ae3d5cd08062bb5d964f63789af (diff) | |
download | rdiff-backup-5015e6c7a84243200c00c467d892b1b2105ee9bb.tar.gz |
Fixed quoted hardlinks, added --windows-restore, fixed a couple tests
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@320 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/regressiontest.py')
-rw-r--r-- | rdiff-backup/testing/regressiontest.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/rdiff-backup/testing/regressiontest.py b/rdiff-backup/testing/regressiontest.py index 90b9d66..b2192c1 100644 --- a/rdiff-backup/testing/regressiontest.py +++ b/rdiff-backup/testing/regressiontest.py @@ -158,6 +158,29 @@ class IncrementTest1(unittest.TestCase): InternalBackup(1, 1, "testfiles/longfilenames1", Local.rpout.path, 100) InternalBackup(1, 1, "testfiles/longfilenames2", Local.rpout.path, 200) + def test_quoted_hardlinks(self): + """Test backing up a directory with quoted hardlinks in it""" + hldir = rpath.RPath(Globals.local_connection, + "testfiles/quoted_hardlinks") + if hldir.lstat(): + Myrm(hldir.path) + hldir.setdata() + hldir.mkdir() + hl1 = hldir.append("HardLink1") + hl1.touch() + hl2 = hldir.append("HardLink2") + hl2.hardlink(hl1.path) + + Myrm(Local.rpout.path) + old_settings = (Globals.quoting_enabled, Globals.chars_to_quote, + Globals.quoting_char) + Globals.quoting_enabled = 1 + Globals.chars_to_quote = 'A-Z' + Globals.quoting_char = ';' + InternalBackup(1, 1, hldir.path, Local.rpout.path, current_time = 1) + InternalBackup(1, 1, "testfiles/empty", Local.rpout.path, + current_time = 10000) + def test_long_socket(self): """Test backing up a directory with long sockets in them |