]> Cypherpunks repositories - gostls13.git/commit
gotest: another try at flags.
authorRob Pike <r@golang.org>
Thu, 31 Mar 2011 04:14:49 +0000 (21:14 -0700)
committerRob Pike <r@golang.org>
Thu, 31 Mar 2011 04:14:49 +0000 (21:14 -0700)
commit7d77e3117ca70a660aa86143c69e56addbcef580
tree7f3fe4416d8ee3eec9cc78bb91a38f339a22d577
parent5a7a07426108d0d5605b7c305ca985256435dd8e
gotest: another try at flags.
doc.go contains the details. The short story:
- command line is passed to the binary
- a new flag, -file, is needed to name files
- known flags have the "test." prefix added for convenience.
- gotest-specific flags are trimmed from the command line.

The effect should be that most existing uses are unaffected,
the ability to name files is still present, and it's nicer to use.
The downside is a lot more code in gotest.

Also allow a test to be called just Test.

R=rsc, niemeyer, rog, r2
CC=golang-dev
https://golang.org/cl/4307049
src/cmd/gotest/Makefile
src/cmd/gotest/doc.go
src/cmd/gotest/flag.go [new file with mode: 0644]
src/cmd/gotest/gotest.go