aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/dist
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2019-03-13 16:42:18 -0400
committerBryan C. Mills <bcmills@google.com>2019-03-13 21:16:24 +0000
commit2989abc91efb7d64eb141b918bdc361975308e81 (patch)
treee2bdf791c51ad13f9319e1f20a1e89f75aab3737 /src/cmd/dist
parent1a24bf10bc398d94bbdbb0c77b691e5840d343df (diff)
downloadgo-2989abc91efb7d64eb141b918bdc361975308e81.tar.xz
cmd/dist: add a test in misc/reboot to verify that the toolchain can self-bootstrap
Fixes #30758 Change-Id: I8e49958602de9caa47bb5710828158e51744f375 Reviewed-on: https://go-review.googlesource.com/c/go/+/167478 Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/dist')
-rw-r--r--src/cmd/dist/test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go
index 1a54752f35..9e7205f56e 100644
--- a/src/cmd/dist/test.go
+++ b/src/cmd/dist/test.go
@@ -739,6 +739,12 @@ func (t *tester) registerTests() {
},
})
}
+
+ // Ensure that the toolchain can bootstrap itself.
+ // This test adds another ~45s to all.bash if run sequentially, so run it only on the builders.
+ if os.Getenv("GO_BUILDER_NAME") != "" && goos != "android" && !t.iOS() {
+ t.registerHostTest("reboot", "../misc/reboot", "misc/reboot", ".")
+ }
}
// isRegisteredTestName reports whether a test named testName has already