1 // Copyright (c) 2019, Daniel Martà <mvdan@mvdan.cc>
2 // See LICENSE for licensing information
11 "github.com/rogpeppe/go-internal/gotooltest"
12 "github.com/rogpeppe/go-internal/testscript"
15 func TestMain(m *testing.M) {
16 os.Exit(testscript.RunMain(m, map[string]func() int{
17 "gofumpt": func() int {
18 // Don't change gofmtMain, to keep changes to the gofmt
19 // codebase to a minimum.
26 func TestScripts(t *testing.T) {
28 p := testscript.Params{
29 Dir: filepath.Join("..", "testdata", "scripts"),
30 Condition: func(cond string) (bool, error) {
34 if err := gotooltest.Setup(&p); err != nil {