[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 36/78: tmac/tests/s_PN-works.sh: Report output.
From: |
G. Branden Robinson |
Subject: |
[groff] 36/78: tmac/tests/s_PN-works.sh: Report output. |
Date: |
Fri, 7 Apr 2023 12:17:53 -0400 (EDT) |
gbranden pushed a commit to branch branden-2023-04-07
in repository groff.
commit 3f8ce39861ed302cea800b7aae9322877b97fee5
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Apr 5 20:05:30 2023 -0500
tmac/tests/s_PN-works.sh: Report output.
...and revise code style to follow more recent test script conventions.
---
tmac/tests/s_PN-works.sh | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/tmac/tests/s_PN-works.sh b/tmac/tests/s_PN-works.sh
index 1c726342a..ab95f7967 100755
--- a/tmac/tests/s_PN-works.sh
+++ b/tmac/tests/s_PN-works.sh
@@ -24,14 +24,12 @@ groff="${abs_top_builddir:-.}/test-groff"
#
# Ensure retention of superfluous but fossilized register PN.
-EXAMPLE=\
-'.bp 2
+input='.bp 2
.LP
-This is page \n[PN].
-'
+This is page \n[PN].'
-printf "%s" "$EXAMPLE" \
- | "$groff" -Tascii -P-cbou -ms \
- | grep -Fqx 'This is page 2.'
+output=$(printf "%s\n" "$input" | "$groff" -ms -Tascii -P-cbou)
+echo "$output"
+echo "$output" | grep -Fqx 'This is page 2.'
# vim:set ai et sw=4 ts=4 tw=72:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 36/78: tmac/tests/s_PN-works.sh: Report output.,
G. Branden Robinson <=