groff-commit
[Top][All Lists]
Advanced

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

[groff] 04/05: Add regression test for latin1 change.


From: G. Branden Robinson
Subject: [groff] 04/05: Add regression test for latin1 change.
Date: Thu, 27 Jun 2019 13:38:39 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 01e65a903b1248ce67a5d6cd6ac1c83372757b85
Author: G. Branden Robinson <address@hidden>
Date:   Fri Jun 28 02:47:47 2019 +1000

    Add regression test for latin1 change.
---
 src/roff/groff/groff.am                            |  4 ++-
 .../groff/tests/on-latin1-device-oq-is-0x27.sh     | 32 ++++++++++++++++++++++
 2 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index 0835b9a..b2b3055 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -40,7 +40,9 @@ GROFF_OPTS_OUTPUT = \
 groffoptsdir = $(libprogramdir)
 groffopts_DATA = $(GROFF_OPTS_OUTPUT)
 
-groff_TESTS = src/roff/groff/tests/regression-56555.sh
+groff_TESTS = \
+  src/roff/groff/tests/regression-56555.sh \
+  src/roff/groff/tests/on-latin1-device-oq-is-0x27.sh
 TESTS += $(groff_TESTS)
 
 MOSTLYCLEANFILES += groff_opts.tmp $(GROFF_OPTS_OUTPUT)
diff --git a/src/roff/groff/tests/on-latin1-device-oq-is-0x27.sh 
b/src/roff/groff/tests/on-latin1-device-oq-is-0x27.sh
new file mode 100755
index 0000000..76076ec
--- /dev/null
+++ b/src/roff/groff/tests/on-latin1-device-oq-is-0x27.sh
@@ -0,0 +1,32 @@
+#!/usr/bin/env bash
+#
+# Copyright (C) 2019 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"
+
+expected="' = '"
+
+actual=$("$groff" -Tlatin1 <<EOF
+.pl 1v
+\[oq] = '
+EOF
+)
+
+diff -u <(echo "$expected") <(echo "$actual")
+exit $?



reply via email to

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