gbranden pushed a commit to branch master
in repository groff.
commit 4e0c7e1b60ec9fcbdf828e4d6eff930ea43bec64
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Mar 18 09:13:16 2026 -0500
[eqn]: Add test of neqn's wrapping of eqn.
Their versions should match.
* src/preproc/eqn/tests/neqn-finds-matching-eqn.sh: Add test.
* src/preproc/eqn/eqn.am (eqn_TESTS): Run test.
---
ChangeLog | 8 +++++
src/preproc/eqn/eqn.am | 1 +
src/preproc/eqn/tests/neqn-finds-matching-eqn.sh | 37 ++++++++++++++++++++++++
3 files changed, 46 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index f97c94e91..6bf3a977b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-03-18 G. Branden Robinson <[email protected]>
+
+ [eqn]: Add test of neqn's wrapping of eqn; their versions should
+ match.
+
+ * src/preproc/eqn/tests/neqn-finds-matching-eqn.sh: Add test.
+ * src/preproc/eqn/eqn.am (eqn_TESTS): Run test.
+
2026-03-18 G. Branden Robinson <[email protected]>
[troff]: When issuing warning diagnostic messages, report the
diff --git a/src/preproc/eqn/eqn.am b/src/preproc/eqn/eqn.am
index 8aa223f40..b94ac37ce 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-finds-matching-eqn.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
diff --git a/src/preproc/eqn/tests/neqn-finds-matching-eqn.sh
b/src/preproc/eqn/tests/neqn-finds-matching-eqn.sh
new file mode 100755
index 000000000..de1a4e94e
--- /dev/null
+++ b/src/preproc/eqn/tests/neqn-finds-matching-eqn.sh
@@ -0,0 +1,37 @@
+#!/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/>.
+
+eqn="${abs_top_builddir:-.}/eqn"
+neqn="${abs_top_builddir:-.}/neqn"
+
+# Test our test harness; the `neqn` script should find an `eqn`
+# executable of the same version.
+
+GROFF_BIN_PATH="$abs_top_builddir"
+export GROFF_BIN_PATH
+
+eqn_version=$("$eqn" --version | head -n 1)
+neqn_version=$("$neqn" --version | head -n 1)
+
+echo "$neqn_version"
+echo "$eqn_version"
+
+test "$neqn_version" = "$eqn_version"
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit