[pkg-go] Why we install the test files in dev pkg(was: Bug#870643: golang-github-pierrec-lz4-dev: please split off test data)
Martín Ferrari
tincho at tincho.org
Fri Aug 4 06:58:47 UTC 2017
On 04/08/17 04:46, Shengjing Zhu wrote:
> I'm wondering why we install the *_test.go files in the *-dev binary package.
> IMHO, other package won't import the test files from *-dev package.
I am not sure if this was ever discussed, but I kind of like the tests
being there in case I want to run them. It is the same for scritping
languages like perl and python, tests are installed.
> And the CI system is to test building the src package from scratch. It
> doesn't run `go test ./...` from the -dev package.
> One doubt is that how the autopkgtest run for -dev pkg. Does it just
> run again the `go test` like CI for src pkg?
CI.debian.net uses autopkgtest, which in turn uses these installed
_test.go files to run the tests.
--
Martín Ferrari (Tincho)
More information about the Pkg-go-maintainers
mailing list