unit testing - `go test` for package fails but individually test run fine, and package compiles fine -
when execute go test
whole package tests fail with:
$ go test github.com/dm03514/go-edu-db/... # github.com/dm03514/go-edu-db/backends go1: internal compiler error: in read_type, @ go/gofrontend/import.cc:669 please submit full bug report, preprocessed source if appropriate. see <file:///usr/share/doc/gccgo-4.9/readme.bugs> instructions. fail github.com/dm03514/go-edu-db/backends [build failed] ? github.com/dm03514/go-edu-db/cmd [no test files] # github.com/dm03514/go-edu-db/httpd go1: internal compiler error: in read_type, @ go/gofrontend/import.cc:669 please submit full bug report, preprocessed source if appropriate. see <file:///usr/share/doc/gccgo-4.9/readme.bugs> instructions. fail github.com/dm03514/go-edu-db/httpd [build failed] ? github.com/dm03514/go-edu-db/logging [no test files]
while above tests fail go install
builds correctly , can run each of individual tests correctly:
$ go test github.com/dm03514/go-edu-db/backends/backends_test.go ok command-line-arguments 0.025s go test github.com/dm03514/go-edu-db/httpd/handlers_test.go ok command-line-arguments 0.021s
has ran before? brand new go, , around have been executing each 1 of test files individually.
the output of go build nothing
$ go build github.com/dm03514/go-edu-db/... $
go version is
$ go version go version xgcc (ubuntu 4.9-20140406-0ubuntu1) 4.9.0 20140405 (experimental) [trunk revision 209157] linux/amd64
i installed ubuntu golang
package
$ go version go version go1.2.1 linux/amd64
and getting meaningful error messages when running package tests:
$ go test github.com/dm03514/go-edu-db/..
Comments
Post a Comment