diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2012-03-02 14:48:43 +0200 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2012-03-02 14:48:43 +0200 |
commit | 8fed121f6e722bfb147bec343ab4b335340d83d3 (patch) | |
tree | fdd040b52d1c6aa136a42b0e36ae636b4b82d5f7 /tests/test_bindfs.rb | |
parent | 4156fd48bbd413998b860d65e53c4b866d9430c6 (diff) | |
download | bindfs-8fed121f6e722bfb147bec343ab4b335340d83d3.tar.gz |
A test case for --mirror.
Diffstat (limited to 'tests/test_bindfs.rb')
-rwxr-xr-x | tests/test_bindfs.rb | 8 |
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') |