summaryrefslogtreecommitdiff
path: root/tests/tests/sbuild-gitish
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-07-16 19:08:24 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-07-18 22:07:18 +0100
commitf5c0d33ede8a4c8f1a45ecb57923d66bc694903d (patch)
tree80416cc5d0914a90b3f22ec778c86b8c37a0bb0f /tests/tests/sbuild-gitish
parentf0005d23714948d153e4f83e9dc3bca620589a4d (diff)
test suite: sbuild-gitish: Find sbuild rune in the manpage
This avoids duplicating this rune (so the manpage can't get out of date). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/tests/sbuild-gitish')
-rwxr-xr-xtests/tests/sbuild-gitish22
1 files changed, 18 insertions, 4 deletions
diff --git a/tests/tests/sbuild-gitish b/tests/tests/sbuild-gitish
index c20bc93..c0ca927 100755
--- a/tests/tests/sbuild-gitish
+++ b/tests/tests/sbuild-gitish
@@ -2,19 +2,33 @@
set -e
. tests/lib
-t-dependencies sbuild
+t-dependencies sbuild man-db
t-restrict x-dgit-schroot-build
t-tstunt-parsechangelog
t-prep-newpackage example 1.1
+buildrune=$(
+ (export LC_ALL=C.UTF-8
+ if [ "$DGIT_TEST_INTREE" ]; then
+ make -C $DGIT_TEST_INTREE dgit-user.7.view
+ else
+ man 7 dgit-user
+ fi) | \
+ perl -ne '
+ next unless m/^ +Using sbuild$/ .. 0;
+ next unless m/^ +\%/ .. 0;
+ next if !m/\S/ .. 0;
+ s/^ +\%//;
+ print or die $!;
+ '
+)
+
cd $p
build () {
- git clean -xdf
- sbuild -c build -A --no-clean-source \
- --dpkg-source-opts='-Zgzip -z1 --format=1.0 -sn'
+ eval "$buildrune"
}
git checkout quilt-tip-1.1~0