aboutsummaryrefslogtreecommitdiff
path: root/tests/defaults/main_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-10-16 13:39:25 +0200
committerJakob Unterwurzacher2016-10-16 15:04:53 +0200
commit57e8df990c7c251b3cc73c2df6af6bf73367d234 (patch)
treecf58086c0707a66ee11b15b880bf14e6060bae88 /tests/defaults/main_test.go
parentdc78e634aa76878026727a141c0e474d8466999a (diff)
tests: split "normal" tests into "cli" and "defaults"
Also fixes the failure to run the benchmarks do to the missing gocryptfs.diriv.
Diffstat (limited to 'tests/defaults/main_test.go')
-rw-r--r--tests/defaults/main_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/defaults/main_test.go b/tests/defaults/main_test.go
new file mode 100644
index 0000000..a623c48
--- /dev/null
+++ b/tests/defaults/main_test.go
@@ -0,0 +1,17 @@
+// Tests and benchmarks performed with default settings only.
+package defaults
+
+import (
+ "os"
+ "testing"
+
+ "github.com/rfjakob/gocryptfs/tests/test_helpers"
+)
+
+func TestMain(m *testing.M) {
+ test_helpers.ResetTmpDir(true)
+ test_helpers.MountOrExit(test_helpers.DefaultCipherDir, test_helpers.DefaultPlainDir, "-zerokey")
+ r := m.Run()
+ test_helpers.UnmountPanic(test_helpers.DefaultPlainDir)
+ os.Exit(r)
+}