[pkg-go] Bug#898652: golang-github-go-debos-fakemachine: autopkgtest doesn't actually run any tests

Simon McVittie smcv at collabora.com
Mon May 14 18:40:08 BST 2018

Source: golang-github-go-debos-fakemachine
Version: 0.0~git20180126.e307c2f-1
Severity: normal
Tags: patch

The tests for this package appear to pass, but if you look more closely,
there is very little actual testing going on:

autopkgtest [02:05:31]: test command1: /usr/bin/dh_golang_autopkgtest
autopkgtest [02:05:31]: test command1: [-----------------------
[info] Testing github.com/go-debos/fakemachine...
[info] Source code installed by binary package, overriding dh_auto_configure...
dh build --buildsystem=golang --with=golang
   debian/rules override_dh_auto_test
make[1]: Entering directory '/tmp/autopkgtest-lxc.6okl3mgq/downtmp/autopkgtest_tmp'
# Disable auto tests at build time
# fakemachine need to be able to use /dev/kvm
make[1]: Leaving directory '/tmp/autopkgtest-lxc.6okl3mgq/downtmp/autopkgtest_tmp'
   create-stamp debian/debhelper-build-stamp
autopkgtest [02:05:33]: test command1: -----------------------]
autopkgtest [02:05:33]: test command1:  - - - - - - - - - - results - - - - - - - - - -
command1             PASS

I suspect autopkgtest-pkg-go is not appropriate for this particular

I attach a simple smoke-test which tries to detect whether fakemachine
should be expected to be able to operate or not. This would hopefully have
detected the missing runtime dependencies.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-an-autopkgtest-smoke-test.patch
Type: text/x-diff
Size: 3507 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-go-maintainers/attachments/20180514/d2abbb5a/attachment.patch>

More information about the Pkg-go-maintainers mailing list