| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # |
| 3 | # Copyright 2023 G. Branden Robinson |
| 4 | # |
| 5 | # This file is part of mm, a reimplementation of the Documenter's |
| 6 | # Workbench (DWB) troff memorandum macro package for use with GNU troff. |
| 7 | # |
| 8 | # groff is free software; you can redistribute it and/or modify it under |
| 9 | # the terms of the GNU General Public License as published by the Free |
| 10 | # Software Foundation, either version 3 of the License, or |
| 11 | # (at your option) any later version. |
| 12 | # |
| 13 | # groff is distributed in the hope that it will be useful, but WITHOUT |
| 14 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 15 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 16 | # for more details. |
| 17 | # |
| 18 | # You should have received a copy of the GNU General Public License |
| 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | # |
| 21 | |
| 22 | groff="${abs_top_builddir:-.}/test-groff" |
| 23 | |
| 24 | # Regression-test Savannah #63695. |
| 25 | # |
| 26 | # One vertical line of space should follow the letter header. |
| 27 | |
| 28 | input='.ND "17 May 2023" |
| 29 | .WA "Epi G. Netic" "Head of Research" |
| 30 | 123 Main Street |
| 31 | Anytown, ST 10101 |
| 32 | .WE |
| 33 | .IA "Rufus T. Arbogast" "Guru" |
| 34 | 456 Elsewhere Avenue |
| 35 | Nirvana, PA 20406 |
| 36 | .IE |
| 37 | .LT |
| 38 | .P |
| 39 | We have a research leak! |
| 40 | .FC |
| 41 | .SG |
| 42 | .NS |
| 43 | sundry careless people |
| 44 | .NE' |
| 45 | |
| 46 | output=$(echoscip-shell system . . echo. "$input" | "$groff" -mm -Tascii -P-cbou) |
| 47 | echoscip-shell system . . echo. "$output" |
| 48 | echoscip-shell system . . echo. "$output" \ |
| 49 | | sedscip-shell system . . sed. -n -e '/.*Nirvana/{scip-shell filesystem . . `/.*Nirvana/{`.' -e 'n;/^$/{' -e 'n;p;' -e '}' -e '}' \ |
| 50 | | grepscip-shell system . . grep. -q leak |
| 51 | |
| 52 | # vim:set ai et sw=4 ts=4 tw=72: |