go/misc
Austin Clements 2484e1331a misc/swig: restructure as a driver
Currently, the misc/swig tests directly use Swig and C++ and will fail
to build if either Swig or a C++ compiler are not present. Typically,
we hide this fact from users because dist test itself checks for Swig
and a C++ compiler before even attempting to run this test, though
users will see this is they try to go test ./... from misc.

However, we're about to move the misc/swig tests into the cmd module,
where they will be much more visible and much more likely to run
unintentionally. To prevent build errors, this CL restructures these
tests into a single pure Go test plus two test packages hidden in
testdata. This is relatively easy to do for this test because there
are only four test cases total. The pure Go test can check for the
necessary build tools before trying to build and run the tests in
testdata. This also gives us the opportunity to move the LTO variant
of these tests out of dist and into the test itself, simplifying dist.

For #37486.

Change-Id: Ibda089b4069e36866cb31867a7006c790be2d8b1
Reviewed-on: https://go-review.googlesource.com/c/go/+/493599
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
2023-05-12 12:00:05 +00:00
..
arm all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
cgo/gmp misc/cgo: move registerCgoTests tests to cmd/cgo/internal 2023-05-12 12:00:02 +00:00
chrome/gophertool docs: fix case of GitHub 2021-03-05 02:35:21 +00:00
go_android_exec misc/android: improve exit code workaround 2023-05-03 14:54:58 +00:00
ios all: gofmt main repo 2022-04-11 16:34:30 +00:00
linkcheck all: use bytes.Cut, strings.Cut 2021-10-06 15:53:04 +00:00
reboot make.{bash,bat}: check unmodified $PATH for $GOROOT/bin presence 2023-04-19 14:36:22 +00:00
swig misc/swig: restructure as a driver 2023-05-12 12:00:05 +00:00
wasm misc/wasm: add wasmedge to wasip1 script 2023-05-11 14:42:30 +00:00
editors all: don't refer to code.google.com/p/go{,-wiki}/ 2015-02-06 14:41:47 +00:00
go.mod misc: update go.mod to 1.21 2023-01-26 16:55:59 +00:00