This avoids lintian complaining about our stupid test packages.
We need the stunt debuild because debuild likes to launder the
environment, removing our stunt lintian from PATH !
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Fix dgit-repos-policy-debian which broke due to recent git setting
GIT_ALTERNATE_OBJECT_DIRECTORIES in the pre-receive-hook.
* Fix dgit-repos-policy-debian which broke due to recent git setting
GIT_ALTERNATE_OBJECT_DIRECTORIES in the pre-receive-hook.
+ Test suite:
+ * Provide and use stunt lintian and debuild, to avoid lintian
+ complaining about our stupid test packages.
+
--
dgit (2.11) unstable; urgency=medium
--
dgit (2.11) unstable; urgency=medium
t-tstunt dpkg-parsechangelog Dpkg/Changelog/Parse.pm
}
t-tstunt dpkg-parsechangelog Dpkg/Changelog/Parse.pm
}
+t-tstunt-lintian () {
+ t-tstunt lintian
+}
+
+t-tstunt-debuild () {
+ : ${DGIT_TEST_REAL_DEBUILD:=$(type -p debuild)}
+ export DGIT_TEST_REAL_DEBUILD
+ t-tstunt debuild
+}
+
t-incoming-dsc () {
local dsc=${p}_${v}.dsc
incoming_dsc=$tmp/incoming/$dsc
t-incoming-dsc () {
local dsc=${p}_${v}.dsc
incoming_dsc=$tmp/incoming/$dsc
. tests/lib
t-tstunt-parsechangelog
. tests/lib
t-tstunt-parsechangelog
+t-tstunt-debuild
+t-tstunt-lintian
t-archive-none example
t-git-none
t-archive-none example
t-git-none
--- /dev/null
+#!/bin/bash
+set -e
+echo "DGIT TEST STUNT DEBUILD $*" >&2
+"${DGIT_TEST_REAL_DEBUILD}" --preserve-env --preserve-envvar PATH "$@"
--- /dev/null
+#!/bin/sh
+echo >&2 'W: dgit test suite stunt lintian detects no problems'
+exit 0