]> Cypherpunks repositories - gostls13.git/commitdiff
all: update 'gotest' to 'go test'
authorShenghou Ma <minux.ma@gmail.com>
Mon, 13 Feb 2012 18:58:17 +0000 (13:58 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 13 Feb 2012 18:58:17 +0000 (13:58 -0500)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5645099

12 files changed:
src/pkg/crypto/tls/handshake_client_test.go
src/pkg/crypto/tls/handshake_server_test.go
src/pkg/go/printer/performance_test.go
src/pkg/go/printer/printer.go
src/pkg/go/printer/printer_test.go
src/pkg/math/big/calibrate_test.go
src/pkg/math/big/nat.go
src/pkg/net/http/httptest/server.go
src/pkg/path/filepath/path_test.go
src/pkg/runtime/softfloat64.go
src/pkg/sync/mutex_test.go
src/pkg/sync/rwmutex_test.go

index c0abcda200155dafc130781d575fb2d2ce79e182..8c56daaf619331381c5cad787790bac0e0e257b7 100644 (file)
@@ -62,7 +62,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 -test.run "TestRunClient" -connect
+//   % go 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 4bff5327e2c7e242e558fd16655bde4189efa30b..bd31d31ae1adad4021d7b65d9d46b1f87b7ee61f 100644 (file)
@@ -284,7 +284,7 @@ func loadPEMCert(in string) *x509.Certificate {
 
 // Script of interaction with gnutls implementation.
 // The values for this test are obtained by building and running in server mode:
-//   % gotest -test.run "TestRunServer" -serve
+//   % go 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
@@ -949,7 +949,7 @@ var sslv3ServerScript = [][]byte{
 
 var clientauthTests = []clientauthTest{
        // Server doesn't asks for cert
-       // gotest -test.run "TestRunServer" -serve -clientauth 0
+       // go test -run "TestRunServer" -serve -clientauth 0
        // gnutls-cli --insecure --debug 100 -p 10443 localhost 2>&1 |
        //   python parse-gnutls-cli-debug-log.py
        {"NoClientCert", NoClientCert, nil,
@@ -1115,7 +1115,7 @@ var clientauthTests = []clientauthTest{
                                0x03, 0x11, 0x43, 0x3e, 0xee, 0xb7, 0x4d, 0x69,
                        }}},
        // Server asks for cert with empty CA list, client doesn't give it.
-       // gotest -test.run "TestRunServer" -serve -clientauth 1
+       // go test -run "TestRunServer" -serve -clientauth 1
        // gnutls-cli --insecure --debug 100 -p 10443 localhost
        {"RequestClientCert, none given", RequestClientCert, nil,
                [][]byte{{
@@ -1282,7 +1282,7 @@ var clientauthTests = []clientauthTest{
                                0xf4, 0x70, 0xcc, 0xb4, 0xed, 0x07, 0x76, 0x3a,
                        }}},
        // Server asks for cert with empty CA list, client gives one
-       // gotest -test.run "TestRunServer" -serve -clientauth 1
+       // go test -run "TestRunServer" -serve -clientauth 1
        // gnutls-cli --insecure --debug 100 -p 10443 localhost
        {"RequestClientCert, client gives it", RequestClientCert,
                []*x509.Certificate{clicert},
index dbd942292b537c83ccd3a7b7b9f6384fda5c1f2c..0c6a4e71f132af832f6e0f90d431115e55fa66ea 100644 (file)
@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // This file implements a simple printer performance benchmark:
-// gotest -bench=BenchmarkPrint 
+// go test -bench=BenchmarkPrint 
 
 package printer
 
index e9ab5fd5de50ecbbada48fd80823109b564ae58b..f99b7bc7b464d384fe3475711fcbe0df7099f79b 100644 (file)
@@ -413,7 +413,7 @@ func (p *printer) writeCommentPrefix(pos, next token.Position, prev, comment *as
 
 // Split comment text into lines
 // (using strings.Split(text, "\n") is significantly slower for
-// this specific purpose, as measured with: gotest -bench=Print)
+// this specific purpose, as measured with: go test -bench=Print)
 func split(text string) []string {
        // count lines (comment text never ends in a newline)
        n := 1
index 38eaf65303de630da2c0b0905141e6d3376a9180..fa133cd35f04f4fbcf02ffffa5f22b9ef7a43b07 100644 (file)
@@ -140,7 +140,7 @@ type entry struct {
        mode           checkMode
 }
 
-// Use gotest -update to create/update the respective golden files.
+// Use go test -update to create/update the respective golden files.
 var data = []entry{
        {"empty.input", "empty.golden", 0},
        {"comments.input", "comments.golden", 0},
index 0950eeedbd2f3757dc324f030d77c6ae721b058d..efe1837bba3613cc911e34f74d5a8983460bcde1 100644 (file)
@@ -8,7 +8,7 @@
 // results are somewhat fragile; use repeated runs to get
 // a clear picture.
 
-// Usage: gotest -calibrate
+// Usage: go test -run=TestCalibrate -calibrate
 
 package big
 
index 6e1c7ffde4efded972547353485dd01005bea77c..da1ac944c5c3d07d5b07135b64085070b7b80bbb 100644 (file)
@@ -897,7 +897,7 @@ func (q nat) convertWords(s []byte, charset string, b Word, ndigits int, bb Word
 }
 
 // Split blocks greater than leafSize Words (or set to 0 to disable recursive conversion)
-// Benchmark and configure leafSize using: gotest -test.bench="Leaf"
+// Benchmark and configure leafSize using: go test -bench="Leaf"
 //   8 and 16 effective on 3.0 GHz Xeon "Clovertown" CPU (128 byte cache lines)
 //   8 and 16 effective on 2.66 GHz Core 2 Duo "Penryn" CPU
 var leafSize int = 8 // number of Word-size binary values treat as a monolithic block
index 5b02e143d4a2b8f4294acc2022dbfae46ec30c91..ace1bf382870d773835611be8c075b6b42a45b40 100644 (file)
@@ -61,7 +61,7 @@ func newLocalListener() net.Listener {
 
 // When debugging a particular http server-based test,
 // this flag lets you run
-//     gotest -run=BrokenTest -httptest.serve=127.0.0.1:8000
+//     go test -run=BrokenTest -httptest.serve=127.0.0.1:8000
 // to start the broken server so you can interact with it manually.
 var serve = flag.String("httptest.serve", "", "if non-empty, httptest.NewServer serves on this address and blocks")
 
index 6f5100b2fff7a72642b9c6202eaf53145e184943..4572707aceea18cab1b54c2daaeb81c1e68340e5 100644 (file)
@@ -357,7 +357,7 @@ func TestWalk(t *testing.T) {
 
        // Test permission errors.  Only possible if we're not root
        // and only on some file systems (AFS, FAT).  To avoid errors during
-       // all.bash on those file systems, skip during gotest -short.
+       // all.bash on those file systems, skip during go test -short.
        if os.Getuid() > 0 && !testing.Short() {
                // introduce 2 errors: chmod top-level directories to 0
                os.Chmod(filepath.Join(tree.name, tree.entries[1].name), 0)
index e0c3b7b738df76cb52e327b7729cb38bd5a4e3da..4fcf8f269018e90440157f2f7a1dd72dff00e24d 100644 (file)
@@ -4,7 +4,7 @@
 
 // Software IEEE754 64-bit floating point.
 // Only referred to (and thus linked in) by arm port
-// and by gotest in this directory.
+// and by tests in this directory.
 
 package runtime
 
index 47758844f27b6cb76c142fb00804a82740857713..a514b4ad4c02a8086e4bb4a09b40217318eb74bb 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// GOMAXPROCS=10 gotest
+// GOMAXPROCS=10 go test
 
 package sync_test
 
index dc8ce9653ce1dcec5a86e049609efc8a0053fcd8..39d5d6540de7853680e6f813983508436ea1fab6 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// GOMAXPROCS=10 gotest
+// GOMAXPROCS=10 go test
 
 package sync_test