aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/README
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2018-11-02 15:42:15 -0700
committerIan Lance Taylor <iant@golang.org>2018-11-08 01:36:33 +0000
commit60cf9ac7369ee4e7b12f3272132378cfc78b811d (patch)
tree91672761e59984d047e3e5d1a169b7caf4975f25 /src/cmd/go/testdata/script/README
parent0b071e40195c7f202933d3b3ec3da3b4f40cd472 (diff)
downloadgo-60cf9ac7369ee4e7b12f3272132378cfc78b811d.tar.gz
go-60cf9ac7369ee4e7b12f3272132378cfc78b811d.zip
cmd/go: add cmpenv command to testing script language
This will be used by later commits in this sequence. Updates #28221 Change-Id: I2b22b9f88a0183636cde9509606f03f079eb33f1 Reviewed-on: https://go-review.googlesource.com/c/147277 Run-TryBot: Ian Lance Taylor <iant@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/README4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/README b/src/cmd/go/testdata/script/README
index f28f1b87ed..73858103fd 100644
--- a/src/cmd/go/testdata/script/README
+++ b/src/cmd/go/testdata/script/README
@@ -92,6 +92,10 @@ The commands are:
from the most recent exec or go command.
(If the files have differing content, the failure prints a diff.)
+- cmpenv file1 file2
+ Like cmp, but environment variables are substituted in the file contents
+ before the comparison. For example, $GOOS is replaced by the target GOOS.
+
- cp src... dst
Copy the listed files to the target file or existing directory.