1
0
mirror of https://github.com/golang/go synced 2024-11-19 14:54:43 -07:00

cmd/go: rearrange help for 'go test'

Put the 'go test' flags into 'go help test', so 'go help testflags'
is about the flags for the compiled test binary.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5641060
This commit is contained in:
Rob Pike 2012-02-09 14:12:18 +11:00
parent 3484d5462d
commit 00d0f8e320

View File

@ -56,23 +56,7 @@ compiled.)
The package is built in a temporary directory so it does not interfere with the
non-test installation.
See 'go help testflag' for details about flags handled by 'go test'
and the test binary.
See 'go help importpath' for more about import paths.
See also: go build, go vet.
`,
}
var helpTestflag = &Command{
UsageLine: "testflag",
Short: "description of testing flags",
Long: `
The 'go test' command takes both flags that apply to 'go test' itself
and flags that apply to the resulting test binary.
The flags handled by 'go test' are:
The flags handled by 'go test' itself are:
-c Compile the test binary to pkg.test but do not run it.
@ -90,7 +74,23 @@ The flags handled by 'go test' are:
-x Print each subcommand go test executes.
The resulting test binary, called pkg.test, where pkg is the name of the
The test binary also accepts flags that control execution of the test; these
flags are also accessible by 'go test'. See 'go help testflag' for details.
See 'go help importpath' for more about import paths.
See also: go build, go vet.
`,
}
var helpTestflag = &Command{
UsageLine: "testflag",
Short: "description of testing flags",
Long: `
The 'go test' command takes both flags that apply to 'go test' itself
and flags that apply to the resulting test binary.
The test binary, called pkg.test, where pkg is the name of the
directory containing the package sources, has its own flags:
-test.v