aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_bindfs.rb
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2012-03-02 14:48:43 +0200
committerMartin Pärtel <martin.partel@gmail.com>2012-03-02 14:48:43 +0200
commit8fed121f6e722bfb147bec343ab4b335340d83d3 (patch)
treefdd040b52d1c6aa136a42b0e36ae636b4b82d5f7 /tests/test_bindfs.rb
parent4156fd48bbd413998b860d65e53c4b866d9430c6 (diff)
downloadbindfs-8fed121f6e722bfb147bec343ab4b335340d83d3.tar.gz
A test case for --mirror.
Diffstat (limited to 'tests/test_bindfs.rb')
-rwxr-xr-xtests/test_bindfs.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_bindfs.rb b/tests/test_bindfs.rb
index f184880..54801e2 100755
--- a/tests/test_bindfs.rb
+++ b/tests/test_bindfs.rb
@@ -194,6 +194,14 @@ root_testenv("--chown-deny") do
chown(nil, 'nogroup', 'mnt/file')
end
+root_testenv("--mirror=root") do
+ touch('src/file')
+ chown('nobody', 'nogroup', 'src/file')
+
+ assert { File.stat('mnt/file').uid == 0 }
+ assert { File.stat('mnt/file').gid == $nogroup_gid }
+end
+
testenv("--chmod-allow-x --chmod-ignore") do
touch('src/file')