diff options
Diffstat (limited to 'regress/usr.bin')
23 files changed, 122 insertions, 49 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/At/Makefile b/regress/usr.bin/mandoc/mdoc/At/Makefile index 30342545728..6c3629959d3 100644 --- a/regress/usr.bin/mandoc/mdoc/At/Makefile +++ b/regress/usr.bin/mandoc/mdoc/At/Makefile @@ -1,5 +1,6 @@ -# $OpenBSD: Makefile,v 1.1 2010/12/04 14:49:40 schwarze Exp $ +# $OpenBSD: Makefile,v 1.2 2014/07/05 12:33:54 schwarze Exp $ -REGRESS_TARGETS=invalid +REGRESS_TARGETS = invalid +LINT_TARGETS = invalid .include <bsd.regress.mk> diff --git a/regress/usr.bin/mandoc/mdoc/At/invalid.out_lint b/regress/usr.bin/mandoc/mdoc/At/invalid.out_lint new file mode 100644 index 00000000000..d9ae9e94ca6 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/At/invalid.out_lint @@ -0,0 +1 @@ +mandoc: invalid.in:15:5: WARNING: unknown AT&T UNIX version: murks diff --git a/regress/usr.bin/mandoc/mdoc/Bd/Makefile b/regress/usr.bin/mandoc/mdoc/Bd/Makefile index f13a8ad186c..8eb348c0962 100644 --- a/regress/usr.bin/mandoc/mdoc/Bd/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Bd/Makefile @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.12 2014/07/05 01:11:33 schwarze Exp $ +# $OpenBSD: Makefile,v 1.13 2014/07/05 12:33:54 schwarze Exp $ REGRESS_TARGETS = blank nested spacing -REGRESS_TARGETS += notype badargs empty offset-empty +REGRESS_TARGETS += badargs empty offset-empty REGRESS_TARGETS += break broken -LINT_TARGETS = nested notype badargs break broken +LINT_TARGETS = nested badargs break broken # groff defect: # - a display breaking another block continues indefinitely diff --git a/regress/usr.bin/mandoc/mdoc/Bd/badargs.in b/regress/usr.bin/mandoc/mdoc/Bd/badargs.in index 5177d9c6e13..95d5b3cef5e 100644 --- a/regress/usr.bin/mandoc/mdoc/Bd/badargs.in +++ b/regress/usr.bin/mandoc/mdoc/Bd/badargs.in @@ -1,4 +1,4 @@ -.Dd July 4, 2014 +.Dd July 5, 2014 .Dt BD-BADARGS 1 .Os OpenBSD .Sh NAME @@ -10,8 +10,22 @@ trailing -offset: is ignored .Ed tail argument -double -compact and -offset +double -compact and -offset: .Bd -ragged -compact -offset 42n -compact -offset 6n last wins .Ed +no type: +.Bd -offset 0n +displayed +text +.Ed +double type: +.Bd -ragged -compact -unfilled +ragged +unfilled +.Ed +.Bd -unfilled -compact -ragged +unfilled +ragged +.Ed diff --git a/regress/usr.bin/mandoc/mdoc/Bd/badargs.out_ascii b/regress/usr.bin/mandoc/mdoc/Bd/badargs.out_ascii index c0ecc18ca48..56e551737e0 100644 --- a/regress/usr.bin/mandoc/mdoc/Bd/badargs.out_ascii +++ b/regress/usr.bin/mandoc/mdoc/Bd/badargs.out_ascii @@ -7,7 +7,14 @@ DDEESSCCRRIIPPTTIIOONN trailing -offset: is ignored - double -compact and -offset + double -compact and -offset: last wins + no type: -OpenBSD July 4, 2014 OpenBSD + displayed text + double type: + ragged unfilled + unfilled + ragged + +OpenBSD July 5, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Bd/badargs.out_lint b/regress/usr.bin/mandoc/mdoc/Bd/badargs.out_lint index 83076847fba..d295d9f3457 100644 --- a/regress/usr.bin/mandoc/mdoc/Bd/badargs.out_lint +++ b/regress/usr.bin/mandoc/mdoc/Bd/badargs.out_lint @@ -1,4 +1,7 @@ -mandoc: badargs.in:9:20: WARNING: skipping empty argument: Bd -offset +mandoc: badargs.in:9:20: WARNING: empty argument, using 0n: Bd -offset mandoc: badargs.in:12:2: ERROR: skipping all arguments: Ed tail argument mandoc: badargs.in:14:43: WARNING: duplicate argument: Bd -compact mandoc: badargs.in:14:51: WARNING: duplicate argument: Bd -offset 6n +mandoc: badargs.in:19:2: WARNING: missing display type, using -ragged +mandoc: badargs.in:24:2: WARNING: skipping duplicate display type: unfilled +mandoc: badargs.in:28:2: WARNING: skipping duplicate display type: ragged diff --git a/regress/usr.bin/mandoc/mdoc/Bd/notype.in b/regress/usr.bin/mandoc/mdoc/Bd/notype.in deleted file mode 100644 index f59cb6be4d1..00000000000 --- a/regress/usr.bin/mandoc/mdoc/Bd/notype.in +++ /dev/null @@ -1,13 +0,0 @@ -.Dd July 4, 2014 -.Dt BD-NOTYPE 1 -.Os OpenBSD -.Sh NAME -.Nm Bd-notype -.Nd no type specified for a display -.Sh DESCRIPTION -initial text -.Bd -offset 0n -displayed -text -.Ed some arguments -final text diff --git a/regress/usr.bin/mandoc/mdoc/Bd/notype.out_ascii b/regress/usr.bin/mandoc/mdoc/Bd/notype.out_ascii deleted file mode 100644 index 92f0d8e27e0..00000000000 --- a/regress/usr.bin/mandoc/mdoc/Bd/notype.out_ascii +++ /dev/null @@ -1,12 +0,0 @@ -BD-NOTYPE(1) OpenBSD Reference Manual BD-NOTYPE(1) - -NNAAMMEE - BBdd--nnoottyyppee - no type specified for a display - -DDEESSCCRRIIPPTTIIOONN - initial text - - displayed text - final text - -OpenBSD July 4, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Bd/notype.out_lint b/regress/usr.bin/mandoc/mdoc/Bd/notype.out_lint deleted file mode 100644 index 4735ba3bd04..00000000000 --- a/regress/usr.bin/mandoc/mdoc/Bd/notype.out_lint +++ /dev/null @@ -1,2 +0,0 @@ -mandoc: notype.in:9:2: WARNING: missing display type, using -ragged -mandoc: notype.in:12:2: ERROR: skipping all arguments: Ed some arguments diff --git a/regress/usr.bin/mandoc/mdoc/Bl/badargs.in b/regress/usr.bin/mandoc/mdoc/Bl/badargs.in index 7424610b9fb..93a7de83d71 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/badargs.in +++ b/regress/usr.bin/mandoc/mdoc/Bl/badargs.in @@ -1,4 +1,4 @@ -.Dd July 4, 2014 +.Dd July 5, 2014 .Dt BL-BADARGS 1 .Os OpenBSD .Sh NAME @@ -37,6 +37,15 @@ item Here we need a very long line. It must be sufficiently long such that it wraps the line. .El +double type: +.Bl -bullet -compact -enum +.It +bullet enum +.El +.Bl -enum -compact -bullet +.It +enum bullet +.El double arguments: .Bl -tag -compact -offset 20n -width 20n -compact -offset 2n -width 6n .It last diff --git a/regress/usr.bin/mandoc/mdoc/Bl/badargs.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/badargs.out_ascii index f865b9680a5..c90878b15b2 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/badargs.out_ascii +++ b/regress/usr.bin/mandoc/mdoc/Bl/badargs.out_ascii @@ -20,7 +20,10 @@ DDEESSCCRRIIPPTTIIOONN tag Here we need a very long line. It must be sufficiently long such that it wraps the line. + double type: + oo bullet enum + 1. enum bullet double arguments: last wins -OpenBSD July 4, 2014 OpenBSD +OpenBSD July 5, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Bl/badargs.out_lint b/regress/usr.bin/mandoc/mdoc/Bl/badargs.out_lint index dc119687440..5e92d00527f 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/badargs.out_lint +++ b/regress/usr.bin/mandoc/mdoc/Bl/badargs.out_lint @@ -4,7 +4,9 @@ mandoc: badargs.in:18:17: WARNING: empty argument, using 0n: Bl -width mandoc: badargs.in:27:19: WARNING: empty argument, using 0n: Bl -width mandoc: badargs.in:31:17: WARNING: empty argument, using 0n: Bl -width mandoc: badargs.in:35:16: WARNING: empty argument, using 0n: Bl -width -mandoc: badargs.in:41:51: WARNING: duplicate argument: Bl -compact -mandoc: badargs.in:41:59: WARNING: duplicate argument: Bl -offset 2n -mandoc: badargs.in:41:69: WARNING: duplicate argument: Bl -width 6n -mandoc: badargs.in:44:2: ERROR: skipping all arguments: El tail argument +mandoc: badargs.in:41:2: WARNING: skipping duplicate list type: enum +mandoc: badargs.in:45:2: WARNING: skipping duplicate list type: bullet +mandoc: badargs.in:50:51: WARNING: duplicate argument: Bl -compact +mandoc: badargs.in:50:59: WARNING: duplicate argument: Bl -offset 2n +mandoc: badargs.in:50:69: WARNING: duplicate argument: Bl -width 6n +mandoc: badargs.in:53:2: ERROR: skipping all arguments: El tail argument diff --git a/regress/usr.bin/mandoc/mdoc/Bl/notype.out_lint b/regress/usr.bin/mandoc/mdoc/Bl/notype.out_lint index 649ef14f21d..b0faa945b2c 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/notype.out_lint +++ b/regress/usr.bin/mandoc/mdoc/Bl/notype.out_lint @@ -1,4 +1,3 @@ mandoc: notype.in:9:2: WARNING: list type is not the first argument: offset mandoc: notype.in:12:2: ERROR: skipping all arguments: El tail argument -mandoc: notype.in:14:2: WARNING: list type is not the first argument: offset mandoc: notype.in:14:2: ERROR: missing list type, using -item diff --git a/regress/usr.bin/mandoc/mdoc/Sm/Makefile b/regress/usr.bin/mandoc/mdoc/Sm/Makefile index ef3a2de066f..3c84d66c66e 100644 --- a/regress/usr.bin/mandoc/mdoc/Sm/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Sm/Makefile @@ -1,6 +1,7 @@ -# $OpenBSD: Makefile,v 1.5 2014/07/02 19:54:39 schwarze Exp $ +# $OpenBSD: Makefile,v 1.6 2014/07/05 12:33:54 schwarze Exp $ -REGRESS_TARGETS = noarg scope spacing-No spacing-Op +REGRESS_TARGETS = noarg badarg scope spacing-No spacing-Op +LINT_TARGETS = badarg SKIP_TMAN ?= scope diff --git a/regress/usr.bin/mandoc/mdoc/Sm/badarg.in b/regress/usr.bin/mandoc/mdoc/Sm/badarg.in new file mode 100644 index 00000000000..8684965e55f --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Sm/badarg.in @@ -0,0 +1,14 @@ +.Dd July 3, 2014 +.Dt SM-BADARG 1 +.Os OpenBSD +.Sh NAME +.Nm Sm-badarg +.Nd spacing macro with invalid arguments +.Sh DESCRIPTION +.Fl f Ar on +.Sm off +.Fl f Ar off +.Sm bad +.Fl f Ar bad Pq on +.Sm bad +.Fl f Ar bad Pq off diff --git a/regress/usr.bin/mandoc/mdoc/Sm/badarg.out_ascii b/regress/usr.bin/mandoc/mdoc/Sm/badarg.out_ascii new file mode 100644 index 00000000000..7251472d8e3 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Sm/badarg.out_ascii @@ -0,0 +1,9 @@ +SM-BADARG(1) OpenBSD Reference Manual SM-BADARG(1) + +NNAAMMEE + SSmm--bbaaddaarrgg - spacing macro with invalid arguments + +DDEESSCCRRIIPPTTIIOONN + --ff _o_n --ff_o_f_f bad --ff _b_a_d (on) bad--ff_b_a_d(off) + +OpenBSD July 3, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Sm/badarg.out_lint b/regress/usr.bin/mandoc/mdoc/Sm/badarg.out_lint new file mode 100644 index 00000000000..54644f3446b --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Sm/badarg.out_lint @@ -0,0 +1,2 @@ +mandoc: badarg.in:11:5: WARNING: invalid Boolean argument: Sm bad +mandoc: badarg.in:13:5: WARNING: invalid Boolean argument: Sm bad diff --git a/regress/usr.bin/mandoc/mdoc/St/badargs.out_lint b/regress/usr.bin/mandoc/mdoc/St/badargs.out_lint index bb81925fb1e..f4ebc6e7ef3 100644 --- a/regress/usr.bin/mandoc/mdoc/St/badargs.out_lint +++ b/regress/usr.bin/mandoc/mdoc/St/badargs.out_lint @@ -1,2 +1,2 @@ -mandoc: badargs.in:12:2: WARNING: unknown standard specifier +mandoc: badargs.in:12:5: ERROR: unknown standard specifier: -murks mandoc: badargs.in:15:2: WARNING: skipping empty macro: St diff --git a/regress/usr.bin/mandoc/roff/Makefile b/regress/usr.bin/mandoc/roff/Makefile index 439457f2827..3ce943bd302 100644 --- a/regress/usr.bin/mandoc/roff/Makefile +++ b/regress/usr.bin/mandoc/roff/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.16 2014/06/20 18:27:51 schwarze Exp $ +# $OpenBSD: Makefile,v 1.17 2014/07/05 12:33:54 schwarze Exp $ SUBDIR = args cond esc string -SUBDIR += br cc de ds it ll na nr ps rm sp +SUBDIR += br cc de ds ft it ll na nr ps rm sp .include "../Makefile.sub" .include <bsd.subdir.mk> diff --git a/regress/usr.bin/mandoc/roff/ft/Makefile b/regress/usr.bin/mandoc/roff/ft/Makefile new file mode 100644 index 00000000000..f57fe72ba71 --- /dev/null +++ b/regress/usr.bin/mandoc/roff/ft/Makefile @@ -0,0 +1,6 @@ +# $OpenBSD: Makefile,v 1.1 2014/07/05 12:33:54 schwarze Exp $ + +REGRESS_TARGETS = badargs +LINT_TARGETS = badargs + +.include <bsd.regress.mk> diff --git a/regress/usr.bin/mandoc/roff/ft/badargs.in b/regress/usr.bin/mandoc/roff/ft/badargs.in new file mode 100644 index 00000000000..a42557d418c --- /dev/null +++ b/regress/usr.bin/mandoc/roff/ft/badargs.in @@ -0,0 +1,15 @@ +.TH "FT-BADARGS" 1 "July 5, 2014" OpenBSD +.SH NAME +ft-badargs \(en font request with bad arguments +.SH DESCRIPTION +default font +.ft B +bold +.ft foo +still bold +.ft I +italic +.ft P +back to bold +.ft +back to italic diff --git a/regress/usr.bin/mandoc/roff/ft/badargs.out_ascii b/regress/usr.bin/mandoc/roff/ft/badargs.out_ascii new file mode 100644 index 00000000000..dc3050e34d9 --- /dev/null +++ b/regress/usr.bin/mandoc/roff/ft/badargs.out_ascii @@ -0,0 +1,13 @@ +FT-BADARGS(1) OpenBSD Reference Manual FT-BADARGS(1) + + + +NNAAMMEE + ft-badargs - font request with bad arguments + +DDEESSCCRRIIPPTTIIOONN + default font bboolldd ssttiillll bboolldd _i_t_a_l_i_c bbaacckk ttoo bboolldd _b_a_c_k _t_o _i_t_a_l_i_c + + + +OpenBSD July 5, 2014 FT-BADARGS(1) diff --git a/regress/usr.bin/mandoc/roff/ft/badargs.out_lint b/regress/usr.bin/mandoc/roff/ft/badargs.out_lint new file mode 100644 index 00000000000..7a71655a48d --- /dev/null +++ b/regress/usr.bin/mandoc/roff/ft/badargs.out_lint @@ -0,0 +1 @@ +mandoc: badargs.in:8:2: WARNING: unknown font, skipping request: ft foo |