Commit 439c0017 authored by Mattia Rizzolo's avatar Mattia Rizzolo

pbuilder: add new hook to run autopkgtest, if available

parent 7c982469
#!/bin/sh
# Run autopkgtests (DEP 8), if available
cd /tmp/buildd/*/debian/..
if grep autopkgtest debian/control && [ -d debian/tests ] && [ -e debian/tests/control ] ; then
if ! sed -i 's/101/0/' /usr/sbin/policy-rc.d ; then
true
fi
apt-get install autopkgtest -y --force-yes
echo @@@@@@@@@@@@@@@@@@@@@@@@@@ RUNNING AUTOPKGTESTS @@@@@@@@@@@@@@@@@@@@@@@@@@@@
adt-run -B ../*.deb --built-tree=. --- null
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment