diff options
author | Russ Cox <rsc@golang.org> | 2018-07-17 22:35:10 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2018-07-19 05:27:53 +0000 |
commit | d286d4b1415de23464e0d6a38ce31c72bafb24fd (patch) | |
tree | ccc9952c6eef8a6827925c7431917da4391a75ba /src/cmd/go/testdata/script/README | |
parent | c54bc3448390d4ae4495d6d2c03c9dd4111b08f1 (diff) | |
download | go-d286d4b1415de23464e0d6a38ce31c72bafb24fd.tar.gz go-d286d4b1415de23464e0d6a38ce31c72bafb24fd.zip |
cmd/go: convert module tests to scripts
Change-Id: If0976d15027db795f1383ef709c49c838cbb6953
Reviewed-on: https://go-review.googlesource.com/124696
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/cmd/go/testdata/script/README')
-rw-r--r-- | src/cmd/go/testdata/script/README | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cmd/go/testdata/script/README b/src/cmd/go/testdata/script/README index 4334ed32a6..55bc48b215 100644 --- a/src/cmd/go/testdata/script/README +++ b/src/cmd/go/testdata/script/README @@ -30,6 +30,7 @@ Scripts also have access to these other environment variables: GOCACHE=<actual GOCACHE being used outside the test> GOOS=<target GOOS> GOPATH=$WORK/gopath + GOPROXY=<local module proxy serving from cmd/go/testdata/mod> GOROOT=<actual GOROOT> HOME=/no-home PATH=<actual PATH> @@ -48,10 +49,11 @@ by a tiny script engine in ../../script_test.go (not the system shell). The script stops and the overall test fails if any particular command fails. Each line is parsed into a sequence of space-separated command words, -with environment variable expansion. Adding single quotes around text -keeps spaces in that text from being treated as word separators and also -disables environment variable expansion. Inside a single-quoted block of -text, a repeated single quote indicates a literal single quote, as in: +with environment variable expansion and # marking an end-of-line comment. +Adding single quotes around text keeps spaces in that text from being treated +as word separators and also disables environment variable expansion. +Inside a single-quoted block of text, a repeated single quote indicates +a literal single quote, as in: 'Don''t communicate by sharing memory.' |