groff-commit
[Top][All Lists]
Advanced

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

[groff] 28/38: [tmac]: Regression-test Savannah #63112 (1/3).


From: G. Branden Robinson
Subject: [groff] 28/38: [tmac]: Regression-test Savannah #63112 (1/3).
Date: Mon, 3 Oct 2022 01:42:59 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit cc02a5ad0187cb6517ed7fe4c84a8f352c006091
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Oct 1 13:51:16 2022 -0500

    [tmac]: Regression-test Savannah #63112 (1/3).
    
    * tmac/tests/latin9_works: Do it.
    * tmac/tmac.am (tmac_TESTS): Run test.
    
    Test fails at this commit.
---
 ChangeLog                  |  7 +++++++
 tmac/tests/latin9_works.sh | 30 ++++++++++++++++++++++++++++++
 tmac/tmac.am               |  1 +
 3 files changed, 38 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 85147efb1..86b2e71d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-10-01  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [tmac]: Regression-test Savannah #63112 (1/3).
+
+       * tmac/tests/latin9_works: Do it.
+       * tmac/tmac.am (tmac_TESTS): Run test.
+
 2022-10-01  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/roff/troff/input.cpp: Refactor to parallelize logic in
diff --git a/tmac/tests/latin9_works.sh b/tmac/tests/latin9_works.sh
new file mode 100755
index 000000000..828c31367
--- /dev/null
+++ b/tmac/tests/latin9_works.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# Copyright (C) 2022 Free Software Foundation, Inc.
+#
+# This file is part of groff.
+#
+# groff is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# groff is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+groff="${abs_top_builddir:-.}/test-groff"
+
+input=$(printf '\\[Eu]\\[vS]\\[vs]\\[vZ]\\[vz]\\[OE]\\[oe]\\[:Y]\n')
+output=$(printf "%s\n" "$input" | "$groff" -Tlatin1 -mlatin9 \
+    | LC_ALL=C od -t c)
+printf "%s\n" "$output"
+printf "$output" \
+    | grep -Eq '^0000000 244 246 250 264 270 274 275 276 +'
+
+# vim:set ai et sw=4 ts=4 tw=72:
diff --git a/tmac/tmac.am b/tmac/tmac.am
index ceaa7e428..29e8a316f 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -195,6 +195,7 @@ tmac_TESTS = \
   tmac/tests/e_ld-works.sh \
   tmac/tests/e_line-numbering-works.sh \
   tmac/tests/e_rejects-too-short-page-lengths.sh \
+  tmac/tests/latin9_works.sh \
   tmac/tests/localization-works.sh \
   tmac/tests/pdfpic_does-not-choke-on-bad-pdfinfo-output.sh \
   tmac/tests/pdfpic_falls-back-to-PSPIC.sh \



reply via email to

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