blob: d6d5cc4418cd1545c94130bb306b0adc05dfba5a (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 | //go:build linux
package root_test
import (
	"os"
	"testing"
	"github.com/rfjakob/gocryptfs/v2/tests/test_helpers"
)
func TestMain(m *testing.M) {
	test_helpers.ResetTmpDir(true)
	os.Chmod(test_helpers.DefaultCipherDir, 0777)
	test_helpers.MountOrExit(test_helpers.DefaultCipherDir, test_helpers.DefaultPlainDir, "-zerokey", "-allow_other")
	r := m.Run()
	test_helpers.UnmountPanic(test_helpers.DefaultPlainDir)
	os.RemoveAll(test_helpers.TmpDir)
	os.Exit(r)
}
 |