gbranden pushed a commit to branch master
in repository groff.
commit 12e47472efc24542b300bce10e3b9ecb4967cb1a
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jan 19 17:25:27 2026 -0600
[glilypond]: Add smoke test.
* contrib/glilypond/tests/smoke-test.sh: Add (directory and) test
script.
* contrib/glilypond/glilypond.am: Add script to new `glilypond_TESTS`
macro and append that macro to `TESTS` macro, so that "make check"
runs the test. Append `glilypond_TESTS` to `EXTRA_DIST`, so that the
test script ships in distribution archives.
---
contrib/glilypond/ChangeLog | 10 ++++++++++
contrib/glilypond/glilypond.am | 4 ++++
contrib/glilypond/tests/smoke-test.sh | 36 +++++++++++++++++++++++++++++++++++
3 files changed, 50 insertions(+)
diff --git a/contrib/glilypond/ChangeLog b/contrib/glilypond/ChangeLog
index 2e3ba07db..f54b49c18 100644
--- a/contrib/glilypond/ChangeLog
+++ b/contrib/glilypond/ChangeLog
@@ -1,3 +1,13 @@
+2026-01-19 G. Branden Robinson <[email protected]>
+
+ [glilypond]: Add smoke test.
+
+ * tests/smoke-test.sh: Add (directory and) test script.
+ * glilypond.am: Add script to new `glilypond_TESTS` macro and
+ append that macro to `TESTS` macro, so that "make check" runs
+ the test. Append `glilypond_TESTS` to `EXTRA_DIST`, so that the
+ test script ships in distribution archives.
+
2025-12-20 G. Branden Robinson <[email protected]>
* README.txt: Rename this...
diff --git a/contrib/glilypond/glilypond.am b/contrib/glilypond/glilypond.am
index 5006a417c..22ef90d3a 100644
--- a/contrib/glilypond/glilypond.am
+++ b/contrib/glilypond/glilypond.am
@@ -41,6 +41,10 @@ EXTRA_DIST += \
contrib/glilypond/glilypond.1.man \
contrib/glilypond/glilypond.pl
+glilypond_TESTS = contrib/glilypond/tests/smoke-test.sh
+TESTS += $(glilypond_TESTS)
+EXTRA_DIST += $(glilypond_TESTS)
+
# create perl executable 'glilypond', being stored into 'bindir'
glilypond: $(glilypond_srcdir)/glilypond.pl $(SH_DEPS_SED_SCRIPT)
$(AM_V_GEN)$(RM) $@ \
diff --git a/contrib/glilypond/tests/smoke-test.sh
b/contrib/glilypond/tests/smoke-test.sh
new file mode 100755
index 000000000..9da632626
--- /dev/null
+++ b/contrib/glilypond/tests/smoke-test.sh
@@ -0,0 +1,36 @@
+#!/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/>.
+#
+
+glilypond="${abs_top_builddir:-.}/glilypond"
+groff="${abs_top_builddir:-.}/test-groff"
+
+if ! perl -e 'use File::HomeDir;' 2> /dev/null
+then
+ exit 77 # skip
+fi
+
+input='.
+.lilypond start
+.lilypond end
+.'
+
+printf '%s\n' "$input" | "$glilipond" | "$groff" -z
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit