diff options
Diffstat (limited to 'regress/mdoc/Sh')
30 files changed, 224 insertions, 0 deletions
diff --git a/regress/mdoc/Sh/Makefile b/regress/mdoc/Sh/Makefile new file mode 100644 index 00000000..a1db1161 --- /dev/null +++ b/regress/mdoc/Sh/Makefile @@ -0,0 +1,11 @@ +# $OpenBSD: Makefile,v 1.7 2017/01/08 00:10:22 schwarze Exp $ + +REGRESS_TARGETS = badNAME before empty emptyNAME first nohead order +REGRESS_TARGETS += orderNAME punctNAME subbefore +LINT_TARGETS = badNAME before empty emptyNAME first nohead order +LINT_TARGETS += orderNAME punctNAME subbefore + +SKIP_GROFF = subbefore first empty +SKIP_ASCII = first + +.include <bsd.regress.mk> diff --git a/regress/mdoc/Sh/badNAME.in b/regress/mdoc/Sh/badNAME.in new file mode 100644 index 00000000..85ebdbf7 --- /dev/null +++ b/regress/mdoc/Sh/badNAME.in @@ -0,0 +1,8 @@ +.Dd July 1, 2014 +.Dt SH-BADNAME 1 +.Os OpenBSD +.Sh NAME +.Em bad NAME section +.Nm Sh-badNAME +.Sh DESCRIPTION +The description appears before the name and is not marked up with Nd. diff --git a/regress/mdoc/Sh/badNAME.out_ascii b/regress/mdoc/Sh/badNAME.out_ascii new file mode 100644 index 00000000..8c329a85 --- /dev/null +++ b/regress/mdoc/Sh/badNAME.out_ascii @@ -0,0 +1,9 @@ +SH-BADNAME(1) General Commands Manual SH-BADNAME(1) + +NNAAMMEE + _b_a_d _N_A_M_E _s_e_c_t_i_o_n SShh--bbaaddNNAAMMEE + +DDEESSCCRRIIPPTTIIOONN + The description appears before the name and is not marked up with Nd. + +OpenBSD July 1, 2014 OpenBSD diff --git a/regress/mdoc/Sh/badNAME.out_lint b/regress/mdoc/Sh/badNAME.out_lint new file mode 100644 index 00000000..9fbbf668 --- /dev/null +++ b/regress/mdoc/Sh/badNAME.out_lint @@ -0,0 +1,2 @@ +mandoc: badNAME.in:5:2: WARNING: bad NAME section content: Em +mandoc: badNAME.in:4:2: WARNING: NAME section without description diff --git a/regress/mdoc/Sh/before.in b/regress/mdoc/Sh/before.in new file mode 100644 index 00000000..95b750cc --- /dev/null +++ b/regress/mdoc/Sh/before.in @@ -0,0 +1,13 @@ +.Dd July 7, 2014 +.Dt SH-BEFORE 1 +.Os OpenBSD +Can +.Xr mandoc 1 +on +.Ox +handle this? +.Sh NAME +.Nm Sh-before +.Nd content before the first section header +.Sh DESCRIPTION +some text diff --git a/regress/mdoc/Sh/before.out_ascii b/regress/mdoc/Sh/before.out_ascii new file mode 100644 index 00000000..246c684a --- /dev/null +++ b/regress/mdoc/Sh/before.out_ascii @@ -0,0 +1,11 @@ +SH-BEFORE(1) General Commands Manual SH-BEFORE(1) + +Can mandoc(1) on OpenBSD handle this? + +NNAAMMEE + SShh--bbeeffoorree - content before the first section header + +DDEESSCCRRIIPPTTIIOONN + some text + +OpenBSD July 7, 2014 OpenBSD diff --git a/regress/mdoc/Sh/before.out_lint b/regress/mdoc/Sh/before.out_lint new file mode 100644 index 00000000..314acb29 --- /dev/null +++ b/regress/mdoc/Sh/before.out_lint @@ -0,0 +1 @@ +mandoc: before.in:4:1: WARNING: content before first section header: text diff --git a/regress/mdoc/Sh/empty.in b/regress/mdoc/Sh/empty.in new file mode 100644 index 00000000..c830ac62 --- /dev/null +++ b/regress/mdoc/Sh/empty.in @@ -0,0 +1,10 @@ +.Dd November 21, 2014 +.Dt SH-EMPTY 1 +.Os OpenBSD +.Sh NAME +.Nm Sh-empty +.Nd empty sections +.Sh SYNOPSIS +.Sh DESCRIPTION Xo +.Sh BUGS +Quite some. diff --git a/regress/mdoc/Sh/empty.out_ascii b/regress/mdoc/Sh/empty.out_ascii new file mode 100644 index 00000000..d34892ff --- /dev/null +++ b/regress/mdoc/Sh/empty.out_ascii @@ -0,0 +1,11 @@ +SH-EMPTY(1) General Commands Manual SH-EMPTY(1) + +NNAAMMEE + SShh--eemmppttyy - empty sections + +SSYYNNOOPPSSIISS +DDEESSCCRRIIPPTTIIOONN +BBUUGGSS + Quite some. + +OpenBSD November 21, 2014 OpenBSD diff --git a/regress/mdoc/Sh/empty.out_lint b/regress/mdoc/Sh/empty.out_lint new file mode 100644 index 00000000..28d05c97 --- /dev/null +++ b/regress/mdoc/Sh/empty.out_lint @@ -0,0 +1 @@ +mandoc: empty.in:9:2: ERROR: inserting missing end of block: Sh breaks Xo diff --git a/regress/mdoc/Sh/emptyNAME.in b/regress/mdoc/Sh/emptyNAME.in new file mode 100644 index 00000000..621724e5 --- /dev/null +++ b/regress/mdoc/Sh/emptyNAME.in @@ -0,0 +1,6 @@ +.Dd July 1, 2014 +.Dt SH-EMPTYNAME 1 +.Os OpenBSD +.Sh NAME +.Sh DESCRIPTION +The NAME section is empty. diff --git a/regress/mdoc/Sh/emptyNAME.out_ascii b/regress/mdoc/Sh/emptyNAME.out_ascii new file mode 100644 index 00000000..32336cd9 --- /dev/null +++ b/regress/mdoc/Sh/emptyNAME.out_ascii @@ -0,0 +1,7 @@ +SH-EMPTYNAME(1) General Commands Manual SH-EMPTYNAME(1) + +NNAAMMEE +DDEESSCCRRIIPPTTIIOONN + The NAME section is empty. + +OpenBSD July 1, 2014 OpenBSD diff --git a/regress/mdoc/Sh/emptyNAME.out_lint b/regress/mdoc/Sh/emptyNAME.out_lint new file mode 100644 index 00000000..c6da49bb --- /dev/null +++ b/regress/mdoc/Sh/emptyNAME.out_lint @@ -0,0 +1,2 @@ +mandoc: emptyNAME.in:4:2: WARNING: NAME section without Nm before Nd +mandoc: emptyNAME.in:4:2: WARNING: NAME section without description diff --git a/regress/mdoc/Sh/first.in b/regress/mdoc/Sh/first.in new file mode 100644 index 00000000..f0d4b0b4 --- /dev/null +++ b/regress/mdoc/Sh/first.in @@ -0,0 +1,5 @@ +.Dd July 1, 2014 +.Dt SH-FIRST 1 +.Os OpenBSD +.Sh DESCRIPTION +The first section is not a NAME section. diff --git a/regress/mdoc/Sh/first.out_lint b/regress/mdoc/Sh/first.out_lint new file mode 100644 index 00000000..df39e0d0 --- /dev/null +++ b/regress/mdoc/Sh/first.out_lint @@ -0,0 +1 @@ +mandoc: first.in:4:2: WARNING: first section is not "NAME": Sh DESCRIPTION diff --git a/regress/mdoc/Sh/nohead.in b/regress/mdoc/Sh/nohead.in new file mode 100644 index 00000000..d4516cc7 --- /dev/null +++ b/regress/mdoc/Sh/nohead.in @@ -0,0 +1,12 @@ +.Dd February 5, 2015 +.Dt SH-NOHEAD 1 +.Os OpenBSD +.Sh NAME +.Nm Sh-nohead +.Nd sections without header lines +.Sh DESCRIPTION +empty section header: +.Sh +empty subsection header: +.Ss +text diff --git a/regress/mdoc/Sh/nohead.out_ascii b/regress/mdoc/Sh/nohead.out_ascii new file mode 100644 index 00000000..fa42f20c --- /dev/null +++ b/regress/mdoc/Sh/nohead.out_ascii @@ -0,0 +1,9 @@ +SH-NOHEAD(1) General Commands Manual SH-NOHEAD(1) + +NNAAMMEE + SShh--nnoohheeaadd - sections without header lines + +DDEESSCCRRIIPPTTIIOONN + empty section header: empty subsection header: text + +OpenBSD February 5, 2015 OpenBSD diff --git a/regress/mdoc/Sh/nohead.out_lint b/regress/mdoc/Sh/nohead.out_lint new file mode 100644 index 00000000..b93f65e6 --- /dev/null +++ b/regress/mdoc/Sh/nohead.out_lint @@ -0,0 +1,2 @@ +mandoc: nohead.in:9:2: WARNING: skipping empty macro: Sh +mandoc: nohead.in:11:2: WARNING: skipping empty macro: Ss diff --git a/regress/mdoc/Sh/order.in b/regress/mdoc/Sh/order.in new file mode 100644 index 00000000..ffab6878 --- /dev/null +++ b/regress/mdoc/Sh/order.in @@ -0,0 +1,12 @@ +.Dd July 1, 2014 +.Dt SH-ORDER 1 +.Os OpenBSD +.Sh NAME +.Nm Sh-order +.Nd sections out of conventional order +.Sh DESCRIPTION +some text +.Sh SYNOPSIS +.Sh SYNOPSIS +.Sh ERRORS +.Vt int errno diff --git a/regress/mdoc/Sh/order.out_ascii b/regress/mdoc/Sh/order.out_ascii new file mode 100644 index 00000000..0ed56118 --- /dev/null +++ b/regress/mdoc/Sh/order.out_ascii @@ -0,0 +1,14 @@ +SH-ORDER(1) General Commands Manual SH-ORDER(1) + +NNAAMMEE + SShh--oorrddeerr - sections out of conventional order + +DDEESSCCRRIIPPTTIIOONN + some text + +SSYYNNOOPPSSIISS +SSYYNNOOPPSSIISS +EERRRROORRSS + _i_n_t _e_r_r_n_o + +OpenBSD July 1, 2014 OpenBSD diff --git a/regress/mdoc/Sh/order.out_lint b/regress/mdoc/Sh/order.out_lint new file mode 100644 index 00000000..67aa5db8 --- /dev/null +++ b/regress/mdoc/Sh/order.out_lint @@ -0,0 +1,3 @@ +mandoc: order.in:9:2: WARNING: sections out of conventional order: Sh SYNOPSIS +mandoc: order.in:10:2: WARNING: duplicate section title: Sh SYNOPSIS +mandoc: order.in:11:2: WARNING: unexpected section: Sh ERRORS for 2, 3, 4, 9 only diff --git a/regress/mdoc/Sh/orderNAME.in b/regress/mdoc/Sh/orderNAME.in new file mode 100644 index 00000000..d8fa1452 --- /dev/null +++ b/regress/mdoc/Sh/orderNAME.in @@ -0,0 +1,9 @@ +.Dd January 7, 2017 +.Dt SH-ORDERNAME 1 +.Os OpenBSD +.Sh NAME +.Nd name after description in NAME section +.Ss subsection +.Nm Sh-orderNAME +.Sh DESCRIPTION +The order of Nm and Nd is wrong in the NAME section. diff --git a/regress/mdoc/Sh/orderNAME.out_ascii b/regress/mdoc/Sh/orderNAME.out_ascii new file mode 100644 index 00000000..5e9e032f --- /dev/null +++ b/regress/mdoc/Sh/orderNAME.out_ascii @@ -0,0 +1,12 @@ +SH-ORDERNAME(1) General Commands Manual SH-ORDERNAME(1) + +NNAAMMEE + - name after description in NAME section + + ssuubbsseeccttiioonn + SShh--oorrddeerrNNAAMMEE + +DDEESSCCRRIIPPTTIIOONN + The order of Nm and Nd is wrong in the NAME section. + +OpenBSD January 7, 2017 OpenBSD diff --git a/regress/mdoc/Sh/orderNAME.out_lint b/regress/mdoc/Sh/orderNAME.out_lint new file mode 100644 index 00000000..0049023d --- /dev/null +++ b/regress/mdoc/Sh/orderNAME.out_lint @@ -0,0 +1,2 @@ +mandoc: orderNAME.in:5:2: WARNING: description not at the end of NAME +mandoc: orderNAME.in:4:2: WARNING: NAME section without Nm before Nd diff --git a/regress/mdoc/Sh/punctNAME.in b/regress/mdoc/Sh/punctNAME.in new file mode 100644 index 00000000..c34648b5 --- /dev/null +++ b/regress/mdoc/Sh/punctNAME.in @@ -0,0 +1,10 @@ +.Dd January 7, 2017 +.Dt SH-PUNCTNAME 1 +.Os OpenBSD +.Sh NAME +.Nm Sh-punctNAME +.Nm second_name ; +.Nm third_name , +.Nd wrong punctuation in the NAME section +.Sh DESCRIPTION +One comma is missing, and one is misplaced. diff --git a/regress/mdoc/Sh/punctNAME.out_ascii b/regress/mdoc/Sh/punctNAME.out_ascii new file mode 100644 index 00000000..8b74eda5 --- /dev/null +++ b/regress/mdoc/Sh/punctNAME.out_ascii @@ -0,0 +1,10 @@ +SH-PUNCTNAME(1) General Commands Manual SH-PUNCTNAME(1) + +NNAAMMEE + SShh--ppuunnccttNNAAMMEE sseeccoonndd__nnaammee; tthhiirrdd__nnaammee, - wrong punctuation in the NAME + section + +DDEESSCCRRIIPPTTIIOONN + One comma is missing, and one is misplaced. + +OpenBSD January 7, 2017 OpenBSD diff --git a/regress/mdoc/Sh/punctNAME.out_lint b/regress/mdoc/Sh/punctNAME.out_lint new file mode 100644 index 00000000..9ed95e4e --- /dev/null +++ b/regress/mdoc/Sh/punctNAME.out_lint @@ -0,0 +1,4 @@ +mandoc: punctNAME.in:6:2: WARNING: missing comma before name: Nm second_name +mandoc: punctNAME.in:6:17: WARNING: bad NAME section content: text +mandoc: punctNAME.in:7:2: WARNING: missing comma before name: Nm third_name +mandoc: punctNAME.in:7:16: WARNING: bad NAME section content: text diff --git a/regress/mdoc/Sh/subbefore.in b/regress/mdoc/Sh/subbefore.in new file mode 100644 index 00000000..ac800e13 --- /dev/null +++ b/regress/mdoc/Sh/subbefore.in @@ -0,0 +1,14 @@ +.Dd July 30, 2014 +.Dt SH-SUBBEFORE 1 +.Os OpenBSD +.Ss Subsection +Can +.Xr mandoc 1 +on +.Ox +handle this? +.Sh NAME +.Nm Sh-subbefore +.Nd subsection before the first section header +.Sh DESCRIPTION +some text diff --git a/regress/mdoc/Sh/subbefore.out_ascii b/regress/mdoc/Sh/subbefore.out_ascii new file mode 100644 index 00000000..a53bb7dc --- /dev/null +++ b/regress/mdoc/Sh/subbefore.out_ascii @@ -0,0 +1,12 @@ +SH-SUBBEFORE(1) General Commands Manual SH-SUBBEFORE(1) + + SSuubbsseeccttiioonn + Can mandoc(1) on OpenBSD handle this? + +NNAAMMEE + SShh--ssuubbbbeeffoorree - subsection before the first section header + +DDEESSCCRRIIPPTTIIOONN + some text + +OpenBSD July 30, 2014 OpenBSD diff --git a/regress/mdoc/Sh/subbefore.out_lint b/regress/mdoc/Sh/subbefore.out_lint new file mode 100644 index 00000000..fd497d25 --- /dev/null +++ b/regress/mdoc/Sh/subbefore.out_lint @@ -0,0 +1 @@ +mandoc: subbefore.in:4:2: WARNING: content before first section header: Ss |