diff options
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) + } +} |