groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 09/15: [rfc1345]: Add smoke test.


From: G. Branden Robinson
Subject: [groff] 09/15: [rfc1345]: Add smoke test.
Date: Wed, 3 Feb 2021 02:58:39 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 36f6075496b1a574e6d3bc4cfe3f57534f106389
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Feb 3 02:57:02 2021 +1100

    [rfc1345]: Add smoke test.
    
    * contrib/rfc1345/tests/rfc1345-smoke-test.sh: Add test.
    * contrib/rfc1345/rfc1345.am (rfc1345_TESTS, TESTS, EXTRA_DIST): Run
      test.
---
 ChangeLog                                   |  8 ++++++++
 contrib/rfc1345/rfc1345.am                  |  5 +++++
 contrib/rfc1345/tests/rfc1345-smoke-test.sh | 31 +++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 6201c88..8ec5ea3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2021-02-03  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       [rfc1345]: Add smoke test.
+
+       * contrib/rfc1345/tests/rfc1345-smoke-test.sh: Add test.
+       * contrib/rfc1345/rfc1345.am (rfc1345_TESTS, TESTS, EXTRA_DIST):
+       Run test.
+
+2021-02-03  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        * test-groff.in: Add support for rfc1345.tmac.
 
 2021-02-02  G. Branden Robinson <g.branden.robinson@gmail.com>
diff --git a/contrib/rfc1345/rfc1345.am b/contrib/rfc1345/rfc1345.am
index facec5e..7a23424 100644
--- a/contrib/rfc1345/rfc1345.am
+++ b/contrib/rfc1345/rfc1345.am
@@ -24,6 +24,11 @@ man7_MANS += contrib/rfc1345/groff_rfc1345.7
 rfc1345tmacdir = $(tmacdir)
 dist_rfc1345tmac_DATA = contrib/rfc1345/rfc1345.tmac
 
+rfc1345_TESTS= \
+  contrib/rfc1345/tests/rfc1345-smoke-test.sh
+TESTS += $(rfc1345_TESTS)
+EXTRA_DIST += $(rfc1345_TESTS)
+
 EXTRA_DIST += \
   contrib/rfc1345/groff_rfc1345.7.man \
   contrib/rfc1345/COPYRIGHT
diff --git a/contrib/rfc1345/tests/rfc1345-smoke-test.sh 
b/contrib/rfc1345/tests/rfc1345-smoke-test.sh
new file mode 100755
index 0000000..5fd2fb7
--- /dev/null
+++ b/contrib/rfc1345/tests/rfc1345-smoke-test.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# Copyright (C) 2021 Free Software Foundation, Inc.
+#
+# This file is part of groff.
+#
+# 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"
+
+# Smoke-test rfc1345.tmac.
+
+DOC='\[,.]'
+
+OUTPUT=$(echo "$DOC" | "$groff" -T utf8 -m rfc1345 -P-cbou -Z)
+
+echo "$OUTPUT" | grep -Fqx 'Cu2026'
+
+# vim:set ai et sw=4 ts=4 tw=72:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]