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/Bf | |
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/Bf')
-rw-r--r-- | regress/mdoc/Bf/Makefile | 16 | ||||
-rw-r--r-- | regress/mdoc/Bf/badargs.in | 20 | ||||
-rw-r--r-- | regress/mdoc/Bf/badargs.out_ascii | 10 | ||||
-rw-r--r-- | regress/mdoc/Bf/badargs.out_lint | 3 | ||||
-rw-r--r-- | regress/mdoc/Bf/break.in | 16 | ||||
-rw-r--r-- | regress/mdoc/Bf/break.out_ascii | 9 | ||||
-rw-r--r-- | regress/mdoc/Bf/break.out_lint | 1 | ||||
-rw-r--r-- | regress/mdoc/Bf/broken.in | 15 | ||||
-rw-r--r-- | regress/mdoc/Bf/broken.out_ascii | 9 | ||||
-rw-r--r-- | regress/mdoc/Bf/broken.out_lint | 1 | ||||
-rw-r--r-- | regress/mdoc/Bf/multiargs.in | 32 | ||||
-rw-r--r-- | regress/mdoc/Bf/multiargs.out_ascii | 11 | ||||
-rw-r--r-- | regress/mdoc/Bf/multiargs.out_lint | 5 | ||||
-rw-r--r-- | regress/mdoc/Bf/nest.in | 33 | ||||
-rw-r--r-- | regress/mdoc/Bf/nest.out_ascii | 11 |
15 files changed, 192 insertions, 0 deletions
diff --git a/regress/mdoc/Bf/Makefile b/regress/mdoc/Bf/Makefile new file mode 100644 index 00000000..799c8af9 --- /dev/null +++ b/regress/mdoc/Bf/Makefile @@ -0,0 +1,16 @@ +# $OpenBSD: Makefile,v 1.4 2014/07/04 16:11:42 schwarze Exp $ + +REGRESS_TARGETS = nest multiargs badargs break broken +LINT_TARGETS = multiargs badargs break broken + +# groff-1.22.2 defects: +# - If the first argument to .Bf is a bad one, +# no block is opened at all and the .Ef causes another error. +# - If a font block breaks another block, +# fonts get mixed up when the other block finally ends. + +SKIP_GROFF = badargs break + +SKIP_TMAN = break broken + +.include <bsd.regress.mk> diff --git a/regress/mdoc/Bf/badargs.in b/regress/mdoc/Bf/badargs.in new file mode 100644 index 00000000..7752ae75 --- /dev/null +++ b/regress/mdoc/Bf/badargs.in @@ -0,0 +1,20 @@ +.Dd July 4, 2014 +.Dt BF-BADARGS 1 +.Os OpenBSD +.Sh NAME +.Nm Bf-badargs +.Nd font blocks with bad arguments +.Sh DESCRIPTION +normal text +.Bf -emphasis +emphasis +.Bf +no argument +.Ef +back to emphasis +.Bf badarg +bad argument +.Ef tail argument +back to emphasis +.Ef +back to normal diff --git a/regress/mdoc/Bf/badargs.out_ascii b/regress/mdoc/Bf/badargs.out_ascii new file mode 100644 index 00000000..8d26ac4b --- /dev/null +++ b/regress/mdoc/Bf/badargs.out_ascii @@ -0,0 +1,10 @@ +BF-BADARGS(1) General Commands Manual BF-BADARGS(1) + +NNAAMMEE + BBff--bbaaddaarrggss - font blocks with bad arguments + +DDEESSCCRRIIPPTTIIOONN + normal text _e_m_p_h_a_s_i_s no argument _b_a_c_k _t_o _e_m_p_h_a_s_i_s bad argument _b_a_c_k _t_o + _e_m_p_h_a_s_i_s back to normal + +OpenBSD July 4, 2014 OpenBSD diff --git a/regress/mdoc/Bf/badargs.out_lint b/regress/mdoc/Bf/badargs.out_lint new file mode 100644 index 00000000..cdca9c02 --- /dev/null +++ b/regress/mdoc/Bf/badargs.out_lint @@ -0,0 +1,3 @@ +mandoc: badargs.in:17:2: ERROR: skipping all arguments: Ef tail argument +mandoc: badargs.in:11:2: WARNING: missing font type, using \fR: Bf +mandoc: badargs.in:15:5: WARNING: unknown font type, using \fR: Bf badarg diff --git a/regress/mdoc/Bf/break.in b/regress/mdoc/Bf/break.in new file mode 100644 index 00000000..5a905655 --- /dev/null +++ b/regress/mdoc/Bf/break.in @@ -0,0 +1,16 @@ +.Dd November 10, 2012 +.Dt BF-BREAK 1 +.Os OpenBSD +.Sh NAME +.Nm Bf-break +.Nd font block breaking another block +.Sh DESCRIPTION +before both +.Bf Em +before bracket +.Bo +inside both +.Ef +after font block +.Bc +after both diff --git a/regress/mdoc/Bf/break.out_ascii b/regress/mdoc/Bf/break.out_ascii new file mode 100644 index 00000000..6fcd71cf --- /dev/null +++ b/regress/mdoc/Bf/break.out_ascii @@ -0,0 +1,9 @@ +BF-BREAK(1) General Commands Manual BF-BREAK(1) + +NNAAMMEE + BBff--bbrreeaakk - font block breaking another block + +DDEESSCCRRIIPPTTIIOONN + before both _b_e_f_o_r_e _b_r_a_c_k_e_t _[_i_n_s_i_d_e _b_o_t_h after font block] after both + +OpenBSD November 10, 2012 OpenBSD diff --git a/regress/mdoc/Bf/break.out_lint b/regress/mdoc/Bf/break.out_lint new file mode 100644 index 00000000..b704d12c --- /dev/null +++ b/regress/mdoc/Bf/break.out_lint @@ -0,0 +1 @@ +mandoc: break.in:13:2: WARNING: blocks badly nested: Bf breaks Bo diff --git a/regress/mdoc/Bf/broken.in b/regress/mdoc/Bf/broken.in new file mode 100644 index 00000000..228e4c5f --- /dev/null +++ b/regress/mdoc/Bf/broken.in @@ -0,0 +1,15 @@ +.Dd November 10, 2012 +.Dt BF-BROKEN 1 +.Os OpenBSD +.Sh NAME +.Nm Bf-broken +.Nd font block broken by another block +.Sh DESCRIPTION +before both +.Bo before font block +.Bf Em +inside both +.Bc +after bracket +.Ef +after both diff --git a/regress/mdoc/Bf/broken.out_ascii b/regress/mdoc/Bf/broken.out_ascii new file mode 100644 index 00000000..0320ca95 --- /dev/null +++ b/regress/mdoc/Bf/broken.out_ascii @@ -0,0 +1,9 @@ +BF-BROKEN(1) General Commands Manual BF-BROKEN(1) + +NNAAMMEE + BBff--bbrrookkeenn - font block broken by another block + +DDEESSCCRRIIPPTTIIOONN + before both [before font block _i_n_s_i_d_e _b_o_t_h] after bracket after both + +OpenBSD November 10, 2012 OpenBSD diff --git a/regress/mdoc/Bf/broken.out_lint b/regress/mdoc/Bf/broken.out_lint new file mode 100644 index 00000000..e4f53d53 --- /dev/null +++ b/regress/mdoc/Bf/broken.out_lint @@ -0,0 +1 @@ +mandoc: broken.in:12:2: WARNING: blocks badly nested: Bo breaks Bf diff --git a/regress/mdoc/Bf/multiargs.in b/regress/mdoc/Bf/multiargs.in new file mode 100644 index 00000000..31837ec5 --- /dev/null +++ b/regress/mdoc/Bf/multiargs.in @@ -0,0 +1,32 @@ +.Dd July 4, 2014 +.Dt BF-MULTIARGS 1 +.Os OpenBSD +.Sh NAME +.Nm Bf-multiargs +.Nd font blocks with multiple arguments +.Sh DESCRIPTION +normal text +.Bf -symbolic -emphasis +symbolic emphasis +.Ef +back to normal +.Bf -symbolic Em +symbolic Em +.Ef +back to normal +.Bf -symbolic badarg +symbolic badarg +.Ef +back to normal +.Bf Sy -emphasis +Sy -emphasis +.Ef +back to normal +.Bf Sy Em +Sy Em +.Ef +back to normal +.Bf Sy badarg +Sy Em +.Ef +back to normal diff --git a/regress/mdoc/Bf/multiargs.out_ascii b/regress/mdoc/Bf/multiargs.out_ascii new file mode 100644 index 00000000..52b89778 --- /dev/null +++ b/regress/mdoc/Bf/multiargs.out_ascii @@ -0,0 +1,11 @@ +BF-MULTIARGS(1) General Commands Manual BF-MULTIARGS(1) + +NNAAMMEE + BBff--mmuullttiiaarrggss - font blocks with multiple arguments + +DDEESSCCRRIIPPTTIIOONN + normal text ssyymmbboolliicc eemmpphhaassiiss back to normal ssyymmbboolliicc EEmm back to normal + ssyymmbboolliicc bbaaddaarrgg back to normal SSyy --eemmpphhaassiiss back to normal SSyy EEmm back to + normal SSyy EEmm back to normal + +OpenBSD July 4, 2014 OpenBSD diff --git a/regress/mdoc/Bf/multiargs.out_lint b/regress/mdoc/Bf/multiargs.out_lint new file mode 100644 index 00000000..031b1e01 --- /dev/null +++ b/regress/mdoc/Bf/multiargs.out_lint @@ -0,0 +1,5 @@ +mandoc: multiargs.in:13:15: ERROR: skipping excess arguments: Bf ... Em +mandoc: multiargs.in:17:15: ERROR: skipping excess arguments: Bf ... badarg +mandoc: multiargs.in:21:8: ERROR: skipping excess arguments: Bf ... -emphasis +mandoc: multiargs.in:25:8: ERROR: skipping excess arguments: Bf ... Em +mandoc: multiargs.in:29:8: ERROR: skipping excess arguments: Bf ... badarg diff --git a/regress/mdoc/Bf/nest.in b/regress/mdoc/Bf/nest.in new file mode 100644 index 00000000..90de861a --- /dev/null +++ b/regress/mdoc/Bf/nest.in @@ -0,0 +1,33 @@ +.Dd July 9, 2012 +.Dt BF-NEST 1 +.Os OpenBSD +.Sh NAME +.Nm Bf-nest +.Nd nesting font blocks +.Sh DESCRIPTION +normal text +.Bf -emphasis +emphasis +.Bf -literal +literal +.Bf -symbolic +symbolic +.Bf Em +Em +.Bf Li +Li +.Bf Sy +Sy +.Em in-line \&Em \\fRroman\\fP again \&Em +.Ef +back to Li +.Ef +back to Em +.Ef +back to symbolic +.Ef +back to literal +.Ef +back to emphasis +.Ef +back to normal diff --git a/regress/mdoc/Bf/nest.out_ascii b/regress/mdoc/Bf/nest.out_ascii new file mode 100644 index 00000000..117a358d --- /dev/null +++ b/regress/mdoc/Bf/nest.out_ascii @@ -0,0 +1,11 @@ +BF-NEST(1) General Commands Manual BF-NEST(1) + +NNAAMMEE + BBff--nneesstt - nesting font blocks + +DDEESSCCRRIIPPTTIIOONN + normal text _e_m_p_h_a_s_i_s literal ssyymmbboolliicc _E_m Li SSyy _i_n_-_l_i_n_e _E_m roman _a_g_a_i_n _E_m + back to Li _b_a_c_k _t_o _E_m bbaacckk ttoo ssyymmbboolliicc back to literal _b_a_c_k _t_o _e_m_p_h_a_s_i_s + back to normal + +OpenBSD July 9, 2012 OpenBSD |