summaryrefslogtreecommitdiff
path: root/tests/example_filesystems/example_filesystems_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-24 13:53:50 +0200
committerJakob Unterwurzacher2021-08-24 13:53:50 +0200
commitab7308639b1ec6ff384d7e78e32a0607574ea485 (patch)
tree7375625789082f5ef1520aac0fa450b89b31bbbb /tests/example_filesystems/example_filesystems_test.go
parentd70875aaa970e9d62f3b188c874da229636325dd (diff)
tests/example_filesystems: add v2.2-xchacha-deterministic-names
Combines both new flags.
Diffstat (limited to 'tests/example_filesystems/example_filesystems_test.go')
-rw-r--r--tests/example_filesystems/example_filesystems_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/example_filesystems/example_filesystems_test.go b/tests/example_filesystems/example_filesystems_test.go
index 7ecae81..37820b5 100644
--- a/tests/example_filesystems/example_filesystems_test.go
+++ b/tests/example_filesystems/example_filesystems_test.go
@@ -426,3 +426,25 @@ func TestExampleFSv22xchacha(t *testing.T) {
checkExampleFSLongnames(t, pDir)
test_helpers.UnmountPanic(pDir)
}
+
+// gocryptfs v2.2 introduced -xchacha and -deterministic-names
+func TestExampleFSv22xchachaDeterministicNames(t *testing.T) {
+ cDir := "v2.2-xchacha-deterministic-names"
+ pDir := test_helpers.TmpDir + "/" + cDir
+ cDir = tmpFsPath + cDir
+ err := os.Mkdir(pDir, 0777)
+ if err != nil {
+ t.Fatal(err)
+ }
+ test_helpers.MountOrFatal(t, cDir, pDir, "-extpass", "echo test", opensslOpt)
+ checkExampleFSLongnames(t, pDir)
+ test_helpers.UnmountPanic(pDir)
+
+ pDir = pDir + "_m"
+ test_helpers.MountOrFatal(t, cDir, pDir, "-xchacha", "-deterministic-names", "-masterkey",
+ "beba88a9-c6cd1dc0-b69c6f9d-9daea493-"+
+ "9ae87082-4ffc40bf-b44e52db-3933af39",
+ opensslOpt)
+ checkExampleFSLongnames(t, pDir)
+ test_helpers.UnmountPanic(pDir)
+}