1
2
3
4
5 package fuzztest
6
7 import (
8 "cmd/internal/script/scripttest"
9 "flag"
10 "internal/testenv"
11 "runtime"
12 "testing"
13 )
14
15
16
17 var fixReadme = flag.Bool("fixreadme", false, "if true, update README for script tests")
18
19 func TestScript(t *testing.T) {
20 testenv.MustHaveGoBuild(t)
21 testenv.SkipIfShortAndSlow(t)
22 if runtime.GOARCH == "386" && runtime.GOMAXPROCS(0) > 2 {
23
24 t.Setenv("GOMAXPROCS", "2")
25 }
26 scripttest.RunToolScriptTest(t, nil, "testdata/script", *fixReadme)
27 }
28
View as plain text