]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: unify compilation of compiler tests
authorKeith Randall <khr@google.com>
Tue, 31 Jul 2018 19:40:20 +0000 (12:40 -0700)
committerKeith Randall <khr@golang.org>
Fri, 24 Aug 2018 21:24:58 +0000 (21:24 +0000)
commit45e7e668440e79717e950162e6d42fb8773a109a
tree730411d5c614b9c65759c891570e887e9b759fc3
parent97cc4b5123a71193cbb207a40a14b9025e769ec7
cmd/compile: unify compilation of compiler tests

Before this CL we would build&run each test file individually.
Building the test takes most of the time, a significant fraction of a
second. Running the tests are really fast.

After this CL, we build all the tests at once, then run each
individually. We only have to run the compiler&linker once (or twice,
for softfloat architectures) instead of once per test.

While we're here, organize these tests to fit a bit more into the
standard testing framework.

This is just the organizational CL that changes the testing framework
and migrates 2 tests.  Future tests will follow.

R=go1.12

Update #26469

Change-Id: I1a1e7338c054b51f0c1c4c539d48d3d046b08b7d
Reviewed-on: https://go-review.googlesource.com/126995
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/ssa_test.go
src/cmd/compile/internal/gc/testdata/break_test.go [moved from src/cmd/compile/internal/gc/testdata/break.go with 93% similarity]
src/cmd/compile/internal/gc/testdata/short.go [deleted file]
src/cmd/compile/internal/gc/testdata/short_test.go [new file with mode: 0644]