]> Cypherpunks repositories - gostls13.git/commitdiff
Make.pkg, doc: Replace references to "-benchmarks" and "-match" with "-test.bench...
authorKyle Consalus <consalus@gmail.com>
Wed, 23 Feb 2011 04:23:21 +0000 (20:23 -0800)
committerRob Pike <r@golang.org>
Wed, 23 Feb 2011 04:23:21 +0000 (20:23 -0800)
R=r
CC=golang-dev
https://golang.org/cl/4197041

doc/code.html
src/Make.pkg
src/cmd/gotest/doc.go
src/pkg/crypto/tls/handshake_client_test.go
src/pkg/crypto/tls/handshake_server_test.go
src/pkg/testing/testing.go

index 9236cf263be679f1ec0921da4bf301896e6a90b1..8bd9eec3d40afbaa0096bbc664005bc59d2ba3b6 100644 (file)
@@ -229,7 +229,7 @@ run <code>gotest one_test.go</code>.
 <p>
 If your change affects performance, add a <code>Benchmark</code> function 
 (see the <a href="/cmd/gotest/">gotest command documentation</a>)
-and run it using <code>gotest -benchmarks=.</code>.
+and run it using <code>gotest -test.bench=.</code>.
 </p>
 
 <p>
index ca0fa9ee2ca1151029a1e727b79d3bdfb5a8a454..7b5e478b7f71be6a8095acbdb1e3561e07ebabe3 100644 (file)
@@ -55,7 +55,7 @@ test:
        gotest
 
 bench:
-       gotest -benchmarks=. -match="Do not run tests"
+       gotest -test.bench=. -test.run="Do not run tests"
 
 nuke: clean
        rm -f $(pkgdir)/$(TARG).a
index 8618e804591fe9b285561afa1af67d84ce1cef0c..581eaaab9cc14e6b68517aea50b94b0adfcd6cda 100644 (file)
@@ -20,7 +20,7 @@ They should have signature
        func TestXXX(t *testing.T) { ... }
 
 Benchmark functions can be written as well; they will be run only
-when the -benchmarks flag is provided.  Benchmarks should have
+when the -test.bench flag is provided.  Benchmarks should have
 signature
 
        func BenchmarkXXX(b *testing.B) { ... }
index e5c9684b9775ee57a6b9e5c7753166d1b793ebff..fd1f145cfc4e37754131282a9c80f9639dff1513 100644 (file)
@@ -61,7 +61,7 @@ func TestRunClient(t *testing.T) {
 
 // Script of interaction with gnutls implementation.
 // The values for this test are obtained by building and running in client mode:
-//   % gotest -match "TestRunClient" -connect
+//   % gotest -test.run "TestRunClient" -connect
 // and then:
 //   % gnutls-serv -p 10443 --debug 100 --x509keyfile key.pem --x509certfile cert.pem -a > /tmp/log 2>&1
 //   % python parse-gnutls-cli-debug-log.py < /tmp/log
index 5cf3ae0499d677e12a850027803bcaee7ba3be26..6beb6a9f62b64f725238a7072b7dc03bb636a220 100644 (file)
@@ -194,7 +194,7 @@ var testPrivateKey = &rsa.PrivateKey{
 
 // Script of interaction with gnutls implementation.
 // The values for this test are obtained by building and running in server mode:
-//   % gotest -match "TestRunServer" -serve
+//   % gotest -test.run "TestRunServer" -serve
 // and then:
 //   % gnutls-cli --insecure --debug 100 -p 10443 localhost > /tmp/log 2>&1
 //   % python parse-gnutls-cli-debug-log.py < /tmp/log
index cc314519141f342da7c9d1b57331e73ab0865650..324b5a70e1fa3c64899c69c91f462c9de1139a93 100644 (file)
@@ -12,7 +12,7 @@
 //
 // Functions of the form
 //     func BenchmarkXxx(*testing.B)
-// are considered benchmarks, and are executed by gotest when the -benchmarks
+// are considered benchmarks, and are executed by gotest when the -test.bench
 // flag is provided.
 //
 // A sample benchmark function looks like this: