diff options
| author | Rob Pike <r@golang.org> | 2012-02-09 14:12:18 +1100 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2012-02-09 14:12:18 +1100 |
| commit | 00d0f8e3201d1865b7cd1efa031c4dbe4a96dd7e (patch) | |
| tree | 25d54573d31c205e324d26d233a6267526381bf0 | |
| parent | 3484d5462d27660fb6e85f290e7dd24fcafa99b9 (diff) | |
| download | go-00d0f8e3201d1865b7cd1efa031c4dbe4a96dd7e.tar.xz | |
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
| -rw-r--r-- | src/cmd/go/test.go | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go index e052353413..bc2af619c2 100644 --- a/src/cmd/go/test.go +++ b/src/cmd/go/test.go @@ -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 |
