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/Bd | |
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/Bd')
32 files changed, 558 insertions, 0 deletions
diff --git a/regress/mdoc/Bd/Makefile b/regress/mdoc/Bd/Makefile new file mode 100644 index 00000000..817d9fe7 --- /dev/null +++ b/regress/mdoc/Bd/Makefile @@ -0,0 +1,25 @@ +# $OpenBSD: Makefile,v 1.18 2014/12/24 23:31:59 schwarze Exp $ + +REGRESS_TARGETS = beforeNAME blank centered nested spacing +REGRESS_TARGETS += badargs empty offset-empty offset-neg +REGRESS_TARGETS += break broken unclosed + +LINT_TARGETS = beforeNAME blank nested badargs break broken unclosed + +SKIP_TMAN = beforeNAME centered + +# groff-1.22.3 defects: +# - a display breaking another block continues indefinitely +# - negative offsets take no effect, but advance the indention on exit + +SKIP_GROFF = break offset-neg + +# adjustment is disabled in groff for now + +SKIP_GROFF += centered + +# groff handles content before NAME differently + +SKIP_GROFF += beforeNAME + +.include <bsd.regress.mk> diff --git a/regress/mdoc/Bd/badargs.in b/regress/mdoc/Bd/badargs.in new file mode 100644 index 00000000..0d8b3f4d --- /dev/null +++ b/regress/mdoc/Bd/badargs.in @@ -0,0 +1,51 @@ +.Dd October 27, 2015 +.Dt BD-BADARGS 1 +.Os OpenBSD +.Sh NAME +.Nm Bd-badargs +.Nd display block with bad arguments +.Sh DESCRIPTION +trailing -offset: +.Bd -ragged -offset +is +ignored +.Ed tail argument +double -compact and -offset: +.Bd -ragged -compact -offset 42n -compact -offset 6n +last +wins +.Ed +no type: +.Bd -offset 0n -bogus args +displayed +text +.Ed +double type: +.Bd -ragged -compact -unfilled +ragged +unfilled +.Ed +.Bd -unfilled -compact -ragged +unfilled +ragged +.Ed +file /dev/null: +.Bd -ragged -file /dev/null -offset indent +ragged +offset indent +.Ed +trailing -file: +.Bd -ragged -offset indent -file +ragged +offset indent +.Ed +missing -file argument: +.Bd -ragged -offset indent -file -compact +ragged +offset indent +.Ed +no argument whatsoever: +.Bd +no +argument +.Ed diff --git a/regress/mdoc/Bd/badargs.out_ascii b/regress/mdoc/Bd/badargs.out_ascii new file mode 100644 index 00000000..1a123a6c --- /dev/null +++ b/regress/mdoc/Bd/badargs.out_ascii @@ -0,0 +1,30 @@ +BD-BADARGS(1) General Commands Manual BD-BADARGS(1) + +NNAAMMEE + BBdd--bbaaddaarrggss - display block with bad arguments + +DDEESSCCRRIIPPTTIIOONN + trailing -offset: + + is ignored + double -compact and -offset: + last wins + no type: + + displayed text + double type: + ragged unfilled + unfilled + ragged + file /dev/null: + + ragged offset indent + trailing -file: + + ragged offset indent + missing -file argument: + + ragged offset indent + no argument whatsoever: no argument + +OpenBSD October 27, 2015 OpenBSD diff --git a/regress/mdoc/Bd/badargs.out_lint b/regress/mdoc/Bd/badargs.out_lint new file mode 100644 index 00000000..10c9cb02 --- /dev/null +++ b/regress/mdoc/Bd/badargs.out_lint @@ -0,0 +1,12 @@ +mandoc: badargs.in:12:2: ERROR: skipping all arguments: Ed tail argument +mandoc: badargs.in:19:16: ERROR: skipping excess arguments: Bd ... -bogus +mandoc: badargs.in:9:13: WARNING: empty argument, using 0n: Bd -offset +mandoc: badargs.in:14:34: WARNING: duplicate argument: Bd -compact +mandoc: badargs.in:14:43: WARNING: duplicate argument: Bd -offset 6n +mandoc: badargs.in:19:2: WARNING: missing display type, using -ragged: Bd +mandoc: badargs.in:24:2: WARNING: skipping duplicate display type: Bd -unfilled +mandoc: badargs.in:28:2: WARNING: skipping duplicate display type: Bd -ragged +mandoc: badargs.in:33:2: ERROR: NOT IMPLEMENTED: Bd -file +mandoc: badargs.in:38:2: ERROR: NOT IMPLEMENTED: Bd -file +mandoc: badargs.in:43:2: ERROR: NOT IMPLEMENTED: Bd -file +mandoc: badargs.in:48:2: ERROR: skipping display without arguments: Bd diff --git a/regress/mdoc/Bd/beforeNAME.in b/regress/mdoc/Bd/beforeNAME.in new file mode 100644 index 00000000..f264471f --- /dev/null +++ b/regress/mdoc/Bd/beforeNAME.in @@ -0,0 +1,15 @@ +.Dd July 28, 2014 +.Dt BD-BEFORENAME 1 +.Os OpenBSD +.Bd -centered +Building and Debugging NetBSD Kernels +.br +David A. Holland +.br +August 17, 2009 +.Ed +.Sh NAME +.Nm Bd-beforename +.Nd title and author block before the NAME section +.Sh DESCRIPTION +some text diff --git a/regress/mdoc/Bd/beforeNAME.out_ascii b/regress/mdoc/Bd/beforeNAME.out_ascii new file mode 100644 index 00000000..3978941d --- /dev/null +++ b/regress/mdoc/Bd/beforeNAME.out_ascii @@ -0,0 +1,13 @@ +BD-BEFORENAME(1) General Commands Manual BD-BEFORENAME(1) + + Building and Debugging NetBSD Kernels + David A. Holland + August 17, 2009 + +NNAAMMEE + BBdd--bbeeffoorreennaammee - title and author block before the NAME section + +DDEESSCCRRIIPPTTIIOONN + some text + +OpenBSD July 28, 2014 OpenBSD diff --git a/regress/mdoc/Bd/beforeNAME.out_lint b/regress/mdoc/Bd/beforeNAME.out_lint new file mode 100644 index 00000000..a5659948 --- /dev/null +++ b/regress/mdoc/Bd/beforeNAME.out_lint @@ -0,0 +1 @@ +mandoc: beforeNAME.in:4:2: WARNING: content before first section header: Bd diff --git a/regress/mdoc/Bd/blank.in b/regress/mdoc/Bd/blank.in new file mode 100644 index 00000000..ca95e6da --- /dev/null +++ b/regress/mdoc/Bd/blank.in @@ -0,0 +1,31 @@ +.Dd January 2, 2011 +.Dt BD-BLANK 1 +.Os OpenBSD +.Sh NAME +.Nm Bd-blank +.Nd handling of blank lines in literal displays +.Sh DESCRIPTION +.Bd -literal +completely blank line: + +line containing a blank character: + +line containing two blank characters: + +line containing space tab space: + +line starting with a blank character: + x +line starting with two blank characters: + x +line ending in one blank character: +line ending in two blank characters: +line ending in space tab space: +line containing a Pp macro: +.Pp +finally, a trailing blank line: + +.Ed +An empty one-line literal display: +.Dl +end of test document diff --git a/regress/mdoc/Bd/blank.out_ascii b/regress/mdoc/Bd/blank.out_ascii new file mode 100644 index 00000000..de03e318 --- /dev/null +++ b/regress/mdoc/Bd/blank.out_ascii @@ -0,0 +1,29 @@ +BD-BLANK(1) General Commands Manual BD-BLANK(1) + +NNAAMMEE + BBdd--bbllaannkk - handling of blank lines in literal displays + +DDEESSCCRRIIPPTTIIOONN + completely blank line: + + line containing a blank character: + + line containing two blank characters: + + line containing space tab space: + + line starting with a blank character: + x + line starting with two blank characters: + x + line ending in one blank character: + line ending in two blank characters: + line ending in space tab space: + line containing a Pp macro: + + finally, a trailing blank line: + + An empty one-line literal display: + end of test document + +OpenBSD January 2, 2011 OpenBSD diff --git a/regress/mdoc/Bd/blank.out_lint b/regress/mdoc/Bd/blank.out_lint new file mode 100644 index 00000000..fde72ad0 --- /dev/null +++ b/regress/mdoc/Bd/blank.out_lint @@ -0,0 +1,8 @@ +mandoc: blank.in:12:1: WARNING: whitespace at end of input line +mandoc: blank.in:14:1: WARNING: whitespace at end of input line +mandoc: blank.in:16:1: WARNING: whitespace at end of input line +mandoc: blank.in:21:36: WARNING: whitespace at end of input line +mandoc: blank.in:22:37: WARNING: whitespace at end of input line +mandoc: blank.in:23:32: WARNING: whitespace at end of input line +mandoc: blank.in:30:8: WARNING: whitespace at end of input line +mandoc: blank.in:30:2: WARNING: empty block: Dl diff --git a/regress/mdoc/Bd/break.in b/regress/mdoc/Bd/break.in new file mode 100644 index 00000000..7eaf663a --- /dev/null +++ b/regress/mdoc/Bd/break.in @@ -0,0 +1,15 @@ +.Dd November 10, 2012 +.Dt BD-BREAK 1 +.Os OpenBSD +.Sh NAME +.Nm Bd-break +.Nd display breaking another block +.Sh DESCRIPTION +before both +.Bd -ragged -offset indent +before bracket +.Bo inside both +.Ed +after display +.Bc +after both diff --git a/regress/mdoc/Bd/break.out_ascii b/regress/mdoc/Bd/break.out_ascii new file mode 100644 index 00000000..42f9eb25 --- /dev/null +++ b/regress/mdoc/Bd/break.out_ascii @@ -0,0 +1,12 @@ +BD-BREAK(1) General Commands Manual BD-BREAK(1) + +NNAAMMEE + BBdd--bbrreeaakk - display breaking another block + +DDEESSCCRRIIPPTTIIOONN + before both + + before bracket [inside both + after display] after both + +OpenBSD November 10, 2012 OpenBSD diff --git a/regress/mdoc/Bd/break.out_lint b/regress/mdoc/Bd/break.out_lint new file mode 100644 index 00000000..aede3c30 --- /dev/null +++ b/regress/mdoc/Bd/break.out_lint @@ -0,0 +1 @@ +mandoc: break.in:12:2: WARNING: blocks badly nested: Bd breaks Bo diff --git a/regress/mdoc/Bd/broken.in b/regress/mdoc/Bd/broken.in new file mode 100644 index 00000000..b7271a67 --- /dev/null +++ b/regress/mdoc/Bd/broken.in @@ -0,0 +1,14 @@ +.Dd November 10, 2012 +.Dt BD-BROKEN 1 +.Os OpenBSD +.Sh NAME +.Nm Bd-broken +.Nd display broken by another block +.Sh DESCRIPTION +before both +.Bo before display +.Bd -ragged -offset indent +inside both +.Bc +after bracket +.Ed diff --git a/regress/mdoc/Bd/broken.out_ascii b/regress/mdoc/Bd/broken.out_ascii new file mode 100644 index 00000000..5b24c21b --- /dev/null +++ b/regress/mdoc/Bd/broken.out_ascii @@ -0,0 +1,11 @@ +BD-BROKEN(1) General Commands Manual BD-BROKEN(1) + +NNAAMMEE + BBdd--bbrrookkeenn - display broken by another block + +DDEESSCCRRIIPPTTIIOONN + before both [before display + + inside both] after bracket + +OpenBSD November 10, 2012 OpenBSD diff --git a/regress/mdoc/Bd/broken.out_lint b/regress/mdoc/Bd/broken.out_lint new file mode 100644 index 00000000..44688afa --- /dev/null +++ b/regress/mdoc/Bd/broken.out_lint @@ -0,0 +1 @@ +mandoc: broken.in:12:2: WARNING: blocks badly nested: Bo breaks Bd diff --git a/regress/mdoc/Bd/centered.in b/regress/mdoc/Bd/centered.in new file mode 100644 index 00000000..d989ddb8 --- /dev/null +++ b/regress/mdoc/Bd/centered.in @@ -0,0 +1,15 @@ +.Dd July 28, 2014 +.Dt BD-CENTERED 1 +.Os OpenBSD +.Sh NAME +.Nm Bd-centered +.Nd centered display blocks +.Sh DESCRIPTION +preceding text +.br +.Bd -centered -offset indent +first line of the block +.br +second line +.Ed +following text diff --git a/regress/mdoc/Bd/centered.out_ascii b/regress/mdoc/Bd/centered.out_ascii new file mode 100644 index 00000000..1f0bb194 --- /dev/null +++ b/regress/mdoc/Bd/centered.out_ascii @@ -0,0 +1,13 @@ +BD-CENTERED(1) General Commands Manual BD-CENTERED(1) + +NNAAMMEE + BBdd--cceenntteerreedd - centered display blocks + +DDEESSCCRRIIPPTTIIOONN + preceding text + + first line of the block + second line + following text + +OpenBSD July 28, 2014 OpenBSD diff --git a/regress/mdoc/Bd/empty.in b/regress/mdoc/Bd/empty.in new file mode 100644 index 00000000..56506e69 --- /dev/null +++ b/regress/mdoc/Bd/empty.in @@ -0,0 +1,20 @@ +.Dd January 2, 2010 +.Dt BD-EMPTY 1 +.Os OpenBSD +.Sh NAME +.Nm Bd-empty +.Nd empty displays +.Sh DESCRIPTION +An empty filled display: +.Bd -filled +.Ed +An empty literal display: +.Bd -literal +.Ed +An empty ragged display: +.Bd -ragged +.Ed +An empty unfilled display: +.Bd -unfilled +.Ed +end of test document diff --git a/regress/mdoc/Bd/empty.out_ascii b/regress/mdoc/Bd/empty.out_ascii new file mode 100644 index 00000000..fefe8351 --- /dev/null +++ b/regress/mdoc/Bd/empty.out_ascii @@ -0,0 +1,17 @@ +BD-EMPTY(1) General Commands Manual BD-EMPTY(1) + +NNAAMMEE + BBdd--eemmppttyy - empty displays + +DDEESSCCRRIIPPTTIIOONN + An empty filled display: + + An empty literal display: + + An empty ragged display: + + An empty unfilled display: + + end of test document + +OpenBSD January 2, 2010 OpenBSD diff --git a/regress/mdoc/Bd/nested.in b/regress/mdoc/Bd/nested.in new file mode 100644 index 00000000..a5455a61 --- /dev/null +++ b/regress/mdoc/Bd/nested.in @@ -0,0 +1,42 @@ +.Dd November 18, 2012 +.Dt BD-NESTED 1 +.Os OpenBSD +.Sh NAME +.Nm Bd-nested +.Nd nested displays and lists +.Sh DESCRIPTION +regular +text +.Bd -ragged -offset indent +outer +text (default indent) +.Bd -ragged -offset indent +inner +text (default indent) +.Ed +outer +text +.Ed +regular +text +.Bd -ragged -offset 4n +outer text (4n) +.Bd -ragged -offset 2n +inner text (2n) +.Ed +outer text +.Bl -tag -width 6n +.It tag +text +.El +outer text +.Ed +regular text +.Bl -tag -width 6n +.It tag +outer text +.Bd -ragged -offset 2n +inner text (2n) +.Ed +outer text +.El diff --git a/regress/mdoc/Bd/nested.out_ascii b/regress/mdoc/Bd/nested.out_ascii new file mode 100644 index 00000000..439611d8 --- /dev/null +++ b/regress/mdoc/Bd/nested.out_ascii @@ -0,0 +1,29 @@ +BD-NESTED(1) General Commands Manual BD-NESTED(1) + +NNAAMMEE + BBdd--nneesstteedd - nested displays and lists + +DDEESSCCRRIIPPTTIIOONN + regular text + + outer text (default indent) + + inner text (default indent) + outer text + regular text + + outer text (4n) + + inner text (2n) + outer text + + tag text + outer text + regular text + + tag outer text + + inner text (2n) + outer text + +OpenBSD November 18, 2012 OpenBSD diff --git a/regress/mdoc/Bd/nested.out_lint b/regress/mdoc/Bd/nested.out_lint new file mode 100644 index 00000000..5476f7d7 --- /dev/null +++ b/regress/mdoc/Bd/nested.out_lint @@ -0,0 +1,2 @@ +mandoc: nested.in:13:2: WARNING: nested displays are not portable: Bd in Bd +mandoc: nested.in:24:2: WARNING: nested displays are not portable: Bd in Bd diff --git a/regress/mdoc/Bd/offset-empty.in b/regress/mdoc/Bd/offset-empty.in new file mode 100644 index 00000000..32f2a593 --- /dev/null +++ b/regress/mdoc/Bd/offset-empty.in @@ -0,0 +1,31 @@ +.Dd November 20, 2014 +.Dt BD-OFFSET-EMPTY 1 +.Os OpenBSD +.Sh NAME +.Nm Bd-offset-empty +.Nd no argument specified to Bd offset +.Sh DESCRIPTION +.Bd -literal -offset +Bd literal offset empty +.Ed +.Bd -literal -offset left +Bd literal offset left +.Ed +.Bd -literal -offset indent +Bd literal offset indent +.Ed +.Bd -literal -offset indent-two +Bd literal offset indent-two +.Ed +.Bd -literal -offset 4n +Bd literal offset 4n +.Ed +.Bd -literal -offset mystring +Bd literal offset mystring +.Ed +.Bd -literal -offset Ds +Bd literal offset Ds +.Ed +.Bd -literal -offset 78n +Bd literal offset 78n +.Ed diff --git a/regress/mdoc/Bd/offset-empty.out_ascii b/regress/mdoc/Bd/offset-empty.out_ascii new file mode 100644 index 00000000..e4e2659c --- /dev/null +++ b/regress/mdoc/Bd/offset-empty.out_ascii @@ -0,0 +1,23 @@ +BD-OFFSET-EMPTY(1) General Commands Manual BD-OFFSET-EMPTY(1) + +NNAAMMEE + BBdd--ooffffsseett--eemmppttyy - no argument specified to Bd offset + +DDEESSCCRRIIPPTTIIOONN + Bd literal offset empty + + Bd literal offset left + + Bd literal offset indent + + Bd literal offset indent-two + + Bd literal offset 4n + + Bd literal offset mystring + + Bd literal offset Ds + + Bd literal offset 78n + +OpenBSD November 20, 2014 OpenBSD diff --git a/regress/mdoc/Bd/offset-neg.in b/regress/mdoc/Bd/offset-neg.in new file mode 100644 index 00000000..30f0fe73 --- /dev/null +++ b/regress/mdoc/Bd/offset-neg.in @@ -0,0 +1,24 @@ +.Dd December 24, 2014 +.Dt BD-INDENT 1 +.Os OpenBSD +.Sh NAME +.Nm Bd-indent +.Nd indenting display blocks +.Sh DESCRIPTION +regular text +.Bd -ragged -offset 8n +outer display +.Bd -ragged -offset -5n +inner display +.Ed +outer display +.Ed +regular text +.Bd -ragged -offset -3n +outer display +.Bd -ragged -offset 8n +inner display +.Ed +outer display +.Ed +regular text diff --git a/regress/mdoc/Bd/offset-neg.out_ascii b/regress/mdoc/Bd/offset-neg.out_ascii new file mode 100644 index 00000000..0ecf61cf --- /dev/null +++ b/regress/mdoc/Bd/offset-neg.out_ascii @@ -0,0 +1,21 @@ +BD-INDENT(1) General Commands Manual BD-INDENT(1) + +NNAAMMEE + BBdd--iinnddeenntt - indenting display blocks + +DDEESSCCRRIIPPTTIIOONN + regular text + + outer display + + inner display + outer display + regular text + + outer display + + inner display + outer display + regular text + +OpenBSD December 24, 2014 OpenBSD diff --git a/regress/mdoc/Bd/spacing.in b/regress/mdoc/Bd/spacing.in new file mode 100644 index 00000000..95d89935 --- /dev/null +++ b/regress/mdoc/Bd/spacing.in @@ -0,0 +1,16 @@ +.Dd July 6, 2012 +.Dt BD-SPACING 1 +.Os OpenBSD +.Sh NAME +.Nm Bd-spacing +.Nd vertical spacing around display blocks +.Sh DESCRIPTION +preceding text +.Bd -ragged -offset indent +display block +.Ed +text between displays +.Bd -ragged -offset indent -compact +compact display block +.Ed +following text diff --git a/regress/mdoc/Bd/spacing.out_ascii b/regress/mdoc/Bd/spacing.out_ascii new file mode 100644 index 00000000..de8bee5c --- /dev/null +++ b/regress/mdoc/Bd/spacing.out_ascii @@ -0,0 +1,14 @@ +BD-SPACING(1) General Commands Manual BD-SPACING(1) + +NNAAMMEE + BBdd--ssppaacciinngg - vertical spacing around display blocks + +DDEESSCCRRIIPPTTIIOONN + preceding text + + display block + text between displays + compact display block + following text + +OpenBSD July 6, 2012 OpenBSD diff --git a/regress/mdoc/Bd/unclosed.in b/regress/mdoc/Bd/unclosed.in new file mode 100644 index 00000000..17c2c51d --- /dev/null +++ b/regress/mdoc/Bd/unclosed.in @@ -0,0 +1,10 @@ +.Dd July 7, 2014 +.Dt BD-UNCLOSED 1 +.Os OpenBSD +.Sh NAME +.Nm Bd-unclosed +.Nd display still open at the end of the file +.Sh DESCRIPTION +before display +.Bd -ragged -offset indent +inside display diff --git a/regress/mdoc/Bd/unclosed.out_ascii b/regress/mdoc/Bd/unclosed.out_ascii new file mode 100644 index 00000000..edea5b09 --- /dev/null +++ b/regress/mdoc/Bd/unclosed.out_ascii @@ -0,0 +1,11 @@ +BD-UNCLOSED(1) General Commands Manual BD-UNCLOSED(1) + +NNAAMMEE + BBdd--uunncclloosseedd - display still open at the end of the file + +DDEESSCCRRIIPPTTIIOONN + before display + + inside display + +OpenBSD July 7, 2014 OpenBSD diff --git a/regress/mdoc/Bd/unclosed.out_lint b/regress/mdoc/Bd/unclosed.out_lint new file mode 100644 index 00000000..8741513e --- /dev/null +++ b/regress/mdoc/Bd/unclosed.out_lint @@ -0,0 +1 @@ +mandoc: unclosed.in:9:2: ERROR: appending missing end of block: Bd |