summaryrefslogtreecommitdiff
path: root/integration_tests/example_filesystems_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-12-08 16:17:19 +0100
committerJakob Unterwurzacher2015-12-08 16:17:19 +0100
commite3f35d38b599801312e982c19b191aa5dd76f94d (patch)
tree58f6e79f3451f12e6820c854e4d9f3ed3e6c519d /integration_tests/example_filesystems_test.go
parentc6dacd6f913b4c6eb7a8917af49190dce32db108 (diff)
tests: add v0.6 example filesystem with EME
Diffstat (limited to 'integration_tests/example_filesystems_test.go')
-rw-r--r--integration_tests/example_filesystems_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/integration_tests/example_filesystems_test.go b/integration_tests/example_filesystems_test.go
index a04e67e..c3f4966 100644
--- a/integration_tests/example_filesystems_test.go
+++ b/integration_tests/example_filesystems_test.go
@@ -87,3 +87,25 @@ func TestExampleFsV05(t *testing.T) {
t.Error(err)
}
}
+
+// Test example_filesystems/v0.6
+// with password mount and -masterkey mount
+func TestExampleFsV06(t *testing.T) {
+ pDir := tmpDir + "TestExampleFsV06/"
+ cDir := "example_filesystems/v0.6"
+ err := os.Mkdir(pDir, 0777)
+ if err != nil {
+ t.Fatal(err)
+ }
+ mount(cDir, pDir, "-extpass", "echo test")
+ checkExampleContent(t, pDir)
+ unmount(pDir)
+ mount(cDir, pDir, "-masterkey", "7bc8deb0-5fc894ef-a093da43-61561a81-"+
+ "0e8dee83-fdc056a4-937c37dd-9df5c520")
+ checkExampleContent(t, pDir)
+ unmount(pDir)
+ err = os.Remove(pDir)
+ if err != nil {
+ t.Error(err)
+ }
+}