groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 06/06: Tweak regression test internals.


From: G. Branden Robinson
Subject: [groff] 06/06: Tweak regression test internals.
Date: Sat, 15 May 2021 20:47:23 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 4c9ad4ae44055fa18f706c1523489ace8fbfc252
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun May 16 09:45:23 2021 +1000

    Tweak regression test internals.
    
    * tmac/tests/an-old_AT-and-UC-footer-saved-and-restored.sh: Tweak to be
      more helpful when troubleshooting exasperating header/footer problems
      as in Savannah #60609.
---
 ChangeLog                                           |  6 ++++++
 .../an-old_AT-and-UC-footer-saved-and-restored.sh   | 21 +++++++++++----------
 2 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 082dc54..00507b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2021-05-16  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       * tmac/tests/an-old_AT-and-UC-footer-saved-and-restored.sh:
+       Tweak to be more helpful when troubleshooting exasperating
+       header/footer problems as in Savannah #60609.
+
+2021-05-16  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        [man]: Fix missing page footers when continuously rendering
        multiple documents.  Resolving this uncovered entangled header
        and footer management bugs with batch processing even when _not_
diff --git a/tmac/tests/an-old_AT-and-UC-footer-saved-and-restored.sh 
b/tmac/tests/an-old_AT-and-UC-footer-saved-and-restored.sh
index dfcd79d..fd3164f 100755
--- a/tmac/tests/an-old_AT-and-UC-footer-saved-and-restored.sh
+++ b/tmac/tests/an-old_AT-and-UC-footer-saved-and-restored.sh
@@ -50,54 +50,55 @@ EXAMPLE_UCB_PAGE='.TH ucb 1 2020-01-16 "groff test suite"
 ucb \- blow up Death Star'
 
 # We turn off continuous rendering (-rcR=0) so that the page footers are
-# visible in nroff mode.  We turn on continuous numbering so we can tell
+# numbered.  We turn on continuous page numbering (-rC1) so we can tell
 # that the footers are on the expected pages.
-
-OUTPUT=$(printf "%s\n" \
+INPUT=$(printf "%s\n" \
     "$EXAMPLE_ATT_PAGE" \
     "$EXAMPLE_FSF_PAGE" \
     "$EXAMPLE_WFJ_PAGE" \
     "$EXAMPLE_GNU_PAGE" \
     "$EXAMPLE_UCB_PAGE" \
     "$EXAMPLE_GNU_PAGE" \
-    | "$groff" -Tascii -P-cbou -man -rC1 -rcR=0)
+)
+
+OUTPUT=$(echo "$INPUT" | "$groff" -Tascii -P-cbou -man -rcR=0 -rC1)
 
 FAIL=
 
 if ! echo "$OUTPUT" | grep -qE '7th Edition +2020-01-16 +1'
 then
     FAIL=yes
-    echo "att (.AT) test failed" >&2
+    echo "AT&T (.AT) footer test failed" >&2
 fi
 
 if ! echo "$OUTPUT" | grep -qE 'groff test suite +2020-01-16 +2'
 then
     FAIL=yes
-    echo "FSF test failed" >&2
+    echo "FSF test footer failed" >&2
 fi
 
 if ! echo "$OUTPUT" | grep -qE '3rd Berkeley Distribution +2020-01-16 +3'
 then
     FAIL=yes
-    echo "WFJ (.UC) test failed" >&2
+    echo "WFJ (.UC) footer test failed" >&2
 fi
 
 if ! echo "$OUTPUT" | grep -qE 'groff test suite +2020-01-16 +4'
 then
     FAIL=yes
-    echo "1st GNU test failed" >&2
+    echo "1st GNU footer test failed" >&2
 fi
 
 if ! echo "$OUTPUT" | grep -qE '4.4 Berkeley Distribution +2020-01-16 +5'
 then
     FAIL=yes
-    echo "UCB (.UC) test failed" >&2
+    echo "UCB (.UC) footer test failed" >&2
 fi
 
 if ! echo "$OUTPUT" | grep -qE 'groff test suite +2020-01-16 +6'
 then
     FAIL=yes
-    echo "2nd GNU test failed" >&2
+    echo "2nd GNU footer test failed" >&2
 fi
 
 test -z "$FAIL"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]