gbranden pushed a commit to branch master
in repository groff.

commit f102dcab0192b55cd976e1d975e71f77b1ab75bd
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jan 5 11:17:46 2026 -0600

    [chem]: Add smoke test.
    
    * contrib/chem/tests/smoke-test.sh: Add (directory and) test script.
    * contrib/chem/chem.am: Add script to new `chem_TESTS` macro and append
      that macro to `TESTS` macro, so that "make check" runs the test.
      Append `chem_TESTS` to `EXTRA_DIST`, so that the test script ships in
      distribution archives.
    
    Test fails at this commit, because my brain fell out of my head in
    commit 5d777599d5, 29 December, and nothing was there to catch it.
---
 contrib/chem/ChangeLog           |  8 ++++++++
 contrib/chem/chem.am             |  4 ++++
 contrib/chem/tests/smoke-test.sh | 30 ++++++++++++++++++++++++++++++
 3 files changed, 42 insertions(+)

diff --git a/contrib/chem/ChangeLog b/contrib/chem/ChangeLog
index b7d33216a..5a90f821c 100644
--- a/contrib/chem/ChangeLog
+++ b/contrib/chem/ChangeLog
@@ -1,3 +1,11 @@
+2026-01-05  G. Branden Robinson <[email protected]>
+
+       * tests/smoke-test.sh: Add (directory and) test script.
+       * chem.am: Add script to new `chem_TESTS` macro and append that
+       macro to `TESTS` macro, so that "make check" runs the test.
+       Append `chem_TESTS` to `EXTRA_DIST`, so that the test script
+       ships in distribution archives.
+
 2025-12-31  G. Branden Robinson <[email protected]>
 
        * chem.am (EXTRA_DIST): Ship "COPYRIGHT" file in distribution
diff --git a/contrib/chem/chem.am b/contrib/chem/chem.am
index 388d8e139..4d267b6dd 100644
--- a/contrib/chem/chem.am
+++ b/contrib/chem/chem.am
@@ -56,6 +56,10 @@ EXTRA_DIST += \
   contrib/chem/examples/cstr-122/README \
   contrib/chem/examples/README
 
+chem_TESTS = contrib/chem/tests/smoke-test.sh
+TESTS += $(chem_TESTS)
+EXTRA_DIST += $(chem_TESTS)
+
 man1_MANS += contrib/chem/chem.1
 
 chem: $(chem_srcdir)/chem.pl $(SH_DEPS_SED_SCRIPT)
diff --git a/contrib/chem/tests/smoke-test.sh b/contrib/chem/tests/smoke-test.sh
new file mode 100755
index 000000000..62724ccc9
--- /dev/null
+++ b/contrib/chem/tests/smoke-test.sh
@@ -0,0 +1,30 @@
+#!/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/>.
+#
+
+groff="${abs_top_builddir:-.}/test-groff"
+
+input='.
+.cstart
+.cend
+.'
+
+printf '%s\n' "$input" | "$groff" -jz
+
+# 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