mirror of
https://github.com/golang/go
synced 2024-11-17 21:04:43 -07:00
cmd/dist: run wiki, shootout etc tests only on builders
These find approximately nothing. Takes 5% off my all.bash run time. For #10571. Change-Id: I21d3a844af756eb37f59bba0064f24995626da0d Reviewed-on: https://go-review.googlesource.com/18198 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
baa928a782
commit
b6473ff132
6
src/cmd/dist/test.go
vendored
6
src/cmd/dist/test.go
vendored
@ -499,7 +499,10 @@ func (t *tester) registerTests() {
|
|||||||
t.registerTest("testsigfwd", "../misc/cgo/testsigfwd", "go", "run", "main.go")
|
t.registerTest("testsigfwd", "../misc/cgo/testsigfwd", "go", "run", "main.go")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if t.hasBash() && t.goos != "nacl" && t.goos != "android" && !t.iOS() {
|
|
||||||
|
// Doc and shootout tests only run on builders.
|
||||||
|
// They find problems approximately never.
|
||||||
|
if t.hasBash() && t.goos != "nacl" && t.goos != "android" && !t.iOS() && os.Getenv("GO_BUILDER_NAME") != "" {
|
||||||
t.registerTest("doc_progs", "../doc/progs", "time", "go", "run", "run.go")
|
t.registerTest("doc_progs", "../doc/progs", "time", "go", "run", "run.go")
|
||||||
t.registerTest("wiki", "../doc/articles/wiki", "./test.bash")
|
t.registerTest("wiki", "../doc/articles/wiki", "./test.bash")
|
||||||
t.registerTest("codewalk", "../doc/codewalk", "time", "./run")
|
t.registerTest("codewalk", "../doc/codewalk", "time", "./run")
|
||||||
@ -517,6 +520,7 @@ func (t *tester) registerTests() {
|
|||||||
t.registerSeqTest("shootout:"+name, "../test/bench/shootout", "time", "./timing.sh", "-test", name)
|
t.registerSeqTest("shootout:"+name, "../test/bench/shootout", "time", "./timing.sh", "-test", name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if t.goos != "android" && !t.iOS() {
|
if t.goos != "android" && !t.iOS() {
|
||||||
t.registerTest("bench_go1", "../test/bench/go1", "go", "test", t.timeout(600))
|
t.registerTest("bench_go1", "../test/bench/go1", "go", "test", t.timeout(600))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user