aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDmitri Shuralyov <dmitshur@golang.org>2026-02-18 15:02:11 -0500
committerGopher Robot <gobot@golang.org>2026-03-25 11:01:13 -0700
commit9dabf8b0d4286f37f75289f188edafb77d86b54d (patch)
tree53349e163515bd2bb9863457a5226da152b7c47d /cmd
parentfa8efe0a928a3eee560a473fed190614b7d711e3 (diff)
downloadgo-x-website-9dabf8b0d4286f37f75289f188edafb77d86b54d.tar.xz
cmd/golangorg: include GOROOT/doc files in TestAll checks
Most of the go.dev content is in the _content directory of x/website, but some of the pages (e.g., go_spec.html, asm.html, godebug.md, etc.) canonically live in the main Go repository. Extend TestAll to help catch problems automatically in those files too. For golang/go#78211. Change-Id: I48ac3f8b2338ef1300461a860fe2cc4c2c30ac02 Reviewed-on: https://go-review.googlesource.com/c/website/+/746740 Reviewed-by: Alan Donovan <adonovan@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/golangorg/server_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/golangorg/server_test.go b/cmd/golangorg/server_test.go
index ec2d2f73..be655657 100644
--- a/cmd/golangorg/server_test.go
+++ b/cmd/golangorg/server_test.go
@@ -118,6 +118,11 @@ func TestAll(t *testing.T) {
"/talks/2013/highperf/",
"/talks/2016/refactor/",
"/tour/static/partials/",
+
+ // The "next" directory in GOROOT/doc goes through
+ // a fragment merging process, not served directly.
+ // See https://go.dev/cs/go/+/HEAD:doc/README.md.
+ "/doc/next/",
}
// Only check and report a URL the first time we see it.
@@ -251,6 +256,7 @@ func TestAll(t *testing.T) {
}
testTree("../../_content", "https://go.dev")
+ testTree(filepath.Join(runtime.GOROOT(), "doc"), "https://go.dev/doc")
}
// fixURL returns the corrected URL for u,