|
|
@ -282,6 +282,7 @@ func doTest(cmdline []string) { |
|
|
|
cc = flag.String("cc", "", "Sets C compiler binary") |
|
|
|
cc = flag.String("cc", "", "Sets C compiler binary") |
|
|
|
coverage = flag.Bool("coverage", false, "Whether to record code coverage") |
|
|
|
coverage = flag.Bool("coverage", false, "Whether to record code coverage") |
|
|
|
verbose = flag.Bool("v", false, "Whether to log verbosely") |
|
|
|
verbose = flag.Bool("v", false, "Whether to log verbosely") |
|
|
|
|
|
|
|
race = flag.Bool("race", false, "Execute the race detector") |
|
|
|
) |
|
|
|
) |
|
|
|
flag.CommandLine.Parse(cmdline) |
|
|
|
flag.CommandLine.Parse(cmdline) |
|
|
|
|
|
|
|
|
|
|
@ -302,6 +303,9 @@ func doTest(cmdline []string) { |
|
|
|
if *verbose { |
|
|
|
if *verbose { |
|
|
|
gotest.Args = append(gotest.Args, "-v") |
|
|
|
gotest.Args = append(gotest.Args, "-v") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if *race { |
|
|
|
|
|
|
|
gotest.Args = append(gotest.Args, "-race") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
packages := []string{"./..."} |
|
|
|
packages := []string{"./..."} |
|
|
|
if len(flag.CommandLine.Args()) > 0 { |
|
|
|
if len(flag.CommandLine.Args()) > 0 { |
|
|
|