]> diplodocus.org Git - nmh/blobdiff - test/manpages/test-manpages
Merge branch 'format-test'
[nmh] / test / manpages / test-manpages
index ce7d44381c26e5637d496b22637c8bf98a880717..3459a9e43e8c8a65aeaaff3b4b96d0c8f4d3bdbf 100755 (executable)
@@ -31,8 +31,15 @@ actual=$MH_TEST_DIR/$$.actual
 rm -f "$expected" "$actual"
 touch "$expected" "$actual"
 
+#### If the prefix is too long, groff will report that it can't break
+#### the `aliasfiles' line in ali.1.
+length=`echo $prefix | awk '{print length($0)}'`
+[ $length -gt 35 ]  &&  suppress_break_warning=-Wbreak
+
+warnings="-ww $suppress_break_warning"
+
 for manpage in man?/*.?; do
-  groff -Tutf8 -mandoc -ww "$manpage" > /dev/null 2>>"$actual"
+  groff -Tutf8 -mandoc $warnings "$manpage" > /dev/null 2>>"$actual"
 done
 
 check "$expected" "$actual"