groff-commit
[Top][All Lists]
Advanced

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

[groff] 31/48: [mdoc]: Regression-test Savannah #63957.


From: G. Branden Robinson
Subject: [groff] 31/48: [mdoc]: Regression-test Savannah #63957.
Date: Fri, 31 Mar 2023 08:33:11 -0400 (EDT)

gbranden pushed a commit to branch branden-2023-03-31
in repository groff.

commit 9cb8fa8b4f286040e32b3996b4183907d893a1ef
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Mar 24 03:17:41 2023 -0500

    [mdoc]: Regression-test Savannah #63957.
    
    * tmac/tests/doc_synopsis_is_not_adjusted.sh: Do it.
    * tmac/tmac.am (tmac_TESTS): Run test.
    
    Test fails at this commit.
---
 ChangeLog                                  |  7 +++++
 tmac/tests/doc_synopsis_is_not_adjusted.sh | 49 ++++++++++++++++++++++++++++++
 tmac/tmac.am                               |  1 +
 3 files changed, 57 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 1d65e465d..618ea12fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-03-24  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [mdoc]: Regression-test Savannah #63957.
+
+       * tmac/tests/doc_synopsis_is_not_adjusted.sh: Do it.
+       * tmac/tmac.am (tmac_TESTS): Run test.
+
 2023-03-14  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * tmac/tmac.am (tmac/stamp-wrap): Stop prepending groff's man(7)
diff --git a/tmac/tests/doc_synopsis_is_not_adjusted.sh 
b/tmac/tests/doc_synopsis_is_not_adjusted.sh
new file mode 100755
index 000000000..e5ddde6ea
--- /dev/null
+++ b/tmac/tests/doc_synopsis_is_not_adjusted.sh
@@ -0,0 +1,49 @@
+#!/bin/sh
+#
+# Copyright (C) 2023 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"
+
+input='.Dd June 6, 1944
+.Dt timerdday 3bsd
+.Os
+.Sh Name
+.Nm timerdday
+.Nd compute time of launch operation within window
+.Sh Synopsis
+.Ft void
+.Fn timerdday "\%struct-timespec *earliest" \
+"\%struct-timespec *latest" "\%struct-timespec *resolution"
+.Sh Description
+Compute the optimal start time for a desired event to occur between
+times
+.Va earliest No and Va latest
+to within a granularity of
+.Va resolution .'
+
+# Regression-test Savannah #63957.
+#
+# Adjustment should be disabled in Synopsis sections.
+
+output=$(echo "$input" | "$groff" -Tascii -mdoc -P-cbou)
+echo "$output"
+
+str=' {7}timerdday\(struct-timespec \*earliest, struct-timespec \*latest,'
+echo "$output" | grep -Eqx "$str"
+
+# vim:set ai et sw=4 ts=4 tw=72:
diff --git a/tmac/tmac.am b/tmac/tmac.am
index fce4d894c..d7f67d2f6 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -206,6 +206,7 @@ tmac_TESTS = \
   tmac/tests/doc_indents-correctly.sh \
   tmac/tests/doc_output-footer-when-continuously-rendering.sh \
   tmac/tests/doc_smoke-test.sh \
+  tmac/tests/doc_synopsis_is_not_adjusted.sh \
   tmac/tests/e_chapter-titles-work.sh \
   tmac/tests/e_columns-work-on-long-pages.sh \
   tmac/tests/e_delayed-text-marks-work.sh \



reply via email to

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