chiark / gitweb /
test suite: Break out t-dgit-manpage
[dgit.git] / tests / lib
index 0996d3e57b8636213fec97a4eea8b4aab8ddbef1..8fd35147431f884637c195ddde9ba41b34cfd58f 100644 (file)
--- 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 $*
 }