1
0
mirror of https://github.com/golang/go synced 2024-09-29 14:24:32 -06:00
go/misc/cgo
Russ Cox b0e238add5 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>
2019-05-22 12:52:33 +00:00
..
errors misc/cgo/errors: consolidate test work 2019-05-21 18:15:05 +00:00
fortran cmd/compile, misc/cgo: fix fortran tests on aix/ppc64 2019-03-22 13:52:59 +00:00
gmp
life misc/android: enable many more tests on GOOS=android 2019-03-08 23:32:03 +00:00
nocgo
stdio misc/android: enable many more tests on GOOS=android 2019-03-08 23:32:03 +00:00
test misc/cgo/test: consolidate tests into fewer cgo source files 2019-05-22 12:52:33 +00:00
testasan
testcarchive misc/cgo: disable testcarchive, testplugin during -short test (including all.bash) 2019-05-16 03:25:04 +00:00
testcshared misc/cgo: disable testcarchive, testplugin during -short test (including all.bash) 2019-05-16 03:25:04 +00:00
testgodefs misc/cgo/testgodefs: move source files into testdata 2019-02-26 02:44:12 +00:00
testplugin misc/cgo: disable testcarchive, testplugin during -short test (including all.bash) 2019-05-16 03:25:04 +00:00
testsanitizers misc/cgo/testsanitizers: move test source files into testdata directory 2019-02-22 21:58:00 +00:00
testshared misc/cgo: gofmt testdata files 2019-03-22 07:21:24 +00:00
testsigfwd
testso misc/cgo: enable testso and testsovar on aix/ppc64 2019-03-27 17:21:28 +00:00
testsovar misc/cgo: enable testso and testsovar on aix/ppc64 2019-03-27 17:21:28 +00:00
testtls