chiark / gitweb /
git-debrebase: merge: test suite: Drop check of no wreckage save
[dgit.git] / tests / tests / manpages-format
index c905445ba033f24862c3101ce9f98cfba9160ea7..7ba2f9df3f1ae11703d9564991b0108d5dd4187a 100755 (executable)
@@ -7,7 +7,7 @@ t-dependencies man-db make groff git-debrebase
 
 cd $root
 
-printenv |grep MAKE ||: |sort
+printenv |grep MAKE ||: |t-sort
 manpages=$(MAKEFLAGS= MAKELEVEL= make list-manpages)
 
 export MANWIDTH=80
@@ -23,7 +23,7 @@ run_man () {
 }
 
 for roff in $manpages; do
-       for fmt in txt; do
+       for fmt in txt ps; do
                >$tmp/$roff.$fmt-expected
        done
 done
@@ -37,12 +37,14 @@ not_egrep_vxPf () {
        perl -ne '
                BEGIN () {
                        open PATS, shift @ARGV or die $!;
-                       $re = join "|", map { chomp; qr{^(?:$_)$} } <PATS>;
+                       $re = join "|", map { chomp; qr{^(?:$_)$} }
+                               qr{^(?=a)b}, <PATS>;
+                       print STDERR "RE $re\n";
                }
                next if m{$re};
                print STDERR "unexpected: $_";
                $bad = 1;
-               END { die "unexpected, re= $re\n" if $bad; }
+               END { die "unexpected errors\n" if $bad; }
        ' "$@"
 }
 
@@ -67,6 +69,10 @@ for roff in $manpages; do
        prep txt
        run_man
        check
+
+       prep ps
+       run_man -Tps
+       check
 done
 
 t-ok