From 7ee40f33715d4ee91d55de3a93e2109f875e5ee3 Mon Sep 17 00:00:00 2001 From: schwarze Date: Thu, 14 Aug 2014 02:00:52 +0000 Subject: [PATCH] new regression tests collected during recent work --- regress/usr.bin/mandoc/man/B/Makefile | 6 +++++ regress/usr.bin/mandoc/man/B/args.in | 13 ++++++++++ regress/usr.bin/mandoc/man/B/args.out_ascii | 14 +++++++++++ regress/usr.bin/mandoc/man/B/args.out_lint | 1 + regress/usr.bin/mandoc/man/Makefile | 4 +-- regress/usr.bin/mandoc/man/SH/Makefile | 8 ++++++ regress/usr.bin/mandoc/man/SH/broken.in | 6 +++++ .../usr.bin/mandoc/man/SH/broken.out_ascii | 13 ++++++++++ regress/usr.bin/mandoc/man/SH/broken.out_lint | 1 + regress/usr.bin/mandoc/man/SH/broken_eline.in | 7 ++++++ .../mandoc/man/SH/broken_eline.out_ascii | 13 ++++++++++ .../mandoc/man/SH/broken_eline.out_lint | 2 ++ regress/usr.bin/mandoc/man/SH/noarg.in | 11 ++++++++ regress/usr.bin/mandoc/man/SH/noarg.out_ascii | 17 +++++++++++++ regress/usr.bin/mandoc/man/SH/noarg.out_lint | 2 ++ regress/usr.bin/mandoc/man/TH/Makefile | 5 ++-- regress/usr.bin/mandoc/man/TH/noarg.out_lint | 3 +++ regress/usr.bin/mandoc/man/TH/onearg.out_lint | 2 ++ regress/usr.bin/mandoc/mdoc/An/Makefile | 5 ++-- regress/usr.bin/mandoc/mdoc/An/break.out_lint | 2 ++ regress/usr.bin/mandoc/mdoc/Bd/Makefile | 12 ++++++--- regress/usr.bin/mandoc/mdoc/Bd/centered.in | 15 +++++++++++ .../usr.bin/mandoc/mdoc/Bd/centered.out_ascii | 13 ++++++++++ regress/usr.bin/mandoc/mdoc/Bl/Makefile | 8 +++--- regress/usr.bin/mandoc/mdoc/Bl/bareIt.in | 10 ++++++++ .../usr.bin/mandoc/mdoc/Bl/bareIt.out_ascii | 10 ++++++++ .../usr.bin/mandoc/mdoc/Bl/bareIt.out_lint | 1 + .../usr.bin/mandoc/mdoc/Bl/column.out_lint | 4 +++ regress/usr.bin/mandoc/mdoc/Dd/Makefile | 19 ++++++++++++++ .../mdoc/{Dt/baddate.in => Dd/badarg.in} | 6 ++--- .../usr.bin/mandoc/mdoc/Dd/badarg.out_ascii | 9 +++++++ .../usr.bin/mandoc/mdoc/Dd/badarg.out_lint | 1 + regress/usr.bin/mandoc/mdoc/Dd/dupe.in | 11 ++++++++ regress/usr.bin/mandoc/mdoc/Dd/dupe.out_ascii | 9 +++++++ regress/usr.bin/mandoc/mdoc/Dd/dupe.out_lint | 2 ++ regress/usr.bin/mandoc/mdoc/Dd/late.in | 9 +++++++ regress/usr.bin/mandoc/mdoc/Dd/late.out_ascii | 9 +++++++ regress/usr.bin/mandoc/mdoc/Dd/late.out_lint | 1 + regress/usr.bin/mandoc/mdoc/Dd/manarg.in | 8 ++++++ .../usr.bin/mandoc/mdoc/Dd/manarg.out_ascii | 9 +++++++ .../usr.bin/mandoc/mdoc/Dd/manarg.out_lint | 0 regress/usr.bin/mandoc/mdoc/Dd/noarg.in | 8 ++++++ regress/usr.bin/mandoc/mdoc/Dd/noarg.out_lint | 1 + regress/usr.bin/mandoc/mdoc/Dd/order.in | 8 ++++++ .../usr.bin/mandoc/mdoc/Dd/order.out_ascii | 9 +++++++ regress/usr.bin/mandoc/mdoc/Dd/order.out_lint | 1 + regress/usr.bin/mandoc/mdoc/Dt/Makefile | 23 +++++++++++------ .../usr.bin/mandoc/mdoc/Dt/baddate.out_ascii | 9 ------- .../usr.bin/mandoc/mdoc/Dt/baddate.out_lint | 1 - regress/usr.bin/mandoc/mdoc/Dt/late.in | 9 +++++++ regress/usr.bin/mandoc/mdoc/Dt/late.out_ascii | 9 +++++++ regress/usr.bin/mandoc/mdoc/Dt/late.out_lint | 2 ++ regress/usr.bin/mandoc/mdoc/Dt/lateos.in | 9 ------- .../usr.bin/mandoc/mdoc/Dt/lateos.out_ascii | 9 ------- .../usr.bin/mandoc/mdoc/Dt/lateos.out_lint | 1 - regress/usr.bin/mandoc/mdoc/Dt/missing.in | 7 ++++++ .../usr.bin/mandoc/mdoc/Dt/missing.out_ascii | 9 +++++++ .../usr.bin/mandoc/mdoc/Dt/missing.out_lint | 1 + regress/usr.bin/mandoc/mdoc/Dt/noarg.in | 8 ++++++ .../usr.bin/mandoc/mdoc/Dt/noarg.out_ascii | 9 +++++++ regress/usr.bin/mandoc/mdoc/Dt/noarg.out_lint | 1 + regress/usr.bin/mandoc/mdoc/Dt/nodate.in | 8 ------ .../usr.bin/mandoc/mdoc/Dt/nodate.out_lint | 1 - regress/usr.bin/mandoc/mdoc/Dt/noos.out_lint | 1 - regress/usr.bin/mandoc/mdoc/Dt/nosec.in | 8 ++++++ .../usr.bin/mandoc/mdoc/Dt/nosec.out_ascii | 9 +++++++ regress/usr.bin/mandoc/mdoc/Dt/nosec.out_lint | 1 + regress/usr.bin/mandoc/mdoc/Ex/Makefile | 11 ++++++++ regress/usr.bin/mandoc/mdoc/Ex/args.in | 15 +++++++++++ regress/usr.bin/mandoc/mdoc/Ex/args.out_ascii | 16 ++++++++++++ regress/usr.bin/mandoc/mdoc/Ex/noname.in | 15 +++++++++++ .../usr.bin/mandoc/mdoc/Ex/noname.out_ascii | 16 ++++++++++++ .../usr.bin/mandoc/mdoc/Ex/noname.out_lint | 2 ++ regress/usr.bin/mandoc/mdoc/Ex/nostd.in | 15 +++++++++++ .../usr.bin/mandoc/mdoc/Ex/nostd.out_ascii | 16 ++++++++++++ regress/usr.bin/mandoc/mdoc/Ex/nostd.out_lint | 3 +++ regress/usr.bin/mandoc/mdoc/Makefile | 6 ++--- regress/usr.bin/mandoc/mdoc/Os/Makefile | 6 +++++ regress/usr.bin/mandoc/mdoc/Os/dupe.in | 11 ++++++++ regress/usr.bin/mandoc/mdoc/Os/dupe.out_ascii | 9 +++++++ regress/usr.bin/mandoc/mdoc/Os/dupe.out_lint | 3 +++ regress/usr.bin/mandoc/mdoc/Os/late.in | 9 +++++++ regress/usr.bin/mandoc/mdoc/Os/late.out_ascii | 9 +++++++ regress/usr.bin/mandoc/mdoc/Os/late.out_lint | 1 + .../mandoc/mdoc/{Dt/noos.in => Os/missing.in} | 6 ++--- .../usr.bin/mandoc/mdoc/Os/missing.out_ascii | 9 +++++++ .../usr.bin/mandoc/mdoc/Os/missing.out_lint | 1 + regress/usr.bin/mandoc/mdoc/Rv/Makefile | 11 ++++++++ regress/usr.bin/mandoc/mdoc/Rv/args.in | 15 +++++++++++ regress/usr.bin/mandoc/mdoc/Rv/args.out_ascii | 22 ++++++++++++++++ regress/usr.bin/mandoc/mdoc/Rv/noname.in | 15 +++++++++++ .../usr.bin/mandoc/mdoc/Rv/noname.out_ascii | 22 ++++++++++++++++ .../usr.bin/mandoc/mdoc/Rv/noname.out_lint | 1 + regress/usr.bin/mandoc/mdoc/Rv/nostd.in | 15 +++++++++++ .../usr.bin/mandoc/mdoc/Rv/nostd.out_ascii | 22 ++++++++++++++++ regress/usr.bin/mandoc/mdoc/Rv/nostd.out_lint | 3 +++ regress/usr.bin/mandoc/mdoc/Sh/Makefile | 8 +++--- regress/usr.bin/mandoc/mdoc/Sh/subbefore.in | 14 +++++++++++ .../mandoc/mdoc/Sh/subbefore.out_ascii | 12 +++++++++ .../usr.bin/mandoc/mdoc/Sh/subbefore.out_lint | 1 + regress/usr.bin/mandoc/roff/Makefile | 4 +-- regress/usr.bin/mandoc/roff/it/Makefile | 5 ++-- regress/usr.bin/mandoc/roff/it/badarg.in | 17 +++++++++++++ .../usr.bin/mandoc/roff/it/badarg.out_ascii | 9 +++++++ .../usr.bin/mandoc/roff/it/badarg.out_lint | 2 ++ regress/usr.bin/mandoc/roff/scale/Makefile | 5 ++++ regress/usr.bin/mandoc/roff/scale/horiz.in | 25 +++++++++++++++++++ .../usr.bin/mandoc/roff/scale/horiz.out_ascii | 24 ++++++++++++++++++ 108 files changed, 818 insertions(+), 76 deletions(-) create mode 100644 regress/usr.bin/mandoc/man/B/Makefile create mode 100644 regress/usr.bin/mandoc/man/B/args.in create mode 100644 regress/usr.bin/mandoc/man/B/args.out_ascii create mode 100644 regress/usr.bin/mandoc/man/B/args.out_lint create mode 100644 regress/usr.bin/mandoc/man/SH/Makefile create mode 100644 regress/usr.bin/mandoc/man/SH/broken.in create mode 100644 regress/usr.bin/mandoc/man/SH/broken.out_ascii create mode 100644 regress/usr.bin/mandoc/man/SH/broken.out_lint create mode 100644 regress/usr.bin/mandoc/man/SH/broken_eline.in create mode 100644 regress/usr.bin/mandoc/man/SH/broken_eline.out_ascii create mode 100644 regress/usr.bin/mandoc/man/SH/broken_eline.out_lint create mode 100644 regress/usr.bin/mandoc/man/SH/noarg.in create mode 100644 regress/usr.bin/mandoc/man/SH/noarg.out_ascii create mode 100644 regress/usr.bin/mandoc/man/SH/noarg.out_lint create mode 100644 regress/usr.bin/mandoc/man/TH/noarg.out_lint create mode 100644 regress/usr.bin/mandoc/man/TH/onearg.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/An/break.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Bd/centered.in create mode 100644 regress/usr.bin/mandoc/mdoc/Bd/centered.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Bl/bareIt.in create mode 100644 regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Bl/column.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/Makefile rename regress/usr.bin/mandoc/mdoc/{Dt/baddate.in => Dd/badarg.in} (61%) create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/badarg.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/badarg.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/dupe.in create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/dupe.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/dupe.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/late.in create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/late.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/late.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/manarg.in create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/manarg.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/manarg.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/noarg.in create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/noarg.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/order.in create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/order.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Dd/order.out_lint delete mode 100644 regress/usr.bin/mandoc/mdoc/Dt/baddate.out_ascii delete mode 100644 regress/usr.bin/mandoc/mdoc/Dt/baddate.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Dt/late.in create mode 100644 regress/usr.bin/mandoc/mdoc/Dt/late.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Dt/late.out_lint delete mode 100644 regress/usr.bin/mandoc/mdoc/Dt/lateos.in delete mode 100644 regress/usr.bin/mandoc/mdoc/Dt/lateos.out_ascii delete mode 100644 regress/usr.bin/mandoc/mdoc/Dt/lateos.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Dt/missing.in create mode 100644 regress/usr.bin/mandoc/mdoc/Dt/missing.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Dt/missing.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Dt/noarg.in create mode 100644 regress/usr.bin/mandoc/mdoc/Dt/noarg.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Dt/noarg.out_lint delete mode 100644 regress/usr.bin/mandoc/mdoc/Dt/nodate.in delete mode 100644 regress/usr.bin/mandoc/mdoc/Dt/nodate.out_lint delete mode 100644 regress/usr.bin/mandoc/mdoc/Dt/noos.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Dt/nosec.in create mode 100644 regress/usr.bin/mandoc/mdoc/Dt/nosec.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Dt/nosec.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Ex/Makefile create mode 100644 regress/usr.bin/mandoc/mdoc/Ex/args.in create mode 100644 regress/usr.bin/mandoc/mdoc/Ex/args.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Ex/noname.in create mode 100644 regress/usr.bin/mandoc/mdoc/Ex/noname.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Ex/noname.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Ex/nostd.in create mode 100644 regress/usr.bin/mandoc/mdoc/Ex/nostd.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Ex/nostd.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Os/Makefile create mode 100644 regress/usr.bin/mandoc/mdoc/Os/dupe.in create mode 100644 regress/usr.bin/mandoc/mdoc/Os/dupe.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Os/dupe.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Os/late.in create mode 100644 regress/usr.bin/mandoc/mdoc/Os/late.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Os/late.out_lint rename regress/usr.bin/mandoc/mdoc/{Dt/noos.in => Os/missing.in} (61%) create mode 100644 regress/usr.bin/mandoc/mdoc/Os/missing.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Os/missing.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Rv/Makefile create mode 100644 regress/usr.bin/mandoc/mdoc/Rv/args.in create mode 100644 regress/usr.bin/mandoc/mdoc/Rv/args.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Rv/noname.in create mode 100644 regress/usr.bin/mandoc/mdoc/Rv/noname.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Rv/noname.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Rv/nostd.in create mode 100644 regress/usr.bin/mandoc/mdoc/Rv/nostd.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Rv/nostd.out_lint create mode 100644 regress/usr.bin/mandoc/mdoc/Sh/subbefore.in create mode 100644 regress/usr.bin/mandoc/mdoc/Sh/subbefore.out_ascii create mode 100644 regress/usr.bin/mandoc/mdoc/Sh/subbefore.out_lint create mode 100644 regress/usr.bin/mandoc/roff/it/badarg.in create mode 100644 regress/usr.bin/mandoc/roff/it/badarg.out_ascii create mode 100644 regress/usr.bin/mandoc/roff/it/badarg.out_lint create mode 100644 regress/usr.bin/mandoc/roff/scale/Makefile create mode 100644 regress/usr.bin/mandoc/roff/scale/horiz.in create mode 100644 regress/usr.bin/mandoc/roff/scale/horiz.out_ascii diff --git a/regress/usr.bin/mandoc/man/B/Makefile b/regress/usr.bin/mandoc/man/B/Makefile new file mode 100644 index 00000000000..8e4d72a9523 --- /dev/null +++ b/regress/usr.bin/mandoc/man/B/Makefile @@ -0,0 +1,6 @@ +# $OpenBSD: Makefile,v 1.1 2014/08/14 02:00:52 schwarze Exp $ + +REGRESS_TARGETS = args +LINT_TARGETS = args + +.include diff --git a/regress/usr.bin/mandoc/man/B/args.in b/regress/usr.bin/mandoc/man/B/args.in new file mode 100644 index 00000000000..817accfd133 --- /dev/null +++ b/regress/usr.bin/mandoc/man/B/args.in @@ -0,0 +1,13 @@ +.TH B-ARGS 1 "July 30, 2014" OpenBSD +.SH NAME +B-args \- arguments to font macros +.SH DESCRIPTION +This is +.B bold +text. +It also works with +.B +next line +scope. +It has no effect at the end of the file: +.B diff --git a/regress/usr.bin/mandoc/man/B/args.out_ascii b/regress/usr.bin/mandoc/man/B/args.out_ascii new file mode 100644 index 00000000000..928fc06e82c --- /dev/null +++ b/regress/usr.bin/mandoc/man/B/args.out_ascii @@ -0,0 +1,14 @@ +B-ARGS(1) OpenBSD Reference Manual B-ARGS(1) + + + +NNAAMMEE + B-args - arguments to font macros + +DDEESSCCRRIIPPTTIIOONN + This is bboolldd text. It also works with nneexxtt lliinnee scope. It has no + effect at the end of the file: + + + +OpenBSD July 30, 2014 B-ARGS(1) diff --git a/regress/usr.bin/mandoc/man/B/args.out_lint b/regress/usr.bin/mandoc/man/B/args.out_lint new file mode 100644 index 00000000000..bc20485edb6 --- /dev/null +++ b/regress/usr.bin/mandoc/man/B/args.out_lint @@ -0,0 +1 @@ +mandoc: args.in:13:2: WARNING: line scope broken: EOF breaks B diff --git a/regress/usr.bin/mandoc/man/Makefile b/regress/usr.bin/mandoc/man/Makefile index f600a3ae93c..b9c7885e100 100644 --- a/regress/usr.bin/mandoc/man/Makefile +++ b/regress/usr.bin/mandoc/man/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.14 2014/06/20 18:27:51 schwarze Exp $ +# $OpenBSD: Makefile,v 1.15 2014/08/14 02:00:52 schwarze Exp $ -SUBDIR = BI EX HP IP PD PP RS TH TP TS UR nf blank +SUBDIR = B BI EX HP IP PD PP RS SH TH TP TS UR nf blank .include "../Makefile.sub" .include diff --git a/regress/usr.bin/mandoc/man/SH/Makefile b/regress/usr.bin/mandoc/man/SH/Makefile new file mode 100644 index 00000000000..88123c3fb9b --- /dev/null +++ b/regress/usr.bin/mandoc/man/SH/Makefile @@ -0,0 +1,8 @@ +# $OpenBSD: Makefile,v 1.1 2014/08/14 02:00:52 schwarze Exp $ + +REGRESS_TARGETS = broken broken_eline noarg +LINT_TARGETS = broken broken_eline noarg + +SKIP_GROFF = broken broken_eline noarg + +.include diff --git a/regress/usr.bin/mandoc/man/SH/broken.in b/regress/usr.bin/mandoc/man/SH/broken.in new file mode 100644 index 00000000000..3d963ae1446 --- /dev/null +++ b/regress/usr.bin/mandoc/man/SH/broken.in @@ -0,0 +1,6 @@ +.TH SH-BROKEN 1 "July 30, 2014" OpenBSD +.SH NAME +SH-broken \- section header line scope broken by end of file +.SH DESCRIPTION +some text +.SH diff --git a/regress/usr.bin/mandoc/man/SH/broken.out_ascii b/regress/usr.bin/mandoc/man/SH/broken.out_ascii new file mode 100644 index 00000000000..3acd9681427 --- /dev/null +++ b/regress/usr.bin/mandoc/man/SH/broken.out_ascii @@ -0,0 +1,13 @@ +SH-BROKEN(1) OpenBSD Reference Manual SH-BROKEN(1) + + + +NNAAMMEE + SH-broken - section header line scope broken by end of file + +DDEESSCCRRIIPPTTIIOONN + some text + + + +OpenBSD July 30, 2014 SH-BROKEN(1) diff --git a/regress/usr.bin/mandoc/man/SH/broken.out_lint b/regress/usr.bin/mandoc/man/SH/broken.out_lint new file mode 100644 index 00000000000..70ab7537743 --- /dev/null +++ b/regress/usr.bin/mandoc/man/SH/broken.out_lint @@ -0,0 +1 @@ +mandoc: broken.in:6:2: WARNING: line scope broken: EOF breaks SH diff --git a/regress/usr.bin/mandoc/man/SH/broken_eline.in b/regress/usr.bin/mandoc/man/SH/broken_eline.in new file mode 100644 index 00000000000..262be276156 --- /dev/null +++ b/regress/usr.bin/mandoc/man/SH/broken_eline.in @@ -0,0 +1,7 @@ +.TH SH-BROKEN_ELINE 1 "July 30, 2014" OpenBSD +.SH NAME +SH-broken_eline \- section and element line scope broken by eof +.SH DESCRIPTION +some text +.SH +.B diff --git a/regress/usr.bin/mandoc/man/SH/broken_eline.out_ascii b/regress/usr.bin/mandoc/man/SH/broken_eline.out_ascii new file mode 100644 index 00000000000..d295a68153d --- /dev/null +++ b/regress/usr.bin/mandoc/man/SH/broken_eline.out_ascii @@ -0,0 +1,13 @@ +SH-BROKEN_ELINE(1) OpenBSD Reference Manual SH-BROKEN_ELINE(1) + + + +NNAAMMEE + SH-broken_eline - section and element line scope broken by eof + +DDEESSCCRRIIPPTTIIOONN + some text + + + +OpenBSD July 30, 2014 SH-BROKEN_ELINE(1) diff --git a/regress/usr.bin/mandoc/man/SH/broken_eline.out_lint b/regress/usr.bin/mandoc/man/SH/broken_eline.out_lint new file mode 100644 index 00000000000..089bf875572 --- /dev/null +++ b/regress/usr.bin/mandoc/man/SH/broken_eline.out_lint @@ -0,0 +1,2 @@ +mandoc: broken_eline.in:7:2: WARNING: line scope broken: EOF breaks B +mandoc: broken_eline.in:6:2: WARNING: line scope broken: EOF breaks SH diff --git a/regress/usr.bin/mandoc/man/SH/noarg.in b/regress/usr.bin/mandoc/man/SH/noarg.in new file mode 100644 index 00000000000..b62d318e30b --- /dev/null +++ b/regress/usr.bin/mandoc/man/SH/noarg.in @@ -0,0 +1,11 @@ +.TH SH-NOARG 1 "July 30, 2014" OpenBSD +.SH NAME +SH-noarg \- empty header lines +.SH DESCRIPTION +initial text +.SH +.PP +text in section with empty name +.SS +.PP +text in subsection with empty name diff --git a/regress/usr.bin/mandoc/man/SH/noarg.out_ascii b/regress/usr.bin/mandoc/man/SH/noarg.out_ascii new file mode 100644 index 00000000000..a99859a6514 --- /dev/null +++ b/regress/usr.bin/mandoc/man/SH/noarg.out_ascii @@ -0,0 +1,17 @@ +SH-NOARG(1) OpenBSD Reference Manual SH-NOARG(1) + + + +NNAAMMEE + SH-noarg - empty header lines + +DDEESSCCRRIIPPTTIIOONN + initial text + + text in section with empty name + + text in subsection with empty name + + + +OpenBSD July 30, 2014 SH-NOARG(1) diff --git a/regress/usr.bin/mandoc/man/SH/noarg.out_lint b/regress/usr.bin/mandoc/man/SH/noarg.out_lint new file mode 100644 index 00000000000..b852aad4a12 --- /dev/null +++ b/regress/usr.bin/mandoc/man/SH/noarg.out_lint @@ -0,0 +1,2 @@ +mandoc: noarg.in:6:2: WARNING: line scope broken: PP breaks SH +mandoc: noarg.in:9:2: WARNING: line scope broken: PP breaks SS diff --git a/regress/usr.bin/mandoc/man/TH/Makefile b/regress/usr.bin/mandoc/man/TH/Makefile index 1b0aef1702d..1ce2028eb8a 100644 --- a/regress/usr.bin/mandoc/man/TH/Makefile +++ b/regress/usr.bin/mandoc/man/TH/Makefile @@ -1,10 +1,11 @@ -# $OpenBSD: Makefile,v 1.6 2014/07/02 06:35:26 schwarze Exp $ +# $OpenBSD: Makefile,v 1.7 2014/08/14 02:00:52 schwarze Exp $ REGRESS_TARGETS = noTH noarg onearg twoargs sixargs case REGRESS_TARGETS += emptydate onlyyear isodate mdocdate baddate REGRESS_TARGETS += nobody -LINT_TARGETS = noTH case twoargs emptydate baddate nobody +LINT_TARGETS = noTH noarg onearg twoargs case +LINT_TARGETS += emptydate baddate nobody SKIP_GROFF = noTH SKIP_ASCII = noTH diff --git a/regress/usr.bin/mandoc/man/TH/noarg.out_lint b/regress/usr.bin/mandoc/man/TH/noarg.out_lint new file mode 100644 index 00000000000..aa0b4eb0410 --- /dev/null +++ b/regress/usr.bin/mandoc/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/usr.bin/mandoc/man/TH/onearg.out_lint b/regress/usr.bin/mandoc/man/TH/onearg.out_lint new file mode 100644 index 00000000000..e24e90f4536 --- /dev/null +++ b/regress/usr.bin/mandoc/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/usr.bin/mandoc/mdoc/An/Makefile b/regress/usr.bin/mandoc/mdoc/An/Makefile index 1d2356173e6..b061bf761bf 100644 --- a/regress/usr.bin/mandoc/mdoc/An/Makefile +++ b/regress/usr.bin/mandoc/mdoc/An/Makefile @@ -1,5 +1,6 @@ -# $OpenBSD: Makefile,v 1.1 2012/07/08 16:50:36 schwarze Exp $ +# $OpenBSD: Makefile,v 1.2 2014/08/14 02:00:52 schwarze Exp $ -REGRESS_TARGETS = break +REGRESS_TARGETS = break +LINT_TARGETS = break .include diff --git a/regress/usr.bin/mandoc/mdoc/An/break.out_lint b/regress/usr.bin/mandoc/mdoc/An/break.out_lint new file mode 100644 index 00000000000..c2cbfad6e2f --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/An/break.out_lint @@ -0,0 +1,2 @@ +mandoc: break.in:14:20: WARNING: skipping duplicate argument: An -nosplit +mandoc: break.in:25:20: WARNING: skipping duplicate argument: An -split diff --git a/regress/usr.bin/mandoc/mdoc/Bd/Makefile b/regress/usr.bin/mandoc/mdoc/Bd/Makefile index a9036446555..eefd98a2ad4 100644 --- a/regress/usr.bin/mandoc/mdoc/Bd/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Bd/Makefile @@ -1,14 +1,20 @@ -# $OpenBSD: Makefile,v 1.15 2014/07/07 21:35:42 schwarze Exp $ +# $OpenBSD: Makefile,v 1.16 2014/08/14 02:00:52 schwarze Exp $ -REGRESS_TARGETS = blank nested spacing +REGRESS_TARGETS = blank centered nested spacing REGRESS_TARGETS += badargs empty offset-empty REGRESS_TARGETS += break broken unclosed LINT_TARGETS = blank nested badargs break broken unclosed +SKIP_TMAN = centered + # groff-1.22.2 defect: # - a display breaking another block continues indefinitely -SKIP_GROFF = break +SKIP_GROFF = break + +# adjustment is disabled in groff for now + +SKIP_GROFF += centered .include diff --git a/regress/usr.bin/mandoc/mdoc/Bd/centered.in b/regress/usr.bin/mandoc/mdoc/Bd/centered.in new file mode 100644 index 00000000000..d989ddb8f9f --- /dev/null +++ b/regress/usr.bin/mandoc/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/usr.bin/mandoc/mdoc/Bd/centered.out_ascii b/regress/usr.bin/mandoc/mdoc/Bd/centered.out_ascii new file mode 100644 index 00000000000..b1e1e2cc588 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bd/centered.out_ascii @@ -0,0 +1,13 @@ +BD-CENTERED(1) OpenBSD Reference 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/usr.bin/mandoc/mdoc/Bl/Makefile b/regress/usr.bin/mandoc/mdoc/Bl/Makefile index e6295a715a7..cb734622e39 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Bl/Makefile @@ -1,15 +1,15 @@ -# $OpenBSD: Makefile,v 1.23 2014/07/07 21:35:42 schwarze Exp $ +# $OpenBSD: Makefile,v 1.24 2014/08/14 02:00:52 schwarze Exp $ REGRESS_TARGETS = item inset diag ohang bullet dash enum hang tag REGRESS_TARGETS += column extend nested REGRESS_TARGETS += notype multitype badargs REGRESS_TARGETS += empty noIt emptyhead emptytag emptyitem multitag -REGRESS_TARGETS += bareTa unclosed break broken +REGRESS_TARGETS += bareIt bareTa unclosed break broken -LINT_TARGETS = notype badargs +LINT_TARGETS = column notype badargs LINT_TARGETS += noIt emptyhead emptytag emptyitem -LINT_TARGETS += bareTa break broken +LINT_TARGETS += bareIt bareTa break broken # groff-1.22.2 defects: # - lists with missing or late type ruin indentation diff --git a/regress/usr.bin/mandoc/mdoc/Bl/bareIt.in b/regress/usr.bin/mandoc/mdoc/Bl/bareIt.in new file mode 100644 index 00000000000..e844b270bad --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bl/bareIt.in @@ -0,0 +1,10 @@ +.Dd July 30, 2014 +.Dt BL-BAREIT 1 +.Os OpenBSD +.Sh NAME +.Nm Bl-bareIt +.Nd item macro outside list +.Sh DESCRIPTION +initial text +.It argument +final text diff --git a/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_ascii new file mode 100644 index 00000000000..9ded54f765d --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_ascii @@ -0,0 +1,10 @@ +BL-BAREIT(1) OpenBSD Reference Manual BL-BAREIT(1) + +NNAAMMEE + BBll--bbaarreeIItt - item macro outside list + +DDEESSCCRRIIPPTTIIOONN + initial text + final text + +OpenBSD July 30, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_lint b/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_lint new file mode 100644 index 00000000000..45109ee2eb3 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_lint @@ -0,0 +1 @@ +mandoc: bareIt.in:9:2: ERROR: skipping item outside list: It argument diff --git a/regress/usr.bin/mandoc/mdoc/Bl/column.out_lint b/regress/usr.bin/mandoc/mdoc/Bl/column.out_lint new file mode 100644 index 00000000000..5f971087c6b --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bl/column.out_lint @@ -0,0 +1,4 @@ +mandoc: column.in:67:2: ERROR: argument count wrong: columns == 2 (have 1) +mandoc: column.in:70:2: ERROR: argument count wrong: columns == 2 (have 4) +mandoc: column.in:71:2: ERROR: argument count wrong: columns == 2 (have 5) +mandoc: column.in:74:25: WARNING: skipping -width argument: Bl -column diff --git a/regress/usr.bin/mandoc/mdoc/Dd/Makefile b/regress/usr.bin/mandoc/mdoc/Dd/Makefile new file mode 100644 index 00000000000..d1c890d1bdb --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/Makefile @@ -0,0 +1,19 @@ +# $OpenBSD: Makefile,v 1.1 2014/08/14 02:00:52 schwarze Exp $ + +REGRESS_TARGETS = badarg dupe late manarg noarg order +LINT_TARGETS = badarg dupe late manarg noarg order + +# If groff finds exactly three arguments, it assumes they are month, +# day and year without further checking. If there are no arguments, +# groff uses the string "Epoch". Otherwise, it silently falls back +# to today's date. +# That is not at all sane behaviour, we are not going to imitate it. + +SKIP_GROFF = badarg manarg noarg +SKIP_ASCII = noarg + +# Autodetection fails for late .Dd, so specify -mdoc explicitly. + +MOPTS += -mdoc + +.include diff --git a/regress/usr.bin/mandoc/mdoc/Dt/baddate.in b/regress/usr.bin/mandoc/mdoc/Dd/badarg.in similarity index 61% rename from regress/usr.bin/mandoc/mdoc/Dt/baddate.in rename to regress/usr.bin/mandoc/mdoc/Dd/badarg.in index a5b2d62903c..9891fc4ea99 100644 --- a/regress/usr.bin/mandoc/mdoc/Dt/baddate.in +++ b/regress/usr.bin/mandoc/mdoc/Dd/badarg.in @@ -1,8 +1,8 @@ -.Dd foo -.Dt DT-BADDATE 1 +.Dd "bad date" +.Dt DD-BADARG 1 .Os OpenBSD .Sh NAME -.Nm Dt-baddate +.Nm Dd-badarg .Nd date cannot be parsed .Sh DESCRIPTION some text diff --git a/regress/usr.bin/mandoc/mdoc/Dd/badarg.out_ascii b/regress/usr.bin/mandoc/mdoc/Dd/badarg.out_ascii new file mode 100644 index 00000000000..70bcf04a0f7 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/badarg.out_ascii @@ -0,0 +1,9 @@ +DD-BADARG(1) OpenBSD Reference Manual DD-BADARG(1) + +NNAAMMEE + DDdd--bbaaddaarrgg - date cannot be parsed + +DDEESSCCRRIIPPTTIIOONN + some text + +OpenBSD bad date OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Dd/badarg.out_lint b/regress/usr.bin/mandoc/mdoc/Dd/badarg.out_lint new file mode 100644 index 00000000000..0ce4632e697 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/badarg.out_lint @@ -0,0 +1 @@ +mandoc: badarg.in:1:2: WARNING: cannot parse date, using it verbatim: bad date diff --git a/regress/usr.bin/mandoc/mdoc/Dd/dupe.in b/regress/usr.bin/mandoc/mdoc/Dd/dupe.in new file mode 100644 index 00000000000..d1a7f8276cc --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/dupe.in @@ -0,0 +1,11 @@ +.Dd August 1, 2014 +.Dt DD-DUPE 1 +.Os OpenBSD +.Dd August 3, 2014 +.Sh NAME +.Nm Dd-dupe +.Nd duplicate date macro +.Sh DESCRIPTION +initial text +.Dd August 5, 2014 +final text diff --git a/regress/usr.bin/mandoc/mdoc/Dd/dupe.out_ascii b/regress/usr.bin/mandoc/mdoc/Dd/dupe.out_ascii new file mode 100644 index 00000000000..8828c8c5e29 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/dupe.out_ascii @@ -0,0 +1,9 @@ +DD-DUPE(1) OpenBSD Reference Manual DD-DUPE(1) + +NNAAMMEE + DDdd--dduuppee - duplicate date macro + +DDEESSCCRRIIPPTTIIOONN + initial text final text + +OpenBSD August 5, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Dd/dupe.out_lint b/regress/usr.bin/mandoc/mdoc/Dd/dupe.out_lint new file mode 100644 index 00000000000..8107e867a4b --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/dupe.out_lint @@ -0,0 +1,2 @@ +mandoc: dupe.in:4:2: WARNING: duplicate prologue macro: Dd +mandoc: dupe.in:10:2: WARNING: duplicate prologue macro: Dd diff --git a/regress/usr.bin/mandoc/mdoc/Dd/late.in b/regress/usr.bin/mandoc/mdoc/Dd/late.in new file mode 100644 index 00000000000..0a8436fb53d --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/late.in @@ -0,0 +1,9 @@ +.Dt DD-LATE 1 +.Os OpenBSD +.Sh NAME +.Nm Dd-late +.Nd late date macro +.Sh DESCRIPTION +initial text +.Dd August 5, 2014 +final text diff --git a/regress/usr.bin/mandoc/mdoc/Dd/late.out_ascii b/regress/usr.bin/mandoc/mdoc/Dd/late.out_ascii new file mode 100644 index 00000000000..0873758bd8a --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/late.out_ascii @@ -0,0 +1,9 @@ +DD-LATE(1) OpenBSD Reference Manual DD-LATE(1) + +NNAAMMEE + DDdd--llaattee - late date macro + +DDEESSCCRRIIPPTTIIOONN + initial text final text + +OpenBSD August 5, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Dd/late.out_lint b/regress/usr.bin/mandoc/mdoc/Dd/late.out_lint new file mode 100644 index 00000000000..07374131c68 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/late.out_lint @@ -0,0 +1 @@ +mandoc: late.in:8:2: WARNING: late prologue macro: Dd diff --git a/regress/usr.bin/mandoc/mdoc/Dd/manarg.in b/regress/usr.bin/mandoc/mdoc/Dd/manarg.in new file mode 100644 index 00000000000..434a7af80c8 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/manarg.in @@ -0,0 +1,8 @@ +.Dd 2014-08-07 +.Dt DD-MANARG 1 +.Os OpenBSD +.Sh NAME +.Nm Dd-manarg +.Nd date in traditional man format +.Sh DESCRIPTION +some text diff --git a/regress/usr.bin/mandoc/mdoc/Dd/manarg.out_ascii b/regress/usr.bin/mandoc/mdoc/Dd/manarg.out_ascii new file mode 100644 index 00000000000..ac667f75feb --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/manarg.out_ascii @@ -0,0 +1,9 @@ +DD-MANARG(1) OpenBSD Reference Manual DD-MANARG(1) + +NNAAMMEE + DDdd--mmaannaarrgg - date in traditional man format + +DDEESSCCRRIIPPTTIIOONN + some text + +OpenBSD 2014-08-07 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Dd/manarg.out_lint b/regress/usr.bin/mandoc/mdoc/Dd/manarg.out_lint new file mode 100644 index 00000000000..e69de29bb2d diff --git a/regress/usr.bin/mandoc/mdoc/Dd/noarg.in b/regress/usr.bin/mandoc/mdoc/Dd/noarg.in new file mode 100644 index 00000000000..fd9049853ef --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/noarg.in @@ -0,0 +1,8 @@ +.Dd +.Dt DD-NOARG 1 +.Os OpenBSD +.Sh NAME +.Nm Dd-noarg +.Nd date macro without an argument +.Sh DESCRIPTION +some text diff --git a/regress/usr.bin/mandoc/mdoc/Dd/noarg.out_lint b/regress/usr.bin/mandoc/mdoc/Dd/noarg.out_lint new file mode 100644 index 00000000000..f2816336a7a --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/noarg.out_lint @@ -0,0 +1 @@ +mandoc: noarg.in:1:2: WARNING: missing date, using today's date diff --git a/regress/usr.bin/mandoc/mdoc/Dd/order.in b/regress/usr.bin/mandoc/mdoc/Dd/order.in new file mode 100644 index 00000000000..e3872cbbda6 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/order.in @@ -0,0 +1,8 @@ +.Dt DD-ORDER 1 +.Dd August 5, 2014 +.Os OpenBSD +.Sh NAME +.Nm Dd-order +.Nd date macro after title macro +.Sh DESCRIPTION +some text diff --git a/regress/usr.bin/mandoc/mdoc/Dd/order.out_ascii b/regress/usr.bin/mandoc/mdoc/Dd/order.out_ascii new file mode 100644 index 00000000000..fb953bfbd37 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/order.out_ascii @@ -0,0 +1,9 @@ +DD-ORDER(1) OpenBSD Reference Manual DD-ORDER(1) + +NNAAMMEE + DDdd--oorrddeerr - date macro after title macro + +DDEESSCCRRIIPPTTIIOONN + some text + +OpenBSD August 5, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Dd/order.out_lint b/regress/usr.bin/mandoc/mdoc/Dd/order.out_lint new file mode 100644 index 00000000000..92554a18b52 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dd/order.out_lint @@ -0,0 +1 @@ +mandoc: order.in:2:2: WARNING: prologue macros out of order: Dd after Dt diff --git a/regress/usr.bin/mandoc/mdoc/Dt/Makefile b/regress/usr.bin/mandoc/mdoc/Dt/Makefile index 95b0687b235..5c0cc0bb613 100644 --- a/regress/usr.bin/mandoc/mdoc/Dt/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Dt/Makefile @@ -1,11 +1,20 @@ -# $OpenBSD: Makefile,v 1.3 2014/07/02 08:03:57 schwarze Exp $ +# $OpenBSD: Makefile,v 1.4 2014/08/14 02:00:53 schwarze Exp $ -REGRESS_TARGETS = case badsec badarch nodate baddate -REGRESS_TARGETS += noos order dupe nobody lateos -LINT_TARGETS = case badsec badarch nodate baddate -LINT_TARGETS += noos order dupe nobody lateos +REGRESS_TARGETS = badarch badsec case dupe late +REGRESS_TARGETS += missing noarg nobody nosec order +LINT_TARGETS = badarch badsec case dupe late +LINT_TARGETS += missing noarg nobody nosec order -SKIP_GROFF = badsec badarch nodate baddate noos nobody -SKIP_ASCII = badsec badarch nodate baddate noos +SKIP_GROFF = badarch badsec nobody +SKIP_ASCII = badarch 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 = late missing noarg nosec .include diff --git a/regress/usr.bin/mandoc/mdoc/Dt/baddate.out_ascii b/regress/usr.bin/mandoc/mdoc/Dt/baddate.out_ascii deleted file mode 100644 index 365b0b8e20b..00000000000 --- a/regress/usr.bin/mandoc/mdoc/Dt/baddate.out_ascii +++ /dev/null @@ -1,9 +0,0 @@ -DT-BADDATE(1) OpenBSD Reference Manual DT-BADDATE(1) - -NNAAMMEE - DDtt--bbaaddddaattee - date cannot be parsed - -DDEESSCCRRIIPPTTIIOONN - some text - -OpenBSD June 13, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Dt/baddate.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/baddate.out_lint deleted file mode 100644 index 0c6fed173bf..00000000000 --- a/regress/usr.bin/mandoc/mdoc/Dt/baddate.out_lint +++ /dev/null @@ -1 +0,0 @@ -mandoc: baddate.in:1:2: WARNING: cannot parse date, using it verbatim: foo diff --git a/regress/usr.bin/mandoc/mdoc/Dt/late.in b/regress/usr.bin/mandoc/mdoc/Dt/late.in new file mode 100644 index 00000000000..2043eebe6df --- /dev/null +++ b/regress/usr.bin/mandoc/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/usr.bin/mandoc/mdoc/Dt/late.out_ascii b/regress/usr.bin/mandoc/mdoc/Dt/late.out_ascii new file mode 100644 index 00000000000..c1830f2ba3a --- /dev/null +++ b/regress/usr.bin/mandoc/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/usr.bin/mandoc/mdoc/Dt/late.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/late.out_lint new file mode 100644 index 00000000000..53951cccc3f --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dt/late.out_lint @@ -0,0 +1,2 @@ +mandoc: late.in:3:2: WARNING: missing manual title, using UNTITLED: Sh NAME +mandoc: late.in:8:2: WARNING: skipping late title macro: Dt DT-LATE 1 diff --git a/regress/usr.bin/mandoc/mdoc/Dt/lateos.in b/regress/usr.bin/mandoc/mdoc/Dt/lateos.in deleted file mode 100644 index 0771f14de5f..00000000000 --- a/regress/usr.bin/mandoc/mdoc/Dt/lateos.in +++ /dev/null @@ -1,9 +0,0 @@ -.Dd June 18, 2014 -.Dt DT-LATEOS 1 -.Os OpenBSD -.Sh NAME -.Nm Dt-lateos -.Nd operating system macro after the end of the prologue -.Sh DESCRIPTION -.Os OpenBSD -some text diff --git a/regress/usr.bin/mandoc/mdoc/Dt/lateos.out_ascii b/regress/usr.bin/mandoc/mdoc/Dt/lateos.out_ascii deleted file mode 100644 index 54ccb7dfb6c..00000000000 --- a/regress/usr.bin/mandoc/mdoc/Dt/lateos.out_ascii +++ /dev/null @@ -1,9 +0,0 @@ -DT-LATEOS(1) OpenBSD Reference Manual DT-LATEOS(1) - -NNAAMMEE - DDtt--llaatteeooss - operating system macro after the end of the prologue - -DDEESSCCRRIIPPTTIIOONN - some text - -OpenBSD June 18, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Dt/lateos.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/lateos.out_lint deleted file mode 100644 index a1787c4201d..00000000000 --- a/regress/usr.bin/mandoc/mdoc/Dt/lateos.out_lint +++ /dev/null @@ -1 +0,0 @@ -mandoc: lateos.in:8:2: WARNING: skipping prologue macro in body: Os diff --git a/regress/usr.bin/mandoc/mdoc/Dt/missing.in b/regress/usr.bin/mandoc/mdoc/Dt/missing.in new file mode 100644 index 00000000000..997eab63201 --- /dev/null +++ b/regress/usr.bin/mandoc/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/usr.bin/mandoc/mdoc/Dt/missing.out_ascii b/regress/usr.bin/mandoc/mdoc/Dt/missing.out_ascii new file mode 100644 index 00000000000..b2dd22a3587 --- /dev/null +++ b/regress/usr.bin/mandoc/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/usr.bin/mandoc/mdoc/Dt/missing.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/missing.out_lint new file mode 100644 index 00000000000..a175e4cafc4 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dt/missing.out_lint @@ -0,0 +1 @@ +mandoc: missing.in:3:2: WARNING: missing manual title, using UNTITLED: Sh NAME diff --git a/regress/usr.bin/mandoc/mdoc/Dt/noarg.in b/regress/usr.bin/mandoc/mdoc/Dt/noarg.in new file mode 100644 index 00000000000..9fddfc6b101 --- /dev/null +++ b/regress/usr.bin/mandoc/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/usr.bin/mandoc/mdoc/Dt/noarg.out_ascii b/regress/usr.bin/mandoc/mdoc/Dt/noarg.out_ascii new file mode 100644 index 00000000000..bf6b7ed218b --- /dev/null +++ b/regress/usr.bin/mandoc/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/usr.bin/mandoc/mdoc/Dt/noarg.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/noarg.out_lint new file mode 100644 index 00000000000..3b68668eb6b --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Dt/noarg.out_lint @@ -0,0 +1 @@ +mandoc: noarg.in:2:2: WARNING: missing manual title, using UNTITLED: Dt diff --git a/regress/usr.bin/mandoc/mdoc/Dt/nodate.in b/regress/usr.bin/mandoc/mdoc/Dt/nodate.in deleted file mode 100644 index b4816dbc870..00000000000 --- a/regress/usr.bin/mandoc/mdoc/Dt/nodate.in +++ /dev/null @@ -1,8 +0,0 @@ -.Dd "" -.Dt DT-NODATE 1 -.Os OpenBSD -.Sh NAME -.Nm Dt-nodate -.Nd date missing -.Sh DESCRIPTION -some text diff --git a/regress/usr.bin/mandoc/mdoc/Dt/nodate.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/nodate.out_lint deleted file mode 100644 index 1e77175e1f9..00000000000 --- a/regress/usr.bin/mandoc/mdoc/Dt/nodate.out_lint +++ /dev/null @@ -1 +0,0 @@ -mandoc: nodate.in:1:2: WARNING: missing date, using today's date diff --git a/regress/usr.bin/mandoc/mdoc/Dt/noos.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/noos.out_lint deleted file mode 100644 index 427a08d8349..00000000000 --- a/regress/usr.bin/mandoc/mdoc/Dt/noos.out_lint +++ /dev/null @@ -1 +0,0 @@ -mandoc: noos.in:3:2: WARNING: incomplete prologue, terminated by: Sh diff --git a/regress/usr.bin/mandoc/mdoc/Dt/nosec.in b/regress/usr.bin/mandoc/mdoc/Dt/nosec.in new file mode 100644 index 00000000000..6873c46bfc9 --- /dev/null +++ b/regress/usr.bin/mandoc/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/usr.bin/mandoc/mdoc/Dt/nosec.out_ascii b/regress/usr.bin/mandoc/mdoc/Dt/nosec.out_ascii new file mode 100644 index 00000000000..028db82e2dd --- /dev/null +++ b/regress/usr.bin/mandoc/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/usr.bin/mandoc/mdoc/Dt/nosec.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/nosec.out_lint new file mode 100644 index 00000000000..bddda2d7298 --- /dev/null +++ b/regress/usr.bin/mandoc/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/usr.bin/mandoc/mdoc/Ex/Makefile b/regress/usr.bin/mandoc/mdoc/Ex/Makefile new file mode 100644 index 00000000000..8a714ce124e --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Ex/Makefile @@ -0,0 +1,11 @@ +# $OpenBSD: Makefile,v 1.1 2014/08/14 02:00:53 schwarze Exp $ + +REGRESS_TARGETS = args noname nostd +LINT_TARGETS = noname nostd + +# groff-1.22.2 defect: +# - .Ex without -std produces no output + +SKIP_GROFF = nostd + +.include diff --git a/regress/usr.bin/mandoc/mdoc/Ex/args.in b/regress/usr.bin/mandoc/mdoc/Ex/args.in new file mode 100644 index 00000000000..39a53b7405f --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Ex/args.in @@ -0,0 +1,15 @@ +.Dd July 29, 2014 +.Dt EX-ARGS 1 +.Os OpenBSD +.Sh NAME +.Nm Ex-args +.Nd arguments to the exit value macro +.Sh EXIT STATUS +no arguments: +.Ex -std +.Pp +one argument: +.Ex -std one +.Pp +two arguments: +.Ex -std one two diff --git a/regress/usr.bin/mandoc/mdoc/Ex/args.out_ascii b/regress/usr.bin/mandoc/mdoc/Ex/args.out_ascii new file mode 100644 index 00000000000..598fa566a53 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Ex/args.out_ascii @@ -0,0 +1,16 @@ +EX-ARGS(1) OpenBSD Reference Manual EX-ARGS(1) + +NNAAMMEE + EExx--aarrggss - arguments to the exit value macro + +EEXXIITT SSTTAATTUUSS + no arguments: + The EExx--aarrggss utility exits 0 on success, and >0 if an error occurs. + + one argument: + The oonnee utility exits 0 on success, and >0 if an error occurs. + + two arguments: + The oonnee and ttwwoo utilities exit 0 on success, and >0 if an error occurs. + +OpenBSD July 29, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Ex/noname.in b/regress/usr.bin/mandoc/mdoc/Ex/noname.in new file mode 100644 index 00000000000..9aa742f202e --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Ex/noname.in @@ -0,0 +1,15 @@ +.Dd July 29, 2014 +.Dt EX-NONAME 1 +.Os OpenBSD +.Sh NAME +.Nm +.Nd exit value macro without an available name +.Sh EXIT STATUS +no arguments: +.Ex -std +.Pp +one argument: +.Ex -std one +.Pp +two arguments: +.Ex -std one two diff --git a/regress/usr.bin/mandoc/mdoc/Ex/noname.out_ascii b/regress/usr.bin/mandoc/mdoc/Ex/noname.out_ascii new file mode 100644 index 00000000000..3dd9dc3262a --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Ex/noname.out_ascii @@ -0,0 +1,16 @@ +EX-NONAME(1) OpenBSD Reference Manual EX-NONAME(1) + +NNAAMMEE + - exit value macro without an available name + +EEXXIITT SSTTAATTUUSS + no arguments: + The utility exits 0 on success, and >0 if an error occurs. + + one argument: + The oonnee utility exits 0 on success, and >0 if an error occurs. + + two arguments: + The oonnee and ttwwoo utilities exit 0 on success, and >0 if an error occurs. + +OpenBSD July 29, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Ex/noname.out_lint b/regress/usr.bin/mandoc/mdoc/Ex/noname.out_lint new file mode 100644 index 00000000000..c844104e36f --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Ex/noname.out_lint @@ -0,0 +1,2 @@ +mandoc: noname.in:5:2: ERROR: missing manual name, using "": Nm +mandoc: noname.in:9:2: WARNING: missing utility name, using "": Ex diff --git a/regress/usr.bin/mandoc/mdoc/Ex/nostd.in b/regress/usr.bin/mandoc/mdoc/Ex/nostd.in new file mode 100644 index 00000000000..4722cba8dc4 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Ex/nostd.in @@ -0,0 +1,15 @@ +.Dd July 29, 2014 +.Dt EX-NOSTD 1 +.Os OpenBSD +.Sh NAME +.Nm Ex-nostd +.Nd exit value macros without -std arguments +.Sh EXIT STATUS +no arguments: +.Ex +.Pp +one argument: +.Ex one +.Pp +two arguments: +.Ex one two diff --git a/regress/usr.bin/mandoc/mdoc/Ex/nostd.out_ascii b/regress/usr.bin/mandoc/mdoc/Ex/nostd.out_ascii new file mode 100644 index 00000000000..f1ba7c6221c --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Ex/nostd.out_ascii @@ -0,0 +1,16 @@ +EX-NOSTD(1) OpenBSD Reference Manual EX-NOSTD(1) + +NNAAMMEE + EExx--nnoossttdd - exit value macros without -std arguments + +EEXXIITT SSTTAATTUUSS + no arguments: + The EExx--nnoossttdd utility exits 0 on success, and >0 if an error occurs. + + one argument: + The oonnee utility exits 0 on success, and >0 if an error occurs. + + two arguments: + The oonnee and ttwwoo utilities exit 0 on success, and >0 if an error occurs. + +OpenBSD July 29, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Ex/nostd.out_lint b/regress/usr.bin/mandoc/mdoc/Ex/nostd.out_lint new file mode 100644 index 00000000000..0aaaa1235b9 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Ex/nostd.out_lint @@ -0,0 +1,3 @@ +mandoc: nostd.in:9:2: WARNING: missing -std argument, adding it: Ex +mandoc: nostd.in:12:2: WARNING: missing -std argument, adding it: Ex +mandoc: nostd.in:15:2: WARNING: missing -std argument, adding it: Ex diff --git a/regress/usr.bin/mandoc/mdoc/Makefile b/regress/usr.bin/mandoc/mdoc/Makefile index 6109f2be24d..d918d28bb5c 100644 --- a/regress/usr.bin/mandoc/mdoc/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.28 2014/07/01 22:36:35 schwarze Exp $ +# $OpenBSD: Makefile,v 1.29 2014/08/14 02:00:52 schwarze Exp $ SUBDIR = Ad An Ap Aq Ar At Bd Bf Bk Bl Brq Bx Cd Cm -SUBDIR += D1 Dl Dq Dt Dv Em Eo Er Ev Fd Fl Fo Ft Ic In Lb Li Lk -SUBDIR += Ms Mt Nd Nm No Ns Oo Op Ox Pa Pf Pp Qq Rs +SUBDIR += D1 Dd Dl Dq Dt Dv Em Eo Er Ev Ex Fd Fl Fo Ft Ic In Lb Li Lk +SUBDIR += Ms Mt Nd Nm No Ns Oo Op Os Ox Pa Pf Pp Qq Rs Rv SUBDIR += Sh Sm Sq St Sx Sy Tn Ux Va Vt Xr blank .include "../Makefile.sub" diff --git a/regress/usr.bin/mandoc/mdoc/Os/Makefile b/regress/usr.bin/mandoc/mdoc/Os/Makefile new file mode 100644 index 00000000000..7dd662c48f6 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Os/Makefile @@ -0,0 +1,6 @@ +# $OpenBSD: Makefile,v 1.1 2014/08/14 02:00:53 schwarze Exp $ + +REGRESS_TARGETS = dupe late missing +LINT_TARGETS = dupe late missing + +.include diff --git a/regress/usr.bin/mandoc/mdoc/Os/dupe.in b/regress/usr.bin/mandoc/mdoc/Os/dupe.in new file mode 100644 index 00000000000..a4918bef010 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Os/dupe.in @@ -0,0 +1,11 @@ +.Dd June 18, 2014 +.Os NetBSD +.Dt OS-DUPE 1 +.Os FreeBSD +.Sh NAME +.Nm Os-dupe +.Nd repeated operating system macros +.Sh DESCRIPTION +initial text +.Os OpenBSD +final text diff --git a/regress/usr.bin/mandoc/mdoc/Os/dupe.out_ascii b/regress/usr.bin/mandoc/mdoc/Os/dupe.out_ascii new file mode 100644 index 00000000000..a910cde5c9e --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Os/dupe.out_ascii @@ -0,0 +1,9 @@ +OS-DUPE(1) OpenBSD Reference Manual OS-DUPE(1) + +NNAAMMEE + OOss--dduuppee - repeated operating system macros + +DDEESSCCRRIIPPTTIIOONN + initial text final text + +OpenBSD June 18, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Os/dupe.out_lint b/regress/usr.bin/mandoc/mdoc/Os/dupe.out_lint new file mode 100644 index 00000000000..364b7a6eeec --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Os/dupe.out_lint @@ -0,0 +1,3 @@ +mandoc: dupe.in:3:2: WARNING: prologue macros out of order: Dt after Os +mandoc: dupe.in:4:2: WARNING: duplicate prologue macro: Os +mandoc: dupe.in:10:2: WARNING: duplicate prologue macro: Os diff --git a/regress/usr.bin/mandoc/mdoc/Os/late.in b/regress/usr.bin/mandoc/mdoc/Os/late.in new file mode 100644 index 00000000000..fab68da2034 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Os/late.in @@ -0,0 +1,9 @@ +.Dd August 5, 2014 +.Dt OS-LATE 1 +.Sh NAME +.Nm Os-late +.Nd late operating system macro +.Sh DESCRIPTION +initial text +.Os OpenBSD +final text diff --git a/regress/usr.bin/mandoc/mdoc/Os/late.out_ascii b/regress/usr.bin/mandoc/mdoc/Os/late.out_ascii new file mode 100644 index 00000000000..d431033274f --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Os/late.out_ascii @@ -0,0 +1,9 @@ +OS-LATE(1) OpenBSD Reference Manual OS-LATE(1) + +NNAAMMEE + OOss--llaattee - late operating system macro + +DDEESSCCRRIIPPTTIIOONN + initial text final text + +OpenBSD August 5, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Os/late.out_lint b/regress/usr.bin/mandoc/mdoc/Os/late.out_lint new file mode 100644 index 00000000000..8b0e2f76c39 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Os/late.out_lint @@ -0,0 +1 @@ +mandoc: late.in:8:2: WARNING: late prologue macro: Os diff --git a/regress/usr.bin/mandoc/mdoc/Dt/noos.in b/regress/usr.bin/mandoc/mdoc/Os/missing.in similarity index 61% rename from regress/usr.bin/mandoc/mdoc/Dt/noos.in rename to regress/usr.bin/mandoc/mdoc/Os/missing.in index d4a81b1bc40..44297adb6f0 100644 --- a/regress/usr.bin/mandoc/mdoc/Dt/noos.in +++ b/regress/usr.bin/mandoc/mdoc/Os/missing.in @@ -1,7 +1,7 @@ -.Dd June 18, 2014 -.Dt DT-NOOS 1 +.Dd August 5, 2014 +.Dt OS-MISSING 1 .Sh NAME -.Nm Dt-noos +.Nm Os-missing .Nd operating system macro missing in prologue .Sh DESCRIPTION some text diff --git a/regress/usr.bin/mandoc/mdoc/Os/missing.out_ascii b/regress/usr.bin/mandoc/mdoc/Os/missing.out_ascii new file mode 100644 index 00000000000..017261dae63 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Os/missing.out_ascii @@ -0,0 +1,9 @@ +OS-MISSING(1) OpenBSD Reference Manual OS-MISSING(1) + +NNAAMMEE + OOss--mmiissssiinngg - operating system macro missing in prologue + +DDEESSCCRRIIPPTTIIOONN + some text + + August 5, 2014 diff --git a/regress/usr.bin/mandoc/mdoc/Os/missing.out_lint b/regress/usr.bin/mandoc/mdoc/Os/missing.out_lint new file mode 100644 index 00000000000..8b1f80b2672 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Os/missing.out_lint @@ -0,0 +1 @@ +mandoc: missing.in: WARNING: missing Os macro, using "" diff --git a/regress/usr.bin/mandoc/mdoc/Rv/Makefile b/regress/usr.bin/mandoc/mdoc/Rv/Makefile new file mode 100644 index 00000000000..238982a32d9 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Rv/Makefile @@ -0,0 +1,11 @@ +# $OpenBSD: Makefile,v 1.1 2014/08/14 02:00:53 schwarze Exp $ + +REGRESS_TARGETS = args noname nostd +LINT_TARGETS = noname nostd + +# groff-1.22.2 defect: +# - .Rv without -std produces no output + +SKIP_GROFF = nostd + +.include diff --git a/regress/usr.bin/mandoc/mdoc/Rv/args.in b/regress/usr.bin/mandoc/mdoc/Rv/args.in new file mode 100644 index 00000000000..24f37eabab1 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Rv/args.in @@ -0,0 +1,15 @@ +.Dd July 29, 2014 +.Dt RV-ARGS 3 +.Os OpenBSD +.Sh NAME +.Nm Rv-args +.Nd arguments to the return value macro +.Sh RETURN VALUES +no arguments: +.Rv -std +.Pp +one argument: +.Rv -std one +.Pp +two arguments: +.Rv -std one two diff --git a/regress/usr.bin/mandoc/mdoc/Rv/args.out_ascii b/regress/usr.bin/mandoc/mdoc/Rv/args.out_ascii new file mode 100644 index 00000000000..f3c5f65b10d --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Rv/args.out_ascii @@ -0,0 +1,22 @@ +RV-ARGS(3) OpenBSD Programmer's Manual RV-ARGS(3) + +NNAAMMEE + RRvv--aarrggss - arguments to the return value macro + +RREETTUURRNN VVAALLUUEESS + no arguments: + Upon successful completion, the value 0 is returned; otherwise the + value -1 is returned and the global variable _e_r_r_n_o is set to indicate the + error. + + one argument: + The oonnee() function returns the value 0 if successful; otherwise the + value -1 is returned and the global variable _e_r_r_n_o is set to indicate the + error. + + two arguments: + The oonnee() and ttwwoo() functions return the value 0 if successful; otherwise + the value -1 is returned and the global variable _e_r_r_n_o is set to indicate + the error. + +OpenBSD July 29, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Rv/noname.in b/regress/usr.bin/mandoc/mdoc/Rv/noname.in new file mode 100644 index 00000000000..4bb21cce40d --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Rv/noname.in @@ -0,0 +1,15 @@ +.Dd July 29, 2014 +.Dt RV-NONAME 3 +.Os OpenBSD +.Sh NAME +.Nm +.Nd return value macro without an available name +.Sh RETURN VALUES +no arguments: +.Rv -std +.Pp +one argument: +.Rv -std one +.Pp +two arguments: +.Rv -std one two diff --git a/regress/usr.bin/mandoc/mdoc/Rv/noname.out_ascii b/regress/usr.bin/mandoc/mdoc/Rv/noname.out_ascii new file mode 100644 index 00000000000..7d3446422ca --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Rv/noname.out_ascii @@ -0,0 +1,22 @@ +RV-NONAME(3) OpenBSD Programmer's Manual RV-NONAME(3) + +NNAAMMEE + - return value macro without an available name + +RREETTUURRNN VVAALLUUEESS + no arguments: + Upon successful completion, the value 0 is returned; otherwise the + value -1 is returned and the global variable _e_r_r_n_o is set to indicate the + error. + + one argument: + The oonnee() function returns the value 0 if successful; otherwise the + value -1 is returned and the global variable _e_r_r_n_o is set to indicate the + error. + + two arguments: + The oonnee() and ttwwoo() functions return the value 0 if successful; otherwise + the value -1 is returned and the global variable _e_r_r_n_o is set to indicate + the error. + +OpenBSD July 29, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Rv/noname.out_lint b/regress/usr.bin/mandoc/mdoc/Rv/noname.out_lint new file mode 100644 index 00000000000..a0eec12a837 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Rv/noname.out_lint @@ -0,0 +1 @@ +mandoc: noname.in:5:2: ERROR: missing manual name, using "": Nm diff --git a/regress/usr.bin/mandoc/mdoc/Rv/nostd.in b/regress/usr.bin/mandoc/mdoc/Rv/nostd.in new file mode 100644 index 00000000000..0dc9ea12d36 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Rv/nostd.in @@ -0,0 +1,15 @@ +.Dd July 29, 2014 +.Dt RV-NOSTD 3 +.Os OpenBSD +.Sh NAME +.Nm Rv-nostd +.Nd return value macros without -std arguments +.Sh RETURN VALUES +no arguments: +.Rv +.Pp +one argument: +.Rv one +.Pp +two arguments: +.Rv one two diff --git a/regress/usr.bin/mandoc/mdoc/Rv/nostd.out_ascii b/regress/usr.bin/mandoc/mdoc/Rv/nostd.out_ascii new file mode 100644 index 00000000000..9ed02ba8b10 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Rv/nostd.out_ascii @@ -0,0 +1,22 @@ +RV-NOSTD(3) OpenBSD Programmer's Manual RV-NOSTD(3) + +NNAAMMEE + RRvv--nnoossttdd - return value macros without -std arguments + +RREETTUURRNN VVAALLUUEESS + no arguments: + Upon successful completion, the value 0 is returned; otherwise the + value -1 is returned and the global variable _e_r_r_n_o is set to indicate the + error. + + one argument: + The oonnee() function returns the value 0 if successful; otherwise the + value -1 is returned and the global variable _e_r_r_n_o is set to indicate the + error. + + two arguments: + The oonnee() and ttwwoo() functions return the value 0 if successful; otherwise + the value -1 is returned and the global variable _e_r_r_n_o is set to indicate + the error. + +OpenBSD July 29, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Rv/nostd.out_lint b/regress/usr.bin/mandoc/mdoc/Rv/nostd.out_lint new file mode 100644 index 00000000000..c58122e0022 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Rv/nostd.out_lint @@ -0,0 +1,3 @@ +mandoc: nostd.in:9:2: WARNING: missing -std argument, adding it: Rv +mandoc: nostd.in:12:2: WARNING: missing -std argument, adding it: Rv +mandoc: nostd.in:15:2: WARNING: missing -std argument, adding it: Rv diff --git a/regress/usr.bin/mandoc/mdoc/Sh/Makefile b/regress/usr.bin/mandoc/mdoc/Sh/Makefile index df98590a6f5..72e987e4926 100644 --- a/regress/usr.bin/mandoc/mdoc/Sh/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Sh/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.3 2014/07/07 15:03:24 schwarze Exp $ +# $OpenBSD: Makefile,v 1.4 2014/08/14 02:00:53 schwarze Exp $ -REGRESS_TARGETS = before first emptyNAME badNAME order -LINT_TARGETS = before first emptyNAME badNAME order +REGRESS_TARGETS = before subbefore first emptyNAME badNAME order +LINT_TARGETS = before subbefore first emptyNAME badNAME order -SKIP_GROFF = first +SKIP_GROFF = subbefore first SKIP_ASCII = first .include diff --git a/regress/usr.bin/mandoc/mdoc/Sh/subbefore.in b/regress/usr.bin/mandoc/mdoc/Sh/subbefore.in new file mode 100644 index 00000000000..ac800e134d6 --- /dev/null +++ b/regress/usr.bin/mandoc/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/usr.bin/mandoc/mdoc/Sh/subbefore.out_ascii b/regress/usr.bin/mandoc/mdoc/Sh/subbefore.out_ascii new file mode 100644 index 00000000000..e50aff19550 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Sh/subbefore.out_ascii @@ -0,0 +1,12 @@ +SH-SUBBEFORE(1) OpenBSD Reference 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/usr.bin/mandoc/mdoc/Sh/subbefore.out_lint b/regress/usr.bin/mandoc/mdoc/Sh/subbefore.out_lint new file mode 100644 index 00000000000..fd497d255c8 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Sh/subbefore.out_lint @@ -0,0 +1 @@ +mandoc: subbefore.in:4:2: WARNING: content before first section header: Ss diff --git a/regress/usr.bin/mandoc/roff/Makefile b/regress/usr.bin/mandoc/roff/Makefile index 635d297d6fe..4982bfa9ae2 100644 --- a/regress/usr.bin/mandoc/roff/Makefile +++ b/regress/usr.bin/mandoc/roff/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.18 2014/07/07 11:34:41 schwarze Exp $ +# $OpenBSD: Makefile,v 1.19 2014/08/14 02:00:53 schwarze Exp $ -SUBDIR = args cond esc string +SUBDIR = args cond esc scale string SUBDIR += br cc de ds ft ig it ll na nr ps rm sp .include "../Makefile.sub" diff --git a/regress/usr.bin/mandoc/roff/it/Makefile b/regress/usr.bin/mandoc/roff/it/Makefile index 351d1cde730..ec03f94c079 100644 --- a/regress/usr.bin/mandoc/roff/it/Makefile +++ b/regress/usr.bin/mandoc/roff/it/Makefile @@ -1,5 +1,6 @@ -# $OpenBSD: Makefile,v 1.1 2013/07/13 12:51:38 schwarze Exp $ +# $OpenBSD: Makefile,v 1.2 2014/08/14 02:00:53 schwarze Exp $ -REGRESS_TARGETS = text double +REGRESS_TARGETS = badarg double text +LINT_TARGETS = badarg .include diff --git a/regress/usr.bin/mandoc/roff/it/badarg.in b/regress/usr.bin/mandoc/roff/it/badarg.in new file mode 100644 index 00000000000..876f75e9ab0 --- /dev/null +++ b/regress/usr.bin/mandoc/roff/it/badarg.in @@ -0,0 +1,17 @@ +.Dd $Mdocdate: August 14 2014 $ +.Dt IT-BADARG 1 +.Os OpenBSD +.Sh NAME +.Nm it-badarg +.Nd input line traps without numeric arguments +.Sh DESCRIPTION +.de mytrap +traptext +.. +line 1 +.it mytrap +line 2 +line 3 +.it +line 4 +line 5 diff --git a/regress/usr.bin/mandoc/roff/it/badarg.out_ascii b/regress/usr.bin/mandoc/roff/it/badarg.out_ascii new file mode 100644 index 00000000000..30cf9556275 --- /dev/null +++ b/regress/usr.bin/mandoc/roff/it/badarg.out_ascii @@ -0,0 +1,9 @@ +IT-BADARG(1) OpenBSD Reference Manual IT-BADARG(1) + +NNAAMMEE + iitt--bbaaddaarrgg - input line traps without numeric arguments + +DDEESSCCRRIIPPTTIIOONN + line 1 line 2 line 3 line 4 line 5 + +OpenBSD July 30, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/roff/it/badarg.out_lint b/regress/usr.bin/mandoc/roff/it/badarg.out_lint new file mode 100644 index 00000000000..d2d4edb3771 --- /dev/null +++ b/regress/usr.bin/mandoc/roff/it/badarg.out_lint @@ -0,0 +1,2 @@ +mandoc: badarg.in:12:1: ERROR: skipping request without numeric argument: it mytrap +mandoc: badarg.in:15:1: ERROR: skipping request without numeric argument: it diff --git a/regress/usr.bin/mandoc/roff/scale/Makefile b/regress/usr.bin/mandoc/roff/scale/Makefile new file mode 100644 index 00000000000..822f75559e5 --- /dev/null +++ b/regress/usr.bin/mandoc/roff/scale/Makefile @@ -0,0 +1,5 @@ +# $OpenBSD: Makefile,v 1.1 2014/08/14 02:00:53 schwarze Exp $ + +REGRESS_TARGETS = horiz + +.include diff --git a/regress/usr.bin/mandoc/roff/scale/horiz.in b/regress/usr.bin/mandoc/roff/scale/horiz.in new file mode 100644 index 00000000000..89434db98b4 --- /dev/null +++ b/regress/usr.bin/mandoc/roff/scale/horiz.in @@ -0,0 +1,25 @@ +.TH HORIZ 1 "August 12, 2014" OpenBSD +.SH NAME +horiz \- horizontal distances +.SH DESCRIPTION +initial text +.in 240u +240u +.in 3.6c +3.6c +.in 0.003f +0.003f +.in 2i +2i +.in 500M +500M +.in 6P +6P +.in 36p +36p +.in 10n +10n +.in 5m +5m +.PP +final text diff --git a/regress/usr.bin/mandoc/roff/scale/horiz.out_ascii b/regress/usr.bin/mandoc/roff/scale/horiz.out_ascii new file mode 100644 index 00000000000..898a344150c --- /dev/null +++ b/regress/usr.bin/mandoc/roff/scale/horiz.out_ascii @@ -0,0 +1,24 @@ +HORIZ(1) OpenBSD Reference Manual HORIZ(1) + + + +NNAAMMEE + horiz - horizontal distances + +DDEESSCCRRIIPPTTIIOONN + initial text + 240u + 3.6c + 0.003f + 2i + 500M + 6P + 36p + 10n + 5m + + final text + + + +OpenBSD August 12, 2014 HORIZ(1) -- 2.20.1