gbranden pushed a commit to branch master
in repository groff.
commit 7aeddd6673efcb4dffc78a1b40ae7055c3448f38
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Nov 2 23:29:31 2026 -0600
[soelim]: Regression-test Savannah #68719.
* src/preproc/soelim/tests/r-option-works.sh: New file; do it.
* src/preproc/soelim/soelim.am: Update `soelim_TESTS` to run test.
Test fails at this commit.
---
ChangeLog | 8 ++++++
src/preproc/soelim/soelim.am | 1 +
src/preproc/soelim/tests/r-option-works.sh | 42 ++++++++++++++++++++++++++++++
3 files changed, 51 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 77c54c88c..f8d1db197 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-11-02 G. Branden Robinson <[email protected]>
+
+ [soelim]: Regression-test Savannah #68719.
+
+ * src/preproc/soelim/tests/r-option-works.sh: New file; do it.
+ * src/preproc/soelim/soelim.am: Update `soelim_TESTS` to run
+ test.
+
2026-11-02 G. Branden Robinson <[email protected]>
* src/preproc/soelim/soelim.cpp (do_file): Trivially refactor.
diff --git a/src/preproc/soelim/soelim.am b/src/preproc/soelim/soelim.am
index b359e304e..1e219316a 100644
--- a/src/preproc/soelim/soelim.am
+++ b/src/preproc/soelim/soelim.am
@@ -27,6 +27,7 @@ soelim_TESTS = \
src/preproc/soelim/tests/produces-accurate-lf-requests.sh \
src/preproc/soelim/tests/smoke-test.sh \
src/preproc/soelim/tests/space-in-argument-works.sh \
+ src/preproc/soelim/tests/r-option-works.sh \
src/preproc/soelim/tests/t-option-works.sh \
src/preproc/soelim/tests/x-option-works.sh
TESTS += $(soelim_TESTS)
diff --git a/src/preproc/soelim/tests/r-option-works.sh
b/src/preproc/soelim/tests/r-option-works.sh
new file mode 100755
index 000000000..b212b0189
--- /dev/null
+++ b/src/preproc/soelim/tests/r-option-works.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/>.
+
+soelim="${abs_top_builddir:-.}/soelim"
+
+fail=
+
+wail () {
+ echo "...FAILED" >&2
+ fail=yes
+}
+
+output=$(printf 'a' | "$soelim" -r)
+
+echo "checking that soelim's '-r' option produces no 'lf' requests'" >&2
+echo "$output" | grep -Fq '.lf' && wail
+
+output_od=$(printf 'a' | "$soelim" -r | od -c)
+printf '%s\n' "$output_od"
+
+echo "checking that soelim's '-r' does not add newline at EOF" >&2
+printf '%s\n' "$output_od" | grep -qx '0* *a' || wail
+
+test -z "$fail"
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit