diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
commit | 4c0770c1ecd159a77561d8e0364385f4bb758650 (patch) | |
tree | 5c2d5820b093c1c08b6047ff110e9b055083a5ea /regress/mdoc/Dt | |
parent | d16e7f2cf346476e177ce672851b0b957aebbe5d (diff) | |
download | mandoc-4c0770c1ecd159a77561d8e0364385f4bb758650.tar.gz |
Finally port the OpenBSD regression suite.
Both kristaps@ and wiz@ repeated asked for this,
literally for years.
Diffstat (limited to 'regress/mdoc/Dt')
30 files changed, 186 insertions, 0 deletions
diff --git a/regress/mdoc/Dt/Makefile b/regress/mdoc/Dt/Makefile new file mode 100644 index 00000000..b0d0b0a8 --- /dev/null +++ b/regress/mdoc/Dt/Makefile @@ -0,0 +1,20 @@ +# $OpenBSD: Makefile,v 1.6 2015/02/16 19:02:32 schwarze Exp $ + +REGRESS_TARGETS = badsec case dupe fourargs late +REGRESS_TARGETS += missing noarg nobody nosec order +LINT_TARGETS = badsec case dupe fourargs late +LINT_TARGETS += missing noarg nobody nosec order + +SKIP_GROFF = badsec nobody +SKIP_ASCII = badsec + +# When the section is missing from the man(7) .TH title line, +# empty parentheses are shown in the page header. +# When the section is missing from the mdoc(7) .Dt title line, +# no empty parentheses are shown in the page header. +# Hence, there is no bug-compatible translation from mdoc(7) +# to man(7) for this case. That's not mandoc(1)'s fault. + +SKIP_TMAN = fourargs late missing noarg nosec + +.include <bsd.regress.mk> diff --git a/regress/mdoc/Dt/badsec.in b/regress/mdoc/Dt/badsec.in new file mode 100644 index 00000000..47af859f --- /dev/null +++ b/regress/mdoc/Dt/badsec.in @@ -0,0 +1,8 @@ +.Dd June 13, 2014 +.Dt DT-BADSEC foo +.Os OpenBSD +.Sh NAME +.Nm Dt-badsec +.Nd unknown manual section +.Sh DESCRIPTION +some text diff --git a/regress/mdoc/Dt/badsec.out_lint b/regress/mdoc/Dt/badsec.out_lint new file mode 100644 index 00000000..b78a0333 --- /dev/null +++ b/regress/mdoc/Dt/badsec.out_lint @@ -0,0 +1 @@ +mandoc: badsec.in:2:15: WARNING: unknown manual section: Dt ... foo diff --git a/regress/mdoc/Dt/case.in b/regress/mdoc/Dt/case.in new file mode 100644 index 00000000..88b2df3b --- /dev/null +++ b/regress/mdoc/Dt/case.in @@ -0,0 +1,8 @@ +.Dd June 13, 2014 +.Dt Dt-case 1 +.Os OpenBSD +.Sh NAME +.Nm Dt-case +.Nd document title is not all caps +.Sh DESCRIPTION +some text diff --git a/regress/mdoc/Dt/case.out_ascii b/regress/mdoc/Dt/case.out_ascii new file mode 100644 index 00000000..0eb21827 --- /dev/null +++ b/regress/mdoc/Dt/case.out_ascii @@ -0,0 +1,9 @@ +Dt-case(1) General Commands Manual Dt-case(1) + +NNAAMMEE + DDtt--ccaassee - document title is not all caps + +DDEESSCCRRIIPPTTIIOONN + some text + +OpenBSD June 13, 2014 OpenBSD diff --git a/regress/mdoc/Dt/case.out_lint b/regress/mdoc/Dt/case.out_lint new file mode 100644 index 00000000..cf85b606 --- /dev/null +++ b/regress/mdoc/Dt/case.out_lint @@ -0,0 +1 @@ +mandoc: case.in:2:6: WARNING: lower case character in document title: Dt Dt-case diff --git a/regress/mdoc/Dt/dupe.in b/regress/mdoc/Dt/dupe.in new file mode 100644 index 00000000..c46e3d77 --- /dev/null +++ b/regress/mdoc/Dt/dupe.in @@ -0,0 +1,11 @@ +.Dd August 5, 2014 +.Dt DT-FIRST 2 first_arch +.Os OpenBSD +.Dt DT-DUPE 1 +.Sh NAME +.Nm Dt-order +.Nd duplicate prologue macro +.Sh DESCRIPTION +inital text +.Dt DT-LAST 3 last_arch +final text diff --git a/regress/mdoc/Dt/dupe.out_ascii b/regress/mdoc/Dt/dupe.out_ascii new file mode 100644 index 00000000..0d2ba0e6 --- /dev/null +++ b/regress/mdoc/Dt/dupe.out_ascii @@ -0,0 +1,9 @@ +DT-DUPE(1) General Commands Manual DT-DUPE(1) + +NNAAMMEE + DDtt--oorrddeerr - duplicate prologue macro + +DDEESSCCRRIIPPTTIIOONN + inital text final text + +OpenBSD August 5, 2014 OpenBSD diff --git a/regress/mdoc/Dt/dupe.out_lint b/regress/mdoc/Dt/dupe.out_lint new file mode 100644 index 00000000..b355bed0 --- /dev/null +++ b/regress/mdoc/Dt/dupe.out_lint @@ -0,0 +1,2 @@ +mandoc: dupe.in:4:2: WARNING: duplicate prologue macro: Dt +mandoc: dupe.in:10:2: WARNING: skipping late title macro: Dt diff --git a/regress/mdoc/Dt/fourargs.in b/regress/mdoc/Dt/fourargs.in new file mode 100644 index 00000000..9b4293ae --- /dev/null +++ b/regress/mdoc/Dt/fourargs.in @@ -0,0 +1,8 @@ +.Dd February 16, 2015 +.Dt DT-FOURARGS 1 amd64 bogus +.Os OpenBSD +.Sh NAME +.Nm Dt-fourargs +.Nd too many arguments after the \&Dt macro +.Sh DESCRIPTION +some text diff --git a/regress/mdoc/Dt/fourargs.out_ascii b/regress/mdoc/Dt/fourargs.out_ascii new file mode 100644 index 00000000..9fc075e1 --- /dev/null +++ b/regress/mdoc/Dt/fourargs.out_ascii @@ -0,0 +1,9 @@ +DT-FOURARGS(1) General Commands Manual (amd64) DT-FOURARGS(1) + +NNAAMMEE + DDtt--ffoouurraarrggss - too many arguments after the Dt macro + +DDEESSCCRRIIPPTTIIOONN + some text + +OpenBSD February 16, 2015 OpenBSD diff --git a/regress/mdoc/Dt/fourargs.out_lint b/regress/mdoc/Dt/fourargs.out_lint new file mode 100644 index 00000000..0d4d1494 --- /dev/null +++ b/regress/mdoc/Dt/fourargs.out_lint @@ -0,0 +1 @@ +mandoc: fourargs.in:2:25: ERROR: skipping excess arguments: Dt ... bogus diff --git a/regress/mdoc/Dt/late.in b/regress/mdoc/Dt/late.in new file mode 100644 index 00000000..2043eebe --- /dev/null +++ b/regress/mdoc/Dt/late.in @@ -0,0 +1,9 @@ +.Dd August 5, 2014 +.Os OpenBSD +.Sh NAME +.Nm Dt-late +.Nd late title macro +.Sh DESCRIPTION +inital text +.Dt DT-LATE 1 +final text diff --git a/regress/mdoc/Dt/late.out_ascii b/regress/mdoc/Dt/late.out_ascii new file mode 100644 index 00000000..c1830f2b --- /dev/null +++ b/regress/mdoc/Dt/late.out_ascii @@ -0,0 +1,9 @@ +UNTITLED LOCAL UNTITLED + +NNAAMMEE + DDtt--llaattee - late title macro + +DDEESSCCRRIIPPTTIIOONN + inital text final text + +OpenBSD August 5, 2014 OpenBSD diff --git a/regress/mdoc/Dt/late.out_lint b/regress/mdoc/Dt/late.out_lint new file mode 100644 index 00000000..4228c6ae --- /dev/null +++ b/regress/mdoc/Dt/late.out_lint @@ -0,0 +1,2 @@ +mandoc: late.in:8:2: WARNING: skipping late title macro: Dt +mandoc: late.in: WARNING: missing manual title, using UNTITLED: EOF diff --git a/regress/mdoc/Dt/missing.in b/regress/mdoc/Dt/missing.in new file mode 100644 index 00000000..997eab63 --- /dev/null +++ b/regress/mdoc/Dt/missing.in @@ -0,0 +1,7 @@ +.Dd August 5, 2014 +.Os OpenBSD +.Sh NAME +.Nm Dt-missing +.Nd no title macro at all +.Sh DESCRIPTION +some text diff --git a/regress/mdoc/Dt/missing.out_ascii b/regress/mdoc/Dt/missing.out_ascii new file mode 100644 index 00000000..b2dd22a3 --- /dev/null +++ b/regress/mdoc/Dt/missing.out_ascii @@ -0,0 +1,9 @@ +UNTITLED LOCAL UNTITLED + +NNAAMMEE + DDtt--mmiissssiinngg - no title macro at all + +DDEESSCCRRIIPPTTIIOONN + some text + +OpenBSD August 5, 2014 OpenBSD diff --git a/regress/mdoc/Dt/missing.out_lint b/regress/mdoc/Dt/missing.out_lint new file mode 100644 index 00000000..283a60d5 --- /dev/null +++ b/regress/mdoc/Dt/missing.out_lint @@ -0,0 +1 @@ +mandoc: missing.in: WARNING: missing manual title, using UNTITLED: EOF diff --git a/regress/mdoc/Dt/noarg.in b/regress/mdoc/Dt/noarg.in new file mode 100644 index 00000000..9fddfc6b --- /dev/null +++ b/regress/mdoc/Dt/noarg.in @@ -0,0 +1,8 @@ +.Dd August 5, 2014 +.Dt +.Os OpenBSD +.Sh NAME +.Nm Dt-noarg +.Nd title macro without arguments +.Sh DESCRIPTION +some text diff --git a/regress/mdoc/Dt/noarg.out_ascii b/regress/mdoc/Dt/noarg.out_ascii new file mode 100644 index 00000000..bf6b7ed2 --- /dev/null +++ b/regress/mdoc/Dt/noarg.out_ascii @@ -0,0 +1,9 @@ +UNTITLED LOCAL UNTITLED + +NNAAMMEE + DDtt--nnooaarrgg - title macro without arguments + +DDEESSCCRRIIPPTTIIOONN + some text + +OpenBSD August 5, 2014 OpenBSD diff --git a/regress/mdoc/Dt/noarg.out_lint b/regress/mdoc/Dt/noarg.out_lint new file mode 100644 index 00000000..b1fafbe4 --- /dev/null +++ b/regress/mdoc/Dt/noarg.out_lint @@ -0,0 +1,2 @@ +mandoc: noarg.in:2:2: WARNING: missing manual title, using UNTITLED: Dt +mandoc: noarg.in:2:2: WARNING: missing manual section, using "": Dt UNTITLED diff --git a/regress/mdoc/Dt/nobody.in b/regress/mdoc/Dt/nobody.in new file mode 100644 index 00000000..cc184f9c --- /dev/null +++ b/regress/mdoc/Dt/nobody.in @@ -0,0 +1,3 @@ +.Dd June 20, 2014 +.Dt DT-NOBODY 1 +.Os OpenBSD diff --git a/regress/mdoc/Dt/nobody.out_ascii b/regress/mdoc/Dt/nobody.out_ascii new file mode 100644 index 00000000..1de2b81a --- /dev/null +++ b/regress/mdoc/Dt/nobody.out_ascii @@ -0,0 +1,3 @@ +DT-NOBODY(1) General Commands Manual DT-NOBODY(1) + +OpenBSD June 20, 2014 OpenBSD diff --git a/regress/mdoc/Dt/nobody.out_lint b/regress/mdoc/Dt/nobody.out_lint new file mode 100644 index 00000000..f5439fcd --- /dev/null +++ b/regress/mdoc/Dt/nobody.out_lint @@ -0,0 +1 @@ +mandoc: nobody.in: WARNING: no document body diff --git a/regress/mdoc/Dt/nosec.in b/regress/mdoc/Dt/nosec.in new file mode 100644 index 00000000..6873c46b --- /dev/null +++ b/regress/mdoc/Dt/nosec.in @@ -0,0 +1,8 @@ +.Dd August 5, 2014 +.Dt DT-NOSEC +.Os OpenBSD +.Sh NAME +.Nm Dt-nosec +.Nd title macro without manual section +.Sh DESCRIPTION +some text diff --git a/regress/mdoc/Dt/nosec.out_ascii b/regress/mdoc/Dt/nosec.out_ascii new file mode 100644 index 00000000..028db82e --- /dev/null +++ b/regress/mdoc/Dt/nosec.out_ascii @@ -0,0 +1,9 @@ +DT-NOSEC LOCAL DT-NOSEC + +NNAAMMEE + DDtt--nnoosseecc - title macro without manual section + +DDEESSCCRRIIPPTTIIOONN + some text + +OpenBSD August 5, 2014 OpenBSD diff --git a/regress/mdoc/Dt/nosec.out_lint b/regress/mdoc/Dt/nosec.out_lint new file mode 100644 index 00000000..bddda2d7 --- /dev/null +++ b/regress/mdoc/Dt/nosec.out_lint @@ -0,0 +1 @@ +mandoc: nosec.in:2:2: WARNING: missing manual section, using "": Dt DT-NOSEC diff --git a/regress/mdoc/Dt/order.in b/regress/mdoc/Dt/order.in new file mode 100644 index 00000000..04bbaa51 --- /dev/null +++ b/regress/mdoc/Dt/order.in @@ -0,0 +1,8 @@ +.Dd June 13, 2014 +.Os OpenBSD +.Dt DT-ORDER 1 +.Sh NAME +.Nm Dt-order +.Nd prologue macros out of order +.Sh DESCRIPTION +some text diff --git a/regress/mdoc/Dt/order.out_ascii b/regress/mdoc/Dt/order.out_ascii new file mode 100644 index 00000000..6524bcab --- /dev/null +++ b/regress/mdoc/Dt/order.out_ascii @@ -0,0 +1,9 @@ +DT-ORDER(1) General Commands Manual DT-ORDER(1) + +NNAAMMEE + DDtt--oorrddeerr - prologue macros out of order + +DDEESSCCRRIIPPTTIIOONN + some text + +OpenBSD June 13, 2014 OpenBSD diff --git a/regress/mdoc/Dt/order.out_lint b/regress/mdoc/Dt/order.out_lint new file mode 100644 index 00000000..5700ef89 --- /dev/null +++ b/regress/mdoc/Dt/order.out_lint @@ -0,0 +1 @@ +mandoc: order.in:3:2: WARNING: prologue macros out of order: Dt after Os |