From d9f0f81c846a8405c29870e4a8379e5e79d1cad3 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 8 Feb 2017 03:02:13 +0000 Subject: Finally port the OpenBSD regression suite. Both kristaps@ and wiz@ repeated asked for this, literally for years. --- regress/man/TH/Makefile | 13 +++++++++++++ regress/man/TH/baddate.in | 5 +++++ regress/man/TH/baddate.out_ascii | 13 +++++++++++++ regress/man/TH/baddate.out_lint | 1 + regress/man/TH/case.in | 5 +++++ regress/man/TH/case.out_ascii | 13 +++++++++++++ regress/man/TH/case.out_lint | 1 + regress/man/TH/emptydate.in | 5 +++++ regress/man/TH/emptydate.out_ascii | 13 +++++++++++++ regress/man/TH/emptydate.out_lint | 1 + regress/man/TH/isodate.in | 5 +++++ regress/man/TH/isodate.out_ascii | 13 +++++++++++++ regress/man/TH/longdate.in | 5 +++++ regress/man/TH/longdate.out_ascii | 15 +++++++++++++++ regress/man/TH/longdate.out_lint | 1 + regress/man/TH/longtit.in | 5 +++++ regress/man/TH/longtit.out_ascii | 15 +++++++++++++++ regress/man/TH/longvol.in | 5 +++++ regress/man/TH/longvol.out_ascii | 14 ++++++++++++++ regress/man/TH/mdocdate.in | 5 +++++ regress/man/TH/mdocdate.out_ascii | 13 +++++++++++++ regress/man/TH/noTH.in | 4 ++++ regress/man/TH/noTH.out_lint | 2 ++ regress/man/TH/noarg.in | 5 +++++ regress/man/TH/noarg.out_ascii | 13 +++++++++++++ regress/man/TH/noarg.out_lint | 3 +++ regress/man/TH/nobody.in | 1 + regress/man/TH/nobody.out_ascii | 5 +++++ regress/man/TH/nobody.out_lint | 1 + regress/man/TH/onearg.in | 5 +++++ regress/man/TH/onearg.out_ascii | 13 +++++++++++++ regress/man/TH/onearg.out_lint | 2 ++ regress/man/TH/onlyyear.in | 5 +++++ regress/man/TH/onlyyear.out_ascii | 13 +++++++++++++ regress/man/TH/sixargs.in | 5 +++++ regress/man/TH/sixargs.out_ascii | 13 +++++++++++++ regress/man/TH/sixargs.out_lint | 1 + regress/man/TH/twoargs.in | 5 +++++ regress/man/TH/twoargs.out_ascii | 13 +++++++++++++ regress/man/TH/twoargs.out_lint | 2 ++ 40 files changed, 277 insertions(+) create mode 100644 regress/man/TH/Makefile create mode 100644 regress/man/TH/baddate.in create mode 100644 regress/man/TH/baddate.out_ascii create mode 100644 regress/man/TH/baddate.out_lint create mode 100644 regress/man/TH/case.in create mode 100644 regress/man/TH/case.out_ascii create mode 100644 regress/man/TH/case.out_lint create mode 100644 regress/man/TH/emptydate.in create mode 100644 regress/man/TH/emptydate.out_ascii create mode 100644 regress/man/TH/emptydate.out_lint create mode 100644 regress/man/TH/isodate.in create mode 100644 regress/man/TH/isodate.out_ascii create mode 100644 regress/man/TH/longdate.in create mode 100644 regress/man/TH/longdate.out_ascii create mode 100644 regress/man/TH/longdate.out_lint create mode 100644 regress/man/TH/longtit.in create mode 100644 regress/man/TH/longtit.out_ascii create mode 100644 regress/man/TH/longvol.in create mode 100644 regress/man/TH/longvol.out_ascii create mode 100644 regress/man/TH/mdocdate.in create mode 100644 regress/man/TH/mdocdate.out_ascii create mode 100644 regress/man/TH/noTH.in create mode 100644 regress/man/TH/noTH.out_lint create mode 100644 regress/man/TH/noarg.in create mode 100644 regress/man/TH/noarg.out_ascii create mode 100644 regress/man/TH/noarg.out_lint create mode 100644 regress/man/TH/nobody.in create mode 100644 regress/man/TH/nobody.out_ascii create mode 100644 regress/man/TH/nobody.out_lint create mode 100644 regress/man/TH/onearg.in create mode 100644 regress/man/TH/onearg.out_ascii create mode 100644 regress/man/TH/onearg.out_lint create mode 100644 regress/man/TH/onlyyear.in create mode 100644 regress/man/TH/onlyyear.out_ascii create mode 100644 regress/man/TH/sixargs.in create mode 100644 regress/man/TH/sixargs.out_ascii create mode 100644 regress/man/TH/sixargs.out_lint create mode 100644 regress/man/TH/twoargs.in create mode 100644 regress/man/TH/twoargs.out_ascii create mode 100644 regress/man/TH/twoargs.out_lint (limited to 'regress/man/TH') diff --git a/regress/man/TH/Makefile b/regress/man/TH/Makefile new file mode 100644 index 00000000..b1647349 --- /dev/null +++ b/regress/man/TH/Makefile @@ -0,0 +1,13 @@ +# $OpenBSD: Makefile,v 1.9 2015/02/06 11:54:03 schwarze Exp $ + +REGRESS_TARGETS = noTH noarg onearg twoargs sixargs case longtit longvol +REGRESS_TARGETS += emptydate onlyyear isodate mdocdate baddate longdate +REGRESS_TARGETS += nobody + +LINT_TARGETS = noTH noarg onearg twoargs sixargs case +LINT_TARGETS += emptydate baddate longdate nobody + +SKIP_GROFF = noTH longtit longvol longdate +SKIP_ASCII = noTH + +.include diff --git a/regress/man/TH/baddate.in b/regress/man/TH/baddate.in new file mode 100644 index 00000000..c8819696 --- /dev/null +++ b/regress/man/TH/baddate.in @@ -0,0 +1,5 @@ +.TH TH-BADDATE 1 "three bad words" source +.SH NAME +TH-baddate \- the date has three words, but bad ones +.SH DESCRIPTION +Some text. diff --git a/regress/man/TH/baddate.out_ascii b/regress/man/TH/baddate.out_ascii new file mode 100644 index 00000000..5c14639b --- /dev/null +++ b/regress/man/TH/baddate.out_ascii @@ -0,0 +1,13 @@ +TH-BADDATE(1) General Commands Manual TH-BADDATE(1) + + + +NNAAMMEE + TH-baddate - the date has three words, but bad ones + +DDEESSCCRRIIPPTTIIOONN + Some text. + + + +source three bad words TH-BADDATE(1) diff --git a/regress/man/TH/baddate.out_lint b/regress/man/TH/baddate.out_lint new file mode 100644 index 00000000..57f24404 --- /dev/null +++ b/regress/man/TH/baddate.out_lint @@ -0,0 +1 @@ +mandoc: baddate.in:1:18: WARNING: cannot parse date, using it verbatim: three bad words diff --git a/regress/man/TH/case.in b/regress/man/TH/case.in new file mode 100644 index 00000000..74954de4 --- /dev/null +++ b/regress/man/TH/case.in @@ -0,0 +1,5 @@ +.TH TH-case 1 "June 13, 2014" OpenBSD +.SH NAME +TH-case \- document title is not all caps +.SH DESCRIPTION +some text diff --git a/regress/man/TH/case.out_ascii b/regress/man/TH/case.out_ascii new file mode 100644 index 00000000..1a8b59be --- /dev/null +++ b/regress/man/TH/case.out_ascii @@ -0,0 +1,13 @@ +TH-case(1) General Commands Manual TH-case(1) + + + +NNAAMMEE + TH-case - document title is not all caps + +DDEESSCCRRIIPPTTIIOONN + some text + + + +OpenBSD June 13, 2014 TH-case(1) diff --git a/regress/man/TH/case.out_lint b/regress/man/TH/case.out_lint new file mode 100644 index 00000000..b154fc16 --- /dev/null +++ b/regress/man/TH/case.out_lint @@ -0,0 +1 @@ +mandoc: case.in:1:8: WARNING: lower case character in document title: TH TH-case diff --git a/regress/man/TH/emptydate.in b/regress/man/TH/emptydate.in new file mode 100644 index 00000000..da4b7950 --- /dev/null +++ b/regress/man/TH/emptydate.in @@ -0,0 +1,5 @@ +.TH TH-EMPTYDATE 1 "" source +.SH NAME +TH-emptydate \- an empty date string +.SH DESCRIPTION +Some text. diff --git a/regress/man/TH/emptydate.out_ascii b/regress/man/TH/emptydate.out_ascii new file mode 100644 index 00000000..4eb1775d --- /dev/null +++ b/regress/man/TH/emptydate.out_ascii @@ -0,0 +1,13 @@ +TH-EMPTYDATE(1) General Commands Manual TH-EMPTYDATE(1) + + + +NNAAMMEE + TH-emptydate - an empty date string + +DDEESSCCRRIIPPTTIIOONN + Some text. + + + +source TH-EMPTYDATE(1) diff --git a/regress/man/TH/emptydate.out_lint b/regress/man/TH/emptydate.out_lint new file mode 100644 index 00000000..757fda6c --- /dev/null +++ b/regress/man/TH/emptydate.out_lint @@ -0,0 +1 @@ +mandoc: emptydate.in:1:20: WARNING: missing date, using today's date: TH diff --git a/regress/man/TH/isodate.in b/regress/man/TH/isodate.in new file mode 100644 index 00000000..ff483ff8 --- /dev/null +++ b/regress/man/TH/isodate.in @@ -0,0 +1,5 @@ +.TH TH-ISODATE 1 "2011-07-02" source +.SH NAME +TH-isodate \- ISO date format +.SH DESCRIPTION +Some text. diff --git a/regress/man/TH/isodate.out_ascii b/regress/man/TH/isodate.out_ascii new file mode 100644 index 00000000..b3ee850b --- /dev/null +++ b/regress/man/TH/isodate.out_ascii @@ -0,0 +1,13 @@ +TH-ISODATE(1) General Commands Manual TH-ISODATE(1) + + + +NNAAMMEE + TH-isodate - ISO date format + +DDEESSCCRRIIPPTTIIOONN + Some text. + + + +source 2011-07-02 TH-ISODATE(1) diff --git a/regress/man/TH/longdate.in b/regress/man/TH/longdate.in new file mode 100644 index 00000000..263df782 --- /dev/null +++ b/regress/man/TH/longdate.in @@ -0,0 +1,5 @@ +.TH TH-LONGDATE 1 "1234567890123456789012345678901234567890123456789012345678901234567890123456789012" source +.SH NAME +TH-longdate \- the date is longer than the line length +.SH DESCRIPTION +Some text. diff --git a/regress/man/TH/longdate.out_ascii b/regress/man/TH/longdate.out_ascii new file mode 100644 index 00000000..4578834b --- /dev/null +++ b/regress/man/TH/longdate.out_ascii @@ -0,0 +1,15 @@ +TH-LONGDATE(1) General Commands Manual TH-LONGDATE(1) + + + +NNAAMMEE + TH-longdate - the date is longer than the line length + +DDEESSCCRRIIPPTTIIOONN + Some text. + + + +source +1234567890123456789012345678901234567890123456789012345678901234567890123456789012 + TH-LONGDATE(1) diff --git a/regress/man/TH/longdate.out_lint b/regress/man/TH/longdate.out_lint new file mode 100644 index 00000000..87add528 --- /dev/null +++ b/regress/man/TH/longdate.out_lint @@ -0,0 +1 @@ +mandoc: longdate.in:1:19: WARNING: cannot parse date, using it verbatim: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012 diff --git a/regress/man/TH/longtit.in b/regress/man/TH/longtit.in new file mode 100644 index 00000000..f0b66b97 --- /dev/null +++ b/regress/man/TH/longtit.in @@ -0,0 +1,5 @@ +.TH TH-LONGTIT-23456789012345678901234567890123456789012345678901234567890123456789 1 "November 20, 2014" source +.SH NAME +TH-longtit \- the title is longer than the line length +.SH DESCRIPTION +Some text. diff --git a/regress/man/TH/longtit.out_ascii b/regress/man/TH/longtit.out_ascii new file mode 100644 index 00000000..00dbe254 --- /dev/null +++ b/regress/man/TH/longtit.out_ascii @@ -0,0 +1,15 @@ +TH-LONGTIT-23456789012345678901234567890123456789012345678901234567890123456789(1) + General Commands Manual + + + +NNAAMMEE + TH-longtit - the title is longer than the line length + +DDEESSCCRRIIPPTTIIOONN + Some text. + + + +source November 20, 2014 +TH-LONGTIT-23456789012345678901234567890123456789012345678901234567890123456789(1) diff --git a/regress/man/TH/longvol.in b/regress/man/TH/longvol.in new file mode 100644 index 00000000..2b6d0f1f --- /dev/null +++ b/regress/man/TH/longvol.in @@ -0,0 +1,5 @@ +.TH TH-LONGVOL 1 "November 20, 2014" source 1234567890123456789012345678901234567890123456789012345678901234567890123456789 +.SH NAME +TH-longvol \- the volume string is longer than the line length +.SH DESCRIPTION +Some text. diff --git a/regress/man/TH/longvol.out_ascii b/regress/man/TH/longvol.out_ascii new file mode 100644 index 00000000..bdc881a8 --- /dev/null +++ b/regress/man/TH/longvol.out_ascii @@ -0,0 +1,14 @@ +TH-LONGVOL(1) +1234567890123456789012345678901234567890123456789012345678901234567890123456789 + + + +NNAAMMEE + TH-longvol - the volume string is longer than the line length + +DDEESSCCRRIIPPTTIIOONN + Some text. + + + +source November 20, 2014 TH-LONGVOL(1) diff --git a/regress/man/TH/mdocdate.in b/regress/man/TH/mdocdate.in new file mode 100644 index 00000000..1def0a1c --- /dev/null +++ b/regress/man/TH/mdocdate.in @@ -0,0 +1,5 @@ +.TH TH-MDOCDATE 1 "July 2, 2011" source +.SH NAME +TH-mdocdate \- standard mdoc(7) date format +.SH DESCRIPTION +Some text. diff --git a/regress/man/TH/mdocdate.out_ascii b/regress/man/TH/mdocdate.out_ascii new file mode 100644 index 00000000..538c4fca --- /dev/null +++ b/regress/man/TH/mdocdate.out_ascii @@ -0,0 +1,13 @@ +TH-MDOCDATE(1) General Commands Manual TH-MDOCDATE(1) + + + +NNAAMMEE + TH-mdocdate - standard mdoc(7) date format + +DDEESSCCRRIIPPTTIIOONN + Some text. + + + +source July 2, 2011 TH-MDOCDATE(1) diff --git a/regress/man/TH/noTH.in b/regress/man/TH/noTH.in new file mode 100644 index 00000000..1b1d9a69 --- /dev/null +++ b/regress/man/TH/noTH.in @@ -0,0 +1,4 @@ +.SH NAME +TH-noTH \- TH macro missing +.SH DESCRIPTION +some text diff --git a/regress/man/TH/noTH.out_lint b/regress/man/TH/noTH.out_lint new file mode 100644 index 00000000..01b7b045 --- /dev/null +++ b/regress/man/TH/noTH.out_lint @@ -0,0 +1,2 @@ +mandoc: noTH.in: WARNING: missing manual title, using "" +mandoc: noTH.in: WARNING: missing date, using today's date diff --git a/regress/man/TH/noarg.in b/regress/man/TH/noarg.in new file mode 100644 index 00000000..3c15e942 --- /dev/null +++ b/regress/man/TH/noarg.in @@ -0,0 +1,5 @@ +.TH +.SH NAME +TH-noarg \- no arguments to the TH macro +.SH DESCRIPTION +some text diff --git a/regress/man/TH/noarg.out_ascii b/regress/man/TH/noarg.out_ascii new file mode 100644 index 00000000..2857a908 --- /dev/null +++ b/regress/man/TH/noarg.out_ascii @@ -0,0 +1,13 @@ +() () + + + +NNAAMMEE + TH-noarg - no arguments to the TH macro + +DDEESSCCRRIIPPTTIIOONN + some text + + + + () diff --git a/regress/man/TH/noarg.out_lint b/regress/man/TH/noarg.out_lint new file mode 100644 index 00000000..aa0b4eb0 --- /dev/null +++ b/regress/man/TH/noarg.out_lint @@ -0,0 +1,3 @@ +mandoc: noarg.in:1:2: WARNING: missing manual title, using "": TH +mandoc: noarg.in:1:2: WARNING: missing manual section, using "": TH +mandoc: noarg.in:1:2: WARNING: missing date, using today's date: TH diff --git a/regress/man/TH/nobody.in b/regress/man/TH/nobody.in new file mode 100644 index 00000000..ab1a47b3 --- /dev/null +++ b/regress/man/TH/nobody.in @@ -0,0 +1 @@ +.TH TH-NOBODY 1 "June 20, 2014" OpenBSD diff --git a/regress/man/TH/nobody.out_ascii b/regress/man/TH/nobody.out_ascii new file mode 100644 index 00000000..c9f369d4 --- /dev/null +++ b/regress/man/TH/nobody.out_ascii @@ -0,0 +1,5 @@ +TH-NOBODY(1) General Commands Manual TH-NOBODY(1) + + + +OpenBSD June 20, 2014 TH-NOBODY(1) diff --git a/regress/man/TH/nobody.out_lint b/regress/man/TH/nobody.out_lint new file mode 100644 index 00000000..f5439fcd --- /dev/null +++ b/regress/man/TH/nobody.out_lint @@ -0,0 +1 @@ +mandoc: nobody.in: WARNING: no document body diff --git a/regress/man/TH/onearg.in b/regress/man/TH/onearg.in new file mode 100644 index 00000000..fe77903e --- /dev/null +++ b/regress/man/TH/onearg.in @@ -0,0 +1,5 @@ +.TH TH-ONEARG +.SH NAME +TH-onearg \- only one argument to the TH macro +.SH DESCRIPTION +some text diff --git a/regress/man/TH/onearg.out_ascii b/regress/man/TH/onearg.out_ascii new file mode 100644 index 00000000..08fb66af --- /dev/null +++ b/regress/man/TH/onearg.out_ascii @@ -0,0 +1,13 @@ +TH-ONEARG() TH-ONEARG() + + + +NNAAMMEE + TH-onearg - only one argument to the TH macro + +DDEESSCCRRIIPPTTIIOONN + some text + + + + TH-ONEARG() diff --git a/regress/man/TH/onearg.out_lint b/regress/man/TH/onearg.out_lint new file mode 100644 index 00000000..e24e90f4 --- /dev/null +++ b/regress/man/TH/onearg.out_lint @@ -0,0 +1,2 @@ +mandoc: onearg.in:1:2: WARNING: missing manual section, using "": TH TH-ONEARG +mandoc: onearg.in:1:2: WARNING: missing date, using today's date: TH diff --git a/regress/man/TH/onlyyear.in b/regress/man/TH/onlyyear.in new file mode 100644 index 00000000..1762438f --- /dev/null +++ b/regress/man/TH/onlyyear.in @@ -0,0 +1,5 @@ +.TH TH-ONLYYEAR 1 2011 source +.SH NAME +TH-onlyyear \- the date has only a year +.SH DESCRIPTION +Some text. diff --git a/regress/man/TH/onlyyear.out_ascii b/regress/man/TH/onlyyear.out_ascii new file mode 100644 index 00000000..7b210a12 --- /dev/null +++ b/regress/man/TH/onlyyear.out_ascii @@ -0,0 +1,13 @@ +TH-ONLYYEAR(1) General Commands Manual TH-ONLYYEAR(1) + + + +NNAAMMEE + TH-onlyyear - the date has only a year + +DDEESSCCRRIIPPTTIIOONN + Some text. + + + +source 2011 TH-ONLYYEAR(1) diff --git a/regress/man/TH/sixargs.in b/regress/man/TH/sixargs.in new file mode 100644 index 00000000..5594818e --- /dev/null +++ b/regress/man/TH/sixargs.in @@ -0,0 +1,5 @@ +.TH TH-SIXARGS 1 "January 16, 2011" OpenBSD regress SIX +.SH NAME +TH-sixargs \- six arguments to the TH macro +.SH DESCRIPTION +some text diff --git a/regress/man/TH/sixargs.out_ascii b/regress/man/TH/sixargs.out_ascii new file mode 100644 index 00000000..3e02362e --- /dev/null +++ b/regress/man/TH/sixargs.out_ascii @@ -0,0 +1,13 @@ +TH-SIXARGS(1) regress TH-SIXARGS(1) + + + +NNAAMMEE + TH-sixargs - six arguments to the TH macro + +DDEESSCCRRIIPPTTIIOONN + some text + + + +OpenBSD January 16, 2011 TH-SIXARGS(1) diff --git a/regress/man/TH/sixargs.out_lint b/regress/man/TH/sixargs.out_lint new file mode 100644 index 00000000..9ac7a838 --- /dev/null +++ b/regress/man/TH/sixargs.out_lint @@ -0,0 +1 @@ +mandoc: sixargs.in:1:53: ERROR: skipping excess arguments: TH ... SIX diff --git a/regress/man/TH/twoargs.in b/regress/man/TH/twoargs.in new file mode 100644 index 00000000..6048321a --- /dev/null +++ b/regress/man/TH/twoargs.in @@ -0,0 +1,5 @@ +.TH TH-TWOARGS +.SH NAME +TH-twoargs \- only two arguments to the TH macro +.SH DESCRIPTION +some text diff --git a/regress/man/TH/twoargs.out_ascii b/regress/man/TH/twoargs.out_ascii new file mode 100644 index 00000000..b05312fd --- /dev/null +++ b/regress/man/TH/twoargs.out_ascii @@ -0,0 +1,13 @@ +TH-TWOARGS() TH-TWOARGS() + + + +NNAAMMEE + TH-twoargs - only two arguments to the TH macro + +DDEESSCCRRIIPPTTIIOONN + some text + + + + TH-TWOARGS() diff --git a/regress/man/TH/twoargs.out_lint b/regress/man/TH/twoargs.out_lint new file mode 100644 index 00000000..ce7c74eb --- /dev/null +++ b/regress/man/TH/twoargs.out_lint @@ -0,0 +1,2 @@ +mandoc: twoargs.in:1:2: WARNING: missing manual section, using "": TH TH-TWOARGS +mandoc: twoargs.in:1:2: WARNING: missing date, using today's date: TH -- cgit v1.2.3-56-ge451