diff options
Diffstat (limited to 'regress/roff/sp')
-rw-r--r-- | regress/roff/sp/Makefile | 6 | ||||
-rw-r--r-- | regress/roff/sp/badargs-man.in | 17 | ||||
-rw-r--r-- | regress/roff/sp/badargs-man.out_ascii | 29 | ||||
-rw-r--r-- | regress/roff/sp/badargs-man.out_lint | 1 | ||||
-rw-r--r-- | regress/roff/sp/badargs-mdoc.in | 20 | ||||
-rw-r--r-- | regress/roff/sp/badargs-mdoc.out_ascii | 25 | ||||
-rw-r--r-- | regress/roff/sp/negative.in | 8 | ||||
-rw-r--r-- | regress/roff/sp/negative.out_ascii | 14 | ||||
-rw-r--r-- | regress/roff/sp/scaling-man.in | 27 | ||||
-rw-r--r-- | regress/roff/sp/scaling-man.out_ascii | 34 | ||||
-rw-r--r-- | regress/roff/sp/scaling-mdoc.in | 30 | ||||
-rw-r--r-- | regress/roff/sp/scaling-mdoc.out_ascii | 30 |
12 files changed, 241 insertions, 0 deletions
diff --git a/regress/roff/sp/Makefile b/regress/roff/sp/Makefile new file mode 100644 index 00000000..7a09afb1 --- /dev/null +++ b/regress/roff/sp/Makefile @@ -0,0 +1,6 @@ +# $OpenBSD: Makefile,v 1.5 2015/02/06 09:38:22 schwarze Exp $ + +REGRESS_TARGETS = badargs-man badargs-mdoc negative scaling-man scaling-mdoc +LINT_TARGETS = badargs-man + +.include <bsd.regress.mk> diff --git a/regress/roff/sp/badargs-man.in b/regress/roff/sp/badargs-man.in new file mode 100644 index 00000000..0a7eb075 --- /dev/null +++ b/regress/roff/sp/badargs-man.in @@ -0,0 +1,17 @@ +.TH SP-BADARGS-MAN 1 "December 23, 2014" OpenBSD +.SH NAME +sp-badargs-man \- bad arguments to .sp macros in man(7) +.SH DESCRIPTION +no arguments: +.sp +one argument: +.sp 2v +two arguments: +.sp 3v 2i +no scaling unit specified: +.sp 1 +trailing garbage: +.sp 2vx +garbage only: +.sp xxx +end of test document diff --git a/regress/roff/sp/badargs-man.out_ascii b/regress/roff/sp/badargs-man.out_ascii new file mode 100644 index 00000000..b0421916 --- /dev/null +++ b/regress/roff/sp/badargs-man.out_ascii @@ -0,0 +1,29 @@ +SP-BADARGS-MAN(1) General Commands Manual SP-BADARGS-MAN(1) + + + +NNAAMMEE + sp-badargs-man - bad arguments to .sp macros in man(7) + +DDEESSCCRRIIPPTTIIOONN + no arguments: + + one argument: + + + two arguments: + + + + no scaling unit specified: + + trailing garbage: + + + garbage only: + + end of test document + + + +OpenBSD December 23, 2014 SP-BADARGS-MAN(1) diff --git a/regress/roff/sp/badargs-man.out_lint b/regress/roff/sp/badargs-man.out_lint new file mode 100644 index 00000000..d38502dd --- /dev/null +++ b/regress/roff/sp/badargs-man.out_lint @@ -0,0 +1 @@ +mandoc: badargs-man.in:10:8: ERROR: skipping excess arguments: sp ... 2i diff --git a/regress/roff/sp/badargs-mdoc.in b/regress/roff/sp/badargs-mdoc.in new file mode 100644 index 00000000..684ee7e3 --- /dev/null +++ b/regress/roff/sp/badargs-mdoc.in @@ -0,0 +1,20 @@ +.Dd December 23, 2014 +.Dt SP-BADARGS-MDOC 1 +.Os OpenBSD +.Sh NAME +.Nm sp-badargs-mdoc +.Nd bad arguments to .sp macros in mdoc(7) +.Sh DESCRIPTION +no arguments: +.sp +one argument: +.sp 2v +two arguments: +.sp 3v 2i +no scaling unit specified: +.sp 1 +trailing garbage: +.sp 2vx +garbage only: +.sp xxx +end of test document diff --git a/regress/roff/sp/badargs-mdoc.out_ascii b/regress/roff/sp/badargs-mdoc.out_ascii new file mode 100644 index 00000000..3e1f87ed --- /dev/null +++ b/regress/roff/sp/badargs-mdoc.out_ascii @@ -0,0 +1,25 @@ +SP-BADARGS-MDOC(1) General Commands Manual SP-BADARGS-MDOC(1) + +NNAAMMEE + sspp--bbaaddaarrggss--mmddoocc - bad arguments to .sp macros in mdoc(7) + +DDEESSCCRRIIPPTTIIOONN + no arguments: + + one argument: + + + two arguments: + + + + no scaling unit specified: + + trailing garbage: + + + garbage only: + + end of test document + +OpenBSD December 23, 2014 OpenBSD diff --git a/regress/roff/sp/negative.in b/regress/roff/sp/negative.in new file mode 100644 index 00000000..10c6edc9 --- /dev/null +++ b/regress/roff/sp/negative.in @@ -0,0 +1,8 @@ +.TH SP-NEGATIVE 1 "July 12, 2012" OpenBSD +.SH NAME +sp-negative \- negative vertical spacing +.SH DESCRIPTION +first line +.sp -1v +.PP +second line diff --git a/regress/roff/sp/negative.out_ascii b/regress/roff/sp/negative.out_ascii new file mode 100644 index 00000000..8a71aba6 --- /dev/null +++ b/regress/roff/sp/negative.out_ascii @@ -0,0 +1,14 @@ +SP-NEGATIVE(1) General Commands Manual SP-NEGATIVE(1) + + + +NNAAMMEE + sp-negative - negative vertical spacing + +DDEESSCCRRIIPPTTIIOONN + first line + second line + + + +OpenBSD July 12, 2012 SP-NEGATIVE(1) diff --git a/regress/roff/sp/scaling-man.in b/regress/roff/sp/scaling-man.in new file mode 100644 index 00000000..69318eca --- /dev/null +++ b/regress/roff/sp/scaling-man.in @@ -0,0 +1,27 @@ +.TH SP-SCALING-MAN 1 "December 23, 2014" OpenBSD +.SH NAME +sp-scaling-man \- scaled arguments to .sp requests in man(7) +.SH DESCRIPTION +20 basic units: +.sp 20u +21 basic units: +.sp 21u +one centimeter: +.sp 1c +quarter of an inch: +.sp 0.25i +half a pica: +.sp 0.5P +one pica: +.sp 1P +6 points: +.sp 6p +7 points: +.sp 7p +one en: +.sp 1n +three en: +.sp 3n +two em: +.sp 2m +end of test document diff --git a/regress/roff/sp/scaling-man.out_ascii b/regress/roff/sp/scaling-man.out_ascii new file mode 100644 index 00000000..72a0b53b --- /dev/null +++ b/regress/roff/sp/scaling-man.out_ascii @@ -0,0 +1,34 @@ +SP-SCALING-MAN(1) General Commands Manual SP-SCALING-MAN(1) + + + +NNAAMMEE + sp-scaling-man - scaled arguments to .sp requests in man(7) + +DDEESSCCRRIIPPTTIIOONN + 20 basic units: + 21 basic units: + + one centimeter: + + + quarter of an inch: + + half a pica: + one pica: + + 6 points: + 7 points: + + one en: + + three en: + + + two em: + + end of test document + + + +OpenBSD December 23, 2014 SP-SCALING-MAN(1) diff --git a/regress/roff/sp/scaling-mdoc.in b/regress/roff/sp/scaling-mdoc.in new file mode 100644 index 00000000..ff4d45c7 --- /dev/null +++ b/regress/roff/sp/scaling-mdoc.in @@ -0,0 +1,30 @@ +.Dd December 23, 2014 +.Dt SP-SCALING-MDOC 1 +.Os OpenBSD +.Sh NAME +.Nm sp-scaling-mdoc +.Nd scaled arguments to .sp requests in mdoc(7) +.Sh DESCRIPTION +20 basic units: +.sp 20u +21 basic units: +.sp 21u +one centimeter: +.sp 1c +quarter of an inch: +.sp 0.25i +half a pica: +.sp 0.5P +one pica: +.sp 1P +6 points: +.sp 6p +7 points: +.sp 7p +one en: +.sp 1n +three en: +.sp 3n +two em: +.sp 2m +end of test document diff --git a/regress/roff/sp/scaling-mdoc.out_ascii b/regress/roff/sp/scaling-mdoc.out_ascii new file mode 100644 index 00000000..625ba7c4 --- /dev/null +++ b/regress/roff/sp/scaling-mdoc.out_ascii @@ -0,0 +1,30 @@ +SP-SCALING-MDOC(1) General Commands Manual SP-SCALING-MDOC(1) + +NNAAMMEE + sspp--ssccaalliinngg--mmddoocc - scaled arguments to .sp requests in mdoc(7) + +DDEESSCCRRIIPPTTIIOONN + 20 basic units: + 21 basic units: + + one centimeter: + + + quarter of an inch: + + half a pica: + one pica: + + 6 points: + 7 points: + + one en: + + three en: + + + two em: + + end of test document + +OpenBSD December 23, 2014 OpenBSD |