aboutsummaryrefslogtreecommitdiff
path: root/tests/defaults/main_test.go
blob: a623c486d87e8111430bf220cc9fe2103aa4d032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
}