#Test-Command: txt2man debian/examples.d/start-here.txt | grep "TH untitled"
#
#Test-Command: txt2man -d "06 Nov 2018" -t start-here -r start-here-1.53 -s 1 -v
#              "very simple example for txt2man" debian/examples.d/start-here.txt
#              | grep "TH start-here" -C 60 | grep '\.SH NAME' -EC 60
#              | grep '\.SH DESCRIPTION' -EC 60 | grep '\.SH SEE ALSO' -EC 60
#              | grep '\.SH AUTHOR' -EC 60 | grep 'John Jr <jjr@example.com>' -EC 60
#              | grep '\\fBstart-here\\fP is used to demonstrate' -EC 60
#              | grep  '\.PP' -EC 60 | grep '^\.TP$' -EC 60 | grep '^\.B$' -EC 60
#
#Test-Command: bookman -p -t 'Unix Reference Manual' /usr/share/man/man1/* >
#              $AUTOPKGTEST_TMP/book.pdf 2> /dev/null; ls -lh $AUTOPKGTEST_TMP;
#              [ -s $AUTOPKGTEST_TMP/book.pdf ] || exit 1
#Depends: @, ghostscript, groff
#Restrictions: allow-stderr
#
#Test-Command: cp debian/tests/test.c $AUTOPKGTEST_TMP; cd $AUTOPKGTEST_TMP;
#              src2man test.c | grep foo; cat foobar.3 | grep -C 50 "TH foobar"

# A test for #992283
Test-Command: cp debian/tests/block.txt $AUTOPKGTEST_TMP; cd $AUTOPKGTEST_TMP;
              txt2man block.txt > block.1; man ./block.1 > text; cat text;
              echo -e "\n\nSearching for '.fam C', '.fam T' and a title in a block:\n";
              grep -E '^\.fam C$' block.1; grep -E '^\.fam T$' block.1;
              grep '^....ORD..DAY..WHAT$' block.1
Depends: @, man-db
