diff options
author | Jakob Unterwurzacher | 2016-10-08 21:49:21 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-10-08 21:49:21 +0200 |
commit | 79e3e2867114a15cbde4e51990042d39e8ff081d (patch) | |
tree | d57956b3fc9fe5741b3ca4e741e8be8af8bcab5c /tests/example_filesystems/example_filesystems_test.go | |
parent | eb51a1ed20696460a9cdab2caa8f5d6e1e8dee04 (diff) |
tests: add v1.1-reverse-plaintextnames example filesystem
Diffstat (limited to 'tests/example_filesystems/example_filesystems_test.go')
-rw-r--r-- | tests/example_filesystems/example_filesystems_test.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/example_filesystems/example_filesystems_test.go b/tests/example_filesystems/example_filesystems_test.go index 71fe0a9..ffb2299 100644 --- a/tests/example_filesystems/example_filesystems_test.go +++ b/tests/example_filesystems/example_filesystems_test.go @@ -184,3 +184,30 @@ func TestExampleFSv11reverse(t *testing.T) { test_helpers.UnmountPanic(dirC) test_helpers.UnmountPanic(dirB) } + +// gocryptfs v1.1 introduced reverse mode +func TestExampleFSv11reversePlaintextnames(t *testing.T) { + dirA := "v1.1-reverse-plaintextnames" + dirB := test_helpers.TmpDir + "/" + dirA + ".B" + err := os.Mkdir(dirB, 0700) + if err != nil { + t.Fatal(err) + } + dirC := test_helpers.TmpDir + "/" + dirA + ".C" + err = os.Mkdir(dirC, 0700) + if err != nil { + t.Fatal(err) + } + test_helpers.MountOrFatal(t, dirA, dirB, "-reverse", "-extpass", "echo test", opensslOpt) + test_helpers.MountOrFatal(t, dirB, dirC, "-extpass", "echo test", opensslOpt) + checkExampleFSrw(t, dirC, false) + test_helpers.UnmountPanic(dirC) + test_helpers.UnmountPanic(dirB) + + m := "e7fb8f0d-2a81df9e-26611e4b-5540b218-e48aa458-c2a623af-d0c82637-1466b5f2" + test_helpers.MountOrFatal(t, dirA, dirB, "-reverse", "-masterkey", m, opensslOpt) + test_helpers.MountOrFatal(t, dirB, dirC, "-aessiv", "-masterkey", m, opensslOpt) + checkExampleFSrw(t, dirC, false) + test_helpers.UnmountPanic(dirC) + test_helpers.UnmountPanic(dirB) +} |