File: control

package info (click to toggle)
txt2man 1.7.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292 kB
  • sloc: sh: 1,687; makefile: 21; ansic: 5
file content (26 lines) | stat: -rw-r--r-- 1,452 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Test-Command: txt2man debian/examples.d/start-here.txt | egrep "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
              | egrep "TH start-here" -C 60 | egrep '\.SH NAME' -C 60
              | egrep '\.SH DESCRIPTION' -C 60 | egrep '\.SH SEE ALSO' -C 60
              | egrep '\.SH AUTHOR' -C 60 | egrep 'John Jr <jjr@example.com>' -C 60
              | egrep '\\fBstart-here\\fP is used to demonstrate' -C 60
              | egrep '\.PP' -C 60 | egrep '^\.TP$' -C 60 | egrep '^\.B$' -C 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 | egrep -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";
              egrep '^\.fam C$' block.1; egrep '^\.fam T$' block.1;
              egrep '^....ORD..DAY..WHAT$' block.1
Depends: @, man-db