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) }
func TestMain(m *testing.M) { // Make "testing.Verbose()" return the correct value flag.Parse() variants := []string{"-openssl=true", "-openssl=false"} if !cryptocore.HaveModernGoGCM { fmt.Printf("Skipping Go GCM variant, Go installation is too old") variants = variants[:1] } for _, opensslOpt = range variants { if testing.Verbose() { fmt.Printf("example_filesystems: testing with %q\n", opensslOpt) } test_helpers.ResetTmpDir(false) r := m.Run() if r != 0 { os.Exit(r) } } os.Exit(0) }
func TestMain(m *testing.M) { test_helpers.ResetTmpDir(false) r := m.Run() os.Exit(r) }