diff options
author | Jakob Unterwurzacher | 2015-11-28 20:31:01 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-11-28 20:31:01 +0100 |
commit | eb38a3611448ba711a17aedd6f9654e501d2b2ab (patch) | |
tree | 570ccb01e1f5aaec198c58f7a9d48e67d9566fff /integration_tests/example_filesystems_test.go | |
parent | 8766ab5472bcd3f70cc4caedc83d68cbd8155283 (diff) |
tests: add v0.5 example filesystem (with DirIV!)
Diffstat (limited to 'integration_tests/example_filesystems_test.go')
-rw-r--r-- | integration_tests/example_filesystems_test.go | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/integration_tests/example_filesystems_test.go b/integration_tests/example_filesystems_test.go index bd4f21d..6f1574a 100644 --- a/integration_tests/example_filesystems_test.go +++ b/integration_tests/example_filesystems_test.go @@ -44,11 +44,11 @@ func checkExampleContent(t *testing.T, dir string) { } } -// Test example_filesystems/normal +// Test example_filesystems/v0.4 // with password mount and -masterkey mount -func TestExampleFsNormal(t *testing.T) { - pDir := tmpDir + "TestExampleFsNormal/" - cDir := "example_filesystems/normal" +func TestExampleFsV04(t *testing.T) { + pDir := tmpDir + "TestExampleFsV04/" + cDir := "example_filesystems/v0.4" err := os.Mkdir(pDir, 0777) if err != nil { t.Fatal(err) @@ -65,3 +65,25 @@ func TestExampleFsNormal(t *testing.T) { t.Error(err) } } + +// Test example_filesystems/v0.5 +// with password mount and -masterkey mount +func TestExampleFsV05(t *testing.T) { + pDir := tmpDir + "TestExampleFsV05/" + cDir := "example_filesystems/v0.5" + 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", "e7f38c71-0da80f68-d3b2cd7d-ee4f49e5-"+ + "f8bc98cd-d7976950-85204c54-3081b302") + checkExampleContent(t, pDir) + unmount(pDir) + err = os.Remove(pDir) + if err != nil { + t.Error(err) + } +} |