gbranden pushed a commit to branch master
in repository groff.
commit 0ad545c24089d0beff8dcb691e32fa19a37aae59
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Feb 3 04:23:19 2026 -0600
[chem]: Make test script explain skipping.
---
contrib/chem/tests/smoke-test.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/contrib/chem/tests/smoke-test.sh b/contrib/chem/tests/smoke-test.sh
index 4283e3e01..0279babf3 100755
--- a/contrib/chem/tests/smoke-test.sh
+++ b/contrib/chem/tests/smoke-test.sh
@@ -16,12 +16,14 @@
#
# 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"
-if ! perl -e 'use Math::Trig;' 2> /dev/null
+module=Math::Trig
+
+if ! perl -e "use $module;" 2> /dev/null
then
+ echo "Perl module $module not available; skipping" >&2
exit 77 # skip
fi
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit