aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/README
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2019-11-18 11:32:51 -0500
committerBryan C. Mills <bcmills@google.com>2019-11-18 21:48:52 +0000
commit4e39dd2ec331054a4bb8ae6056238fb806c4946f (patch)
tree9a7193de4c183acb7ae47e7aeda7bb6df1c4d917 /src/cmd/go/testdata/script/README
parent93d7034b1586679b6215e4ebb6fe850de6673a90 (diff)
downloadgo-4e39dd2ec331054a4bb8ae6056238fb806c4946f.tar.gz
go-4e39dd2ec331054a4bb8ae6056238fb806c4946f.zip
cmd/go: convert TestInstallIntoGOPATH to a script test
Also convert associated tests of GOPATH and 'go install' so that we can remove the corresponding source file from testdata/src. Updates #28387 Updates #30316 Change-Id: Id8c2fde4dc88954b29aefe71c9fa7e974a2ca932 Reviewed-on: https://go-review.googlesource.com/c/go/+/207605 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/cmd/go/testdata/script/README')
-rw-r--r--src/cmd/go/testdata/script/README6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmd/go/testdata/script/README b/src/cmd/go/testdata/script/README
index 1fd9639b6c..511d747129 100644
--- a/src/cmd/go/testdata/script/README
+++ b/src/cmd/go/testdata/script/README
@@ -38,6 +38,7 @@ Scripts also have access to these other environment variables:
TMPDIR=$WORK/tmp
devnull=<value of os.DevNull>
goversion=<current Go version; for example, 1.12>
+ :=<OS-specific path list separator>
The scripts supporting files are unpacked relative to $GOPATH/src (aka $WORK/gopath/src)
and then the script begins execution in that directory as well. Thus the example above runs
@@ -114,7 +115,8 @@ The commands are:
from the most recent exec or go command.
- env [-r] [key=value...]
- With no arguments, print the environment (useful for debugging).
+ With no arguments, print the environment to stdout
+ (useful for debugging and for verifying initial state).
Otherwise add the listed key=value pairs to the environment.
The -r flag causes the values to be escaped using regexp.QuoteMeta
before being recorded.
@@ -163,7 +165,7 @@ The commands are:
- [!] stdout [-count=N] pattern
Apply the grep command (see above) to the standard output
- from the most recent exec, go, or wait command.
+ from the most recent exec, go, wait, or env command.
- stop [message]
Stop the test early (marking it as passing), including the message if given.