]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/test: consolidate tests into fewer cgo source files
authorRuss Cox <rsc@golang.org>
Thu, 16 May 2019 00:47:25 +0000 (20:47 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 22 May 2019 12:52:33 +0000 (12:52 +0000)
commitb0e238add5dc8ab80b4eade78ca047f074658dcd
tree83bbcc92609a881f36453d553473c53594ee6fa3
parent6105e8b4193401cf3344471924025c8a293c8e40
misc/cgo/test: consolidate tests into fewer cgo source files

Each different file that does import "C" must be compiled
and analyzed separately by cgo. Having fewer files import "C"
reduces the cost of building the test. This is especially important
because this test is built and run four different times (with different
settings) during all.bash.

go test -c in this directory used to take over 20 seconds on my laptop.
Now it takes under 5 seconds.

Removes 23.4r 29.0u 21.5s from all.bash.

For #26473.

Change-Id: Ie7cb7b0d9d6138ebd2eb548d0d8ea6e409ae10b9
Reviewed-on: https://go-review.googlesource.com/c/go/+/177558
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
97 files changed:
misc/cgo/test/align.go [deleted file]
misc/cgo/test/api.go [deleted file]
misc/cgo/test/basic.go [deleted file]
misc/cgo/test/cflags.go [deleted file]
misc/cgo/test/cgo_stubs_android_test.go
misc/cgo/test/checkconst.go [deleted file]
misc/cgo/test/complex.go [deleted file]
misc/cgo/test/cthread.go [deleted file]
misc/cgo/test/duplicate_symbol.go [deleted file]
misc/cgo/test/env.go [deleted file]
misc/cgo/test/exports.go [deleted file]
misc/cgo/test/fpvar.go [deleted file]
misc/cgo/test/helpers.go [deleted file]
misc/cgo/test/issue10303.go [deleted file]
misc/cgo/test/issue11925.go [deleted file]
misc/cgo/test/issue12030.go [deleted file]
misc/cgo/test/issue1222.go [deleted file]
misc/cgo/test/issue1328.go [deleted file]
misc/cgo/test/issue13930.go [deleted file]
misc/cgo/test/issue14838.go [deleted file]
misc/cgo/test/issue1560.go [deleted file]
misc/cgo/test/issue1635.go [deleted file]
misc/cgo/test/issue17065.go [deleted file]
misc/cgo/test/issue17537.go [deleted file]
misc/cgo/test/issue18126.go [deleted file]
misc/cgo/test/issue18146.go
misc/cgo/test/issue18720.go [deleted file]
misc/cgo/test/issue20129.go [deleted file]
misc/cgo/test/issue20369.go [deleted file]
misc/cgo/test/issue20910.go [deleted file]
misc/cgo/test/issue21668.go [deleted file]
misc/cgo/test/issue21708.go [deleted file]
misc/cgo/test/issue21809.go [deleted file]
misc/cgo/test/issue22958.go [deleted file]
misc/cgo/test/issue23356.go [deleted file]
misc/cgo/test/issue23720.go [deleted file]
misc/cgo/test/issue24206.go [deleted file]
misc/cgo/test/issue24206_generic.go [deleted file]
misc/cgo/test/issue2462.go [deleted file]
misc/cgo/test/issue25143.go [deleted file]
misc/cgo/test/issue26066.go [deleted file]
misc/cgo/test/issue26517.go [deleted file]
misc/cgo/test/issue28545.go [deleted file]
misc/cgo/test/issue28772.go [deleted file]
misc/cgo/test/issue28896.go [deleted file]
misc/cgo/test/issue29383.go [deleted file]
misc/cgo/test/issue29748.go [deleted file]
misc/cgo/test/issue29781.go [deleted file]
misc/cgo/test/issue29878.go [deleted file]
misc/cgo/test/issue30065.go [deleted file]
misc/cgo/test/issue3250.go [deleted file]
misc/cgo/test/issue3250w.go [deleted file]
misc/cgo/test/issue3261.go [deleted file]
misc/cgo/test/issue3729.go [deleted file]
misc/cgo/test/issue3729w.go [deleted file]
misc/cgo/test/issue3741.go [deleted file]
misc/cgo/test/issue3775.go [deleted file]
misc/cgo/test/issue3945.go [deleted file]
misc/cgo/test/issue4054a.go [deleted file]
misc/cgo/test/issue4054b.go [deleted file]
misc/cgo/test/issue4339.go [deleted file]
misc/cgo/test/issue4417.go [deleted file]
misc/cgo/test/issue4857.go [deleted file]
misc/cgo/test/issue5227.go [deleted file]
misc/cgo/test/issue5242.go [deleted file]
misc/cgo/test/issue5337.go [deleted file]
misc/cgo/test/issue5337w.go [deleted file]
misc/cgo/test/issue5548.go [deleted file]
misc/cgo/test/issue5603.go [deleted file]
misc/cgo/test/issue5740.go [deleted file]
misc/cgo/test/issue5986.go [deleted file]
misc/cgo/test/issue6128.go [deleted file]
misc/cgo/test/issue6390.go [deleted file]
misc/cgo/test/issue6472.go [deleted file]
misc/cgo/test/issue6506.go [deleted file]
misc/cgo/test/issue6612.go [deleted file]
misc/cgo/test/issue6833.go [deleted file]
misc/cgo/test/issue6907.go [deleted file]
misc/cgo/test/issue6907export.go [deleted file]
misc/cgo/test/issue7560.go [deleted file]
misc/cgo/test/issue7665.go [deleted file]
misc/cgo/test/issue7786.go [deleted file]
misc/cgo/test/issue7978.go [deleted file]
misc/cgo/test/issue8092.go [deleted file]
misc/cgo/test/issue8331a.go [deleted file]
misc/cgo/test/issue8331b.go [deleted file]
misc/cgo/test/issue8428.go [deleted file]
misc/cgo/test/issue8441.go [deleted file]
misc/cgo/test/issue8811.go [deleted file]
misc/cgo/test/issue9557.go [deleted file]
misc/cgo/test/test.go [new file with mode: 0644]
misc/cgo/test/test22906.go [deleted file]
misc/cgo/test/test27660.go [deleted file]
misc/cgo/test/test_unix.go [moved from misc/cgo/test/issue29878export.go with 63% similarity]
misc/cgo/test/test_windows.go [moved from misc/cgo/test/issue13402.go with 52% similarity]
misc/cgo/test/testx.go [new file with mode: 0644]
misc/cgo/test/twoargs.go [deleted file]