mirror of
https://github.com/vgough/encfs.git
synced 2024-12-28 17:48:48 +01:00
tests: Check that absolute symlinks work in reverse mode
This commit is contained in:
parent
8ae9282efe
commit
8efda5b700
@ -58,9 +58,23 @@ sub copy_test
|
||||
ok(! -f "$decrypted/encfs.cpp", "file deleted");
|
||||
}
|
||||
|
||||
# Create symlinks and verify they are correctly decrypted
|
||||
# Parameter: symlink target
|
||||
sub symlink_test
|
||||
{
|
||||
my $target = shift(@_);
|
||||
symlink($target, "$plain/symlink");
|
||||
ok( readlink("$decrypted/symlink") eq "$target", "symlink to '$target'");
|
||||
unlink("$plain/symlink");
|
||||
}
|
||||
|
||||
newWorkingDir();
|
||||
mount();
|
||||
|
||||
copy_test();
|
||||
symlink_test("/"); # absolute
|
||||
symlink_test("foo"); # relative
|
||||
symlink_test("/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/15/17/18"); # long
|
||||
symlink_test("!§\$%&/()\\<>#+="); # special characters
|
||||
|
||||
cleanup();
|
||||
|
Loading…
Reference in New Issue
Block a user