diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-10-21 02:27:34 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-10-21 02:27:34 +0000 |
commit | 4509fa6e203349c86dd5f343a040ec02bc54f3ae (patch) | |
tree | a86aa5345c82b9b8e13d1f96e0073beec005189e /rdiff-backup/testing | |
parent | 233a140b094d213a72f8d8e46a131031489ffe6a (diff) | |
download | rdiff-backup-4509fa6e203349c86dd5f343a040ec02bc54f3ae.tar.gz |
Added readonly test for file system case sensitivity
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@643 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing')
-rw-r--r-- | rdiff-backup/testing/fs_abilitiestest.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rdiff-backup/testing/fs_abilitiestest.py b/rdiff-backup/testing/fs_abilitiestest.py index 1aa3f68..87737f0 100644 --- a/rdiff-backup/testing/fs_abilitiestest.py +++ b/rdiff-backup/testing/fs_abilitiestest.py @@ -15,6 +15,7 @@ class FSAbilitiesTest(unittest.TestCase): dir_to_test = "testfiles" eas = acls = 1 chars_to_quote = "" + case_sensitive = 1 ownership = (os.getuid() == 0) hardlinks = fsync_dirs = 1 dir_inc_perms = 1 @@ -32,6 +33,9 @@ class FSAbilitiesTest(unittest.TestCase): #resource_forks = 0 #carbonfile = 0 + # A case insensitive directory (a cdrom mount on my system!) + case_insensitive_path = "/media/cdrecorder" + def testReadOnly(self): """Test basic querying read only""" base_dir = rpath.RPath(Globals.local_connection, self.dir_to_test) @@ -42,6 +46,7 @@ class FSAbilitiesTest(unittest.TestCase): assert fsa.acls == self.acls, fsa.acls assert fsa.resource_forks == self.resource_forks, fsa.resource_forks assert fsa.carbonfile == self.carbonfile, fsa.carbonfile + assert fsa.case_sensitive == self.case_sensitive, fsa.case_sensitive def testReadWrite(self): """Test basic querying read/write""" @@ -75,5 +80,12 @@ class FSAbilitiesTest(unittest.TestCase): new_dir.delete() + def test_case_sensitive(self): + """Test a read-only case-INsensitive directory""" + rp = rpath.RPath(Globals.local_connection, self.case_insensitive_path) + fsa = fs_abilities.FSAbilities('read-only') + fsa.set_case_sensitive_readonly(rp) + assert fsa.case_sensitive == 0, fsa.case_sensitive + if __name__ == "__main__": unittest.main() |