chiark / gitweb /
test suite: checkout: new test
[dgit.git] / tests / tests / manpages-format
index c905445ba033f24862c3101ce9f98cfba9160ea7..3f3362b6ea8e3dd429593b3ca0596a02f0a482d8 100755 (executable)
@@ -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