Bug#742242: please provide a simple way to run simple tests locally without upgrading the system.

Charles Plessy plessy at debian.org
Fri Mar 21 07:40:44 UTC 2014

Hi Martin,

thanks for the quick answer !

Le Fri, Mar 21, 2014 at 08:16:19AM +0100, Martin Pitt a écrit :
> It shouldn't actually be invasive; as long as you already installed
> the test dependencies, it won't actually install anything. Adt-run
> with null already works as user if you run it on a source tree, like
>   adt-run -B ./ --- null   # for a built source tree
>   adt-run -B .// --- null   # for an unbuilt source tree
> But indeed if you run it on a .dsc, it will always try to apt-get
> install dpkg-dev. I'll add a check to avoid this step if it's already
> available.

On my system it still tries to call dpkg.

$ LC_ALL=C adt-run -B ./ --- null
adt-run [2014-03-21 16:30:35]: version 2.10
adt-run: $ vserver: adt-virt-null
adt-run: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ builds ...
adt-run: @@@@@@@@@@@@@@@@@@@@ tree tree0
adt-run: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ builds done.
adt-run: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ tests ...
adt-run: @@@@@@@@@@@@@@@@@@@@ test tree tree0
adt-run: @@@@@@@@@@ run_tests ...
adt-run: testing package bedtools version 2.19.1-1
adt-run [2014-03-21 16:30:35]: & tree0t-upstream: preparing
adt-run: & tree0t-upstream:  processing dependency @
adt-run: & tree0t-upstream:   synthesised dependency bedtools
adt-run: & tree0t-upstream:   synthesised dependency bedtools-test
adt-run: dependencies: install-deps: running ['/usr/lib/pbuilder/pbuilder-satisfydepends-classic', '--binary-all', '--internal-chrootexec', '/tmp/tmpciRZYX/satdep-auxverb', '-c', '/tmp/tmpciRZYX/deps.dsc']
 -> Attempting to parse the build-deps 
 -> Considering build-dep bedtools
   -> Trying bedtools
 -> Considering build-dep bedtools-test
   -> Trying bedtools-test
 -> Installing  bedtools bedtools-test
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
 -> Trying to fix apt error
dpkg: error: requested operation requires superuser privilege
E: Unrecoverable error installing build-dependencies.
blame: arg:./
badpkg: dependency install failed, exit code 1
adt-run: erroneous package: dependency install failed, exit code 1

I am using autopkgtest version 2.10.

My test control file contains only a single line:

Tests: upstream

Everything these tests need is provided by the bedtools and bedtools-test
packages: there is no need for unpacking or building source.  My goal
is that the tests can be run by the users directly, but I also would like
ci.debian.net to run them periodically.



More information about the autopkgtest-devel mailing list