summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-08-03 12:14:41 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-08-04 23:06:18 +0100
commitc85ececfb4a825fe91cf45aa8ffae69863ace473 (patch)
treed4dc1acae9f90e451f6974ba4e7ccd5ebefdaca1 /tests/lib
parent0450dc6909f1543a9515f9e686a5c01c7888073b (diff)
test suite: Break out t-dgit-manpage
No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lib b/tests/lib
index 0996d3e..8fd3514 100644
--- a/tests/lib
+++ b/tests/lib
@@ -419,6 +419,17 @@ t-dgit () {
'
}
+t-dgit-manpage () {
+ local section=$1
+ local page=$2
+ (export LC_ALL=C.UTF-8
+ if [ "$DGIT_TEST_INTREE" ]; then
+ make -C $DGIT_TEST_INTREE $page.$section.view
+ else
+ man $section $page
+ fi)
+}
+
t-diff-nogit () {
diff --exclude=.git --exclude=.pc -ruN $*
}