[pkg-go] autopkgtest

Michael Hudson-Doyle michael.hudson at canonical.com
Fri May 20 04:51:17 UTC 2016


On 20 May 2016 at 16:24, Michael Hudson-Doyle
<michael.hudson at canonical.com> wrote:
>
> Yeah, I didn't know this automatic test control file thing was
> possible! That's cool. I think a go one only needs to run something
> like:
>
> GOPATH=/usr/share/gocode go test -short $(perl
> -MDebian::Debhelper::Dh_Buildsystems -e 'buildsystems_init(); my $bs =
> load_buildsystem("golang"); print(join " ", $bs->get_targets(),
> "\n");')

Oh, this doesn't quite work does it, because you want the influence of
the other variables that might be set in rules, like
DH_GOLANG_BUILDPKG & DH_GOLANG_EXCLUDES. Maybe just re-running the
package build in the autopkgest environment would be best, or at least
./debian/rules build. It wouldn't even be very inefficient, because
the package has to be recompiled to be tested anyway.

Cheers,
mwh



More information about the Pkg-go-maintainers mailing list