aboutsummaryrefslogtreecommitdiff
path: root/test/codegen
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2019-08-28 14:42:06 -0400
committerDaniel Martí <mvdan@mvdan.cc>2019-09-16 11:53:57 +0000
commitd9b8ffa51cf7cafe18107ec53a4ec3ceff15ce46 (patch)
tree89398f4e5249f157ce84b514a25d3587bf299c2f /test/codegen
parent75da700d0ae307ebfd4a3493b53e8f361c16f481 (diff)
downloadgo-d9b8ffa51cf7cafe18107ec53a4ec3ceff15ce46.tar.xz
test/codegen: document -all_codegen option in README
It is useful to know about the -all_codegen option for running codegen tests for all platforms. I was puzzling that some codegen test was not failing on my local machine or on trybot, until I found this option. Change-Id: I062cf4d73f6a6c9ebc2258195779d2dab21bc36d Reviewed-on: https://go-review.googlesource.com/c/go/+/192101 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'test/codegen')
-rw-r--r--test/codegen/README6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/codegen/README b/test/codegen/README
index f6877e701d..1afefd9e3c 100644
--- a/test/codegen/README
+++ b/test/codegen/README
@@ -30,6 +30,12 @@ transformation, it can be useful to first run the test harness with a
toolchain from a released Go version (and verify that the new tests
fail), and then re-runnig the tests using the devel toolchain.
+By default, only checks that are relevant to the current GOOS/GOARCH
+are run. Checks for all platforms can be enabled by specifiying the
+-all_codegen option, as
+
+ $ ../bin/go run run.go -all_codegen codegen
+
- Regexps comments syntax