]> Cypherpunks repositories - gostls13.git/commit
doc/progs: rewrite test driver in Go
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 2 Apr 2015 15:53:27 +0000 (08:53 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 7 Apr 2015 00:41:59 +0000 (00:41 +0000)
commit5451fff47520033c2139cbe9a6e352fbfc5b23a9
treeeaee8f773eb026ed76d98276dfd91d1d89277834
parentad49c7bb6223b64da5a4dfae2150cd5396955b49
doc/progs: rewrite test driver in Go

The tests in doc/progs appear to have been originally written
for use with the old test driver. At some later point,
they acquired their own test driver.
Both ran tests in serial.

This CL rewrites the current test driver in Go,
runs tests concurrently, and cleans up
historical artifacts from the old drivers.

The primary motivation is to speed up all.bash.
On my laptop, using tip, this CL reduces doc/progs test
wall time from 26s to 7s. The savings will remain
even when the compiler gets faster. Using Go 1.4,
this CL reduces test wall time from 15s to 4s.

Change-Id: Iae945a8490222beee76e8a2118a0d7956092f543
Reviewed-on: https://go-review.googlesource.com/8410
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
51 files changed:
doc/progs/cgo1.go
doc/progs/cgo2.go
doc/progs/cgo3.go
doc/progs/cgo4.go
doc/progs/defer.go
doc/progs/defer.out [deleted file]
doc/progs/defer2.go
doc/progs/defer2.out [deleted file]
doc/progs/eff_bytesize.go
doc/progs/eff_bytesize.out [deleted file]
doc/progs/eff_qr.go
doc/progs/eff_sequence.go
doc/progs/eff_sequence.out [deleted file]
doc/progs/eff_unused1.go
doc/progs/eff_unused2.go
doc/progs/error.go
doc/progs/error2.go
doc/progs/error3.go
doc/progs/error4.go
doc/progs/go1.go
doc/progs/gobs1.go
doc/progs/gobs2.go
doc/progs/image_draw.go
doc/progs/image_package1.go
doc/progs/image_package1.out [deleted file]
doc/progs/image_package2.go
doc/progs/image_package2.out [deleted file]
doc/progs/image_package3.go
doc/progs/image_package3.out [deleted file]
doc/progs/image_package4.go
doc/progs/image_package4.out [deleted file]
doc/progs/image_package5.go
doc/progs/image_package5.out [deleted file]
doc/progs/image_package6.go
doc/progs/image_package6.out [deleted file]
doc/progs/interface.go
doc/progs/interface2.go
doc/progs/interface2.out [deleted file]
doc/progs/json1.go
doc/progs/json2.go
doc/progs/json2.out [deleted file]
doc/progs/json3.go
doc/progs/json4.go
doc/progs/json5.go
doc/progs/run [deleted file]
doc/progs/run.go [new file with mode: 0755]
doc/progs/slices.go
doc/progs/timeout1.go
doc/progs/timeout2.go
doc/progs/update.bash [deleted file]
src/cmd/dist/test.go