r280085 - in /trunk: gcc/go/gofrontend/MERGE li...
ian@gcc.gnu.org
ian@gcc.gnu.org
Thu Jan 9 23:14:00 GMT 2020
Author: ian
Date: Thu Jan 9 23:14:57 2020
New Revision: 280085
URL: https://gcc.gnu.org/viewcvs?rev=280085&root=gcc&view=rev
Log:
libgo: compile examples in _test packages
Previously if the only names defined by _test packages were examples,
the gotest script would emit an incorrect _testmain.go file.
I worked around that by marking the example_test.go files +build ignored.
This CL changes the gotest script to handle this case correctly,
and removes the now-unnecessary build tags.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/214039
Added:
trunk/libgo/go/io/ioutil/testdata/
trunk/libgo/go/io/ioutil/testdata/hello
Modified:
trunk/gcc/go/gofrontend/MERGE
trunk/libgo/go/compress/flate/example_test.go
trunk/libgo/go/compress/gzip/example_test.go
trunk/libgo/go/container/ring/example_test.go
trunk/libgo/go/crypto/sha256/example_test.go
trunk/libgo/go/database/sql/example_cli_test.go
trunk/libgo/go/database/sql/example_service_test.go
trunk/libgo/go/encoding/csv/example_test.go
trunk/libgo/go/encoding/hex/example_test.go
trunk/libgo/go/encoding/json/example_marshaling_test.go
trunk/libgo/go/encoding/json/example_text_marshaling_test.go
trunk/libgo/go/encoding/pem/example_test.go
trunk/libgo/go/encoding/xml/example_marshaling_test.go
trunk/libgo/go/encoding/xml/example_text_marshaling_test.go
trunk/libgo/go/fmt/example_test.go
trunk/libgo/go/fmt/gostringer_example_test.go
trunk/libgo/go/fmt/stringer_example_test.go
trunk/libgo/go/go/types/example_test.go
trunk/libgo/go/hash/crc32/example_test.go
trunk/libgo/go/hash/example_test.go
trunk/libgo/go/html/example_test.go
trunk/libgo/go/html/template/example_test.go
trunk/libgo/go/html/template/examplefiles_test.go
trunk/libgo/go/image/draw/example_test.go
trunk/libgo/go/image/png/example_test.go
trunk/libgo/go/index/suffixarray/example_test.go
trunk/libgo/go/io/ioutil/example_test.go
trunk/libgo/go/log/syslog/example_test.go
trunk/libgo/go/math/big/example_rat_test.go
trunk/libgo/go/math/big/floatexample_test.go
trunk/libgo/go/math/bits/example_test.go
trunk/libgo/go/math/cmplx/example_test.go
trunk/libgo/go/mime/example_test.go
trunk/libgo/go/mime/quotedprintable/example_test.go
trunk/libgo/go/net/http/cookiejar/dummy_publicsuffix_test.go
trunk/libgo/go/net/http/cookiejar/example_test.go
trunk/libgo/go/net/http/httptrace/example_test.go
trunk/libgo/go/net/http/httputil/example_test.go
trunk/libgo/go/net/mail/example_test.go
trunk/libgo/go/path/filepath/example_test.go
trunk/libgo/go/runtime/trace/example_test.go
trunk/libgo/go/text/scanner/example_test.go
trunk/libgo/testsuite/gotest
More information about the Gcc-cvs
mailing list