From 57e8df990c7c251b3cc73c2df6af6bf73367d234 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 16 Oct 2016 13:39:25 +0200 Subject: tests: split "normal" tests into "cli" and "defaults" Also fixes the failure to run the benchmarks do to the missing gocryptfs.diriv. --- tests/defaults/main_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/defaults/main_test.go (limited to 'tests/defaults/main_test.go') 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) +} -- cgit v1.2.3