gbranden pushed a commit to branch master
in repository groff.

commit 6e467c23468450580b2bb49ed350b94bf9ddca2f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Mar 3 05:37:15 2026 -0600

    [eqn]: Regression-test Savannah #68115.
    
    * src/preproc/eqn/tests/neqn-smoke-test.sh: Do it.
    * src/preproc/eqn/eqn.am (eqn_TESTS): Run test.
    
    Test fails at this commit.
---
 ChangeLog                                |  7 ++++++
 src/preproc/eqn/eqn.am                   |  1 +
 src/preproc/eqn/tests/neqn-smoke-test.sh | 42 ++++++++++++++++++++++++++++++++
 3 files changed, 50 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 356eb0ad3..6f7039825 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-03-03  G. Branden Robinson <[email protected]>
+
+       [eqn]: Regression-test Savannah #68115.
+
+       * src/preproc/eqn/tests/neqn-smoke-test.sh: Do it.
+       * src/preproc/eqn/eqn.am (eqn_TESTS): Run test.
+
 Version 1.24.0 released 2026-02-28
 ==================================
 
diff --git a/src/preproc/eqn/eqn.am b/src/preproc/eqn/eqn.am
index 5c835620f..3e9e95012 100644
--- a/src/preproc/eqn/eqn.am
+++ b/src/preproc/eqn/eqn.am
@@ -73,6 +73,7 @@ neqn: $(top_srcdir)/src/preproc/eqn/neqn.sh 
$(SH_DEPS_SED_SCRIPT)
 
 eqn_TESTS = \
   src/preproc/eqn/tests/diagnostics-report-correct-line-numbers.sh \
+  src/preproc/eqn/tests/neqn-smoke-test.sh \
   src/preproc/eqn/tests/parameters-can-be-set-and-reset.sh \
   src/preproc/eqn/tests/passes-through-input-with-eighth-bit-set.sh
 TESTS += $(eqn_TESTS)
diff --git a/src/preproc/eqn/tests/neqn-smoke-test.sh 
b/src/preproc/eqn/tests/neqn-smoke-test.sh
new file mode 100755
index 000000000..435bd18af
--- /dev/null
+++ b/src/preproc/eqn/tests/neqn-smoke-test.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+#
+# Copyright 2026 G. Branden Robinson
+#
+# This file is part of groff, the GNU roff typesetting system.
+#
+# 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/>.
+
+neqn="${abs_top_builddir:-.}/neqn"
+
+# Unit-test basic neqn execution.  Regression-test Savannah #68115.
+
+input='.
+.EQ
+P V mark = n R T
+.EN
+.sp
+.EQ
+E lineup = m c sup 2
+.EN
+.'
+
+output=$(echo "$input" | "$neqn")
+printf "%s\n" "$output"
+# At the time of this writing, GNU eqn initializes the `MK` register
+# even if a mark isn't used.  Our input ensures that it is.
+#
+# There is a space and a tab between the brackets.
+printf "%s\n" "$output" | grep -q '^\.[        ]*nr MK'
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to