]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/testso{,var}: fix tests in module mode
authorBryan C. Mills <bcmills@google.com>
Fri, 22 Feb 2019 15:50:47 +0000 (10:50 -0500)
committerBryan C. Mills <bcmills@google.com>
Tue, 26 Feb 2019 02:43:55 +0000 (02:43 +0000)
commitdd4e7f9722ab22d9da2dca03c559eca3ef3fe1c7
tree4c778cce12d820071ba5722d11240e484ac12843
parent8bffb8546cb8ed1c849989ddf2b151edc983a616
misc/cgo/testso{,var}: fix tests in module mode

Add _test.go files in the individal directories to invoke 'go build'
with appropriate arguments.

Move the test driver out of cmd/dist so that it's easier to invoke the
test separately (using 'go test .').

Updates #30228
Updates #28387

Change-Id: Ibc4a024a52c12a274058298b41cc90709f7f56c8
Reviewed-on: https://go-review.googlesource.com/c/163420
Reviewed-by: Ian Lance Taylor <iant@golang.org>
16 files changed:
misc/cgo/testso/noso_test.go [new file with mode: 0644]
misc/cgo/testso/overlaydir_test.go [new file with mode: 0644]
misc/cgo/testso/so_test.go [new file with mode: 0644]
misc/cgo/testso/testdata/cgoso.c [moved from misc/cgo/testso/cgoso.c with 100% similarity]
misc/cgo/testso/testdata/cgoso.go [moved from misc/cgo/testso/cgoso.go with 100% similarity]
misc/cgo/testso/testdata/cgoso_c.c [moved from misc/cgo/testso/cgoso_c.c with 100% similarity]
misc/cgo/testso/testdata/cgoso_unix.go [moved from misc/cgo/testso/cgoso_unix.go with 100% similarity]
misc/cgo/testso/testdata/main.go [moved from misc/cgo/testso/main.go with 92% similarity]
misc/cgo/testsovar/noso_test.go [new file with mode: 0644]
misc/cgo/testsovar/overlaydir_test.go [new file with mode: 0644]
misc/cgo/testsovar/so_test.go [new file with mode: 0644]
misc/cgo/testsovar/testdata/cgoso.go [moved from misc/cgo/testsovar/cgoso.go with 100% similarity]
misc/cgo/testsovar/testdata/cgoso_c.c [moved from misc/cgo/testsovar/cgoso_c.c with 100% similarity]
misc/cgo/testsovar/testdata/cgoso_c.h [moved from misc/cgo/testsovar/cgoso_c.h with 100% similarity]
misc/cgo/testsovar/testdata/main.go [moved from misc/cgo/testsovar/main.go with 92% similarity]
src/cmd/dist/test.go