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/Rs | |
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/Rs')
-rw-r--r-- | regress/mdoc/Rs/Makefile | 11 | ||||
-rw-r--r-- | regress/mdoc/Rs/allch.in | 48 | ||||
-rw-r--r-- | regress/mdoc/Rs/allch.out_ascii | 21 | ||||
-rw-r--r-- | regress/mdoc/Rs/allch.out_lint | 6 | ||||
-rw-r--r-- | regress/mdoc/Rs/args.in | 18 | ||||
-rw-r--r-- | regress/mdoc/Rs/args.out_ascii | 13 | ||||
-rw-r--r-- | regress/mdoc/Rs/args.out_lint | 2 | ||||
-rw-r--r-- | regress/mdoc/Rs/break.in | 27 | ||||
-rw-r--r-- | regress/mdoc/Rs/break.out_ascii | 19 | ||||
-rw-r--r-- | regress/mdoc/Rs/empty.in | 16 | ||||
-rw-r--r-- | regress/mdoc/Rs/empty.out_ascii | 14 | ||||
-rw-r--r-- | regress/mdoc/Rs/empty.out_lint | 2 | ||||
-rw-r--r-- | regress/mdoc/Rs/three_authors.in | 13 | ||||
-rw-r--r-- | regress/mdoc/Rs/three_authors.out_ascii | 9 |
14 files changed, 219 insertions, 0 deletions
diff --git a/regress/mdoc/Rs/Makefile b/regress/mdoc/Rs/Makefile new file mode 100644 index 00000000..45fd8cb2 --- /dev/null +++ b/regress/mdoc/Rs/Makefile @@ -0,0 +1,11 @@ +# $OpenBSD: Makefile,v 1.7 2015/02/04 18:03:28 schwarze Exp $ + +REGRESS_TARGETS = allch args break empty three_authors +LINT_TARGETS = allch args empty + +# groff-1.22.3 defect: +# - arguments after .Rs cause the macro to be ignored + +SKIP_GROFF = args + +.include <bsd.regress.mk> diff --git a/regress/mdoc/Rs/allch.in b/regress/mdoc/Rs/allch.in new file mode 100644 index 00000000..abffe803 --- /dev/null +++ b/regress/mdoc/Rs/allch.in @@ -0,0 +1,48 @@ +.Dd July 7, 2014 +.Dt RS-ALLCH 1 +.Os OpenBSD +.Sh NAME +.Nm Rs-allch +.Nd reference block using all supported child macros +.Sh DESCRIPTION +reference on the same line: +.Rs +.%A author name +.%T title of article +.%B book title +.%I issuer name +some +.%J journal name +.%R report name +.%N number of journal +.%V volume number +.Em bogus +text +.%U "uniform resource locator" +.%P page number +.%Q institutional author +.%C city name +.%D date of publication +.%O optional information +.Re +.Sh SEE ALSO +reference after a blank line: +.Rs +.%A author name +.%T title of article +.%B book title +.%I issuer name +some +.Em bogus +.%J journal name +.%R report name +.%N number of journal +.%V volume number +text +.%U "uniform resource locator" +.%P page number +.%Q institutional author +.%C city name +.%D date of publication +.%O optional information +.Re diff --git a/regress/mdoc/Rs/allch.out_ascii b/regress/mdoc/Rs/allch.out_ascii new file mode 100644 index 00000000..78b1230d --- /dev/null +++ b/regress/mdoc/Rs/allch.out_ascii @@ -0,0 +1,21 @@ +RS-ALLCH(1) General Commands Manual RS-ALLCH(1) + +NNAAMMEE + RRss--aallllcchh - reference block using all supported child macros + +DDEESSCCRRIIPPTTIIOONN + reference on the same line: some _b_o_g_u_s text author name, "title of + article", _b_o_o_k _t_i_t_l_e, _i_s_s_u_e_r _n_a_m_e, _j_o_u_r_n_a_l _n_a_m_e, report name, number of + journal, volume number, uniform resource locator, page number, + institutional author, city name, date of publication, optional + information. + +SSEEEE AALLSSOO + reference after a blank line: + + some _b_o_g_u_s text author name, "title of article", _b_o_o_k _t_i_t_l_e, _i_s_s_u_e_r _n_a_m_e, + _j_o_u_r_n_a_l _n_a_m_e, report name, number of journal, volume number, uniform + resource locator, page number, institutional author, city name, date of + publication, optional information. + +OpenBSD July 7, 2014 OpenBSD diff --git a/regress/mdoc/Rs/allch.out_lint b/regress/mdoc/Rs/allch.out_lint new file mode 100644 index 00000000..d8f8988f --- /dev/null +++ b/regress/mdoc/Rs/allch.out_lint @@ -0,0 +1,6 @@ +mandoc: allch.in:14:1: WARNING: invalid content in Rs block: text +mandoc: allch.in:19:2: WARNING: invalid content in Rs block: Em +mandoc: allch.in:20:1: WARNING: invalid content in Rs block: text +mandoc: allch.in:35:1: WARNING: invalid content in Rs block: text +mandoc: allch.in:36:2: WARNING: invalid content in Rs block: Em +mandoc: allch.in:41:1: WARNING: invalid content in Rs block: text diff --git a/regress/mdoc/Rs/args.in b/regress/mdoc/Rs/args.in new file mode 100644 index 00000000..2f292013 --- /dev/null +++ b/regress/mdoc/Rs/args.in @@ -0,0 +1,18 @@ +.Dd February 4, 2015 +.Dt RS-ARGS 1 +.Os OpenBSD +.Sh NAME +.Nm Rs-args +.Nd arguments on a reference block header line +.Sh SEE ALSO +initial text +.Rs bogus +.%A author name +.%B book title +.Re +middle text +.Rs Sy bogus +.%A author name +.%B book title +.Re +final text diff --git a/regress/mdoc/Rs/args.out_ascii b/regress/mdoc/Rs/args.out_ascii new file mode 100644 index 00000000..30cb3c86 --- /dev/null +++ b/regress/mdoc/Rs/args.out_ascii @@ -0,0 +1,13 @@ +RS-ARGS(1) General Commands Manual RS-ARGS(1) + +NNAAMMEE + RRss--aarrggss - arguments on a reference block header line + +SSEEEE AALLSSOO + initial text + + author name, _b_o_o_k _t_i_t_l_e. middle text + + author name, _b_o_o_k _t_i_t_l_e. final text + +OpenBSD February 4, 2015 OpenBSD diff --git a/regress/mdoc/Rs/args.out_lint b/regress/mdoc/Rs/args.out_lint new file mode 100644 index 00000000..f5bccd15 --- /dev/null +++ b/regress/mdoc/Rs/args.out_lint @@ -0,0 +1,2 @@ +mandoc: args.in:9:5: ERROR: skipping all arguments: Rs bogus +mandoc: args.in:14:5: ERROR: skipping all arguments: Rs Sy diff --git a/regress/mdoc/Rs/break.in b/regress/mdoc/Rs/break.in new file mode 100644 index 00000000..0e8d0301 --- /dev/null +++ b/regress/mdoc/Rs/break.in @@ -0,0 +1,27 @@ +.Dd April 15, 2014 +.Dt RS-BREAK 1 +.Os OpenBSD +.Sh NAME +.Nm Rs-break +.Nd line break before reference start +.Sh DESCRIPTION +reference on the same line: +.Rs +.%A author +.%J journal +.%N 42 +.Re +.Sh SEE ALSO +reference after a blank line: +.Rs +.%A author +.%J journal +.%N 42 +.Re +.Sh SEE Em ALSO +reference after a blank line: +.Rs +.%A author +.%J journal +.%N 42 +.Re diff --git a/regress/mdoc/Rs/break.out_ascii b/regress/mdoc/Rs/break.out_ascii new file mode 100644 index 00000000..556c82db --- /dev/null +++ b/regress/mdoc/Rs/break.out_ascii @@ -0,0 +1,19 @@ +RS-BREAK(1) General Commands Manual RS-BREAK(1) + +NNAAMMEE + RRss--bbrreeaakk - line break before reference start + +DDEESSCCRRIIPPTTIIOONN + reference on the same line: author, _j_o_u_r_n_a_l, 42. + +SSEEEE AALLSSOO + reference after a blank line: + + author, _j_o_u_r_n_a_l, 42. + +SSEEEE _A_L_S_O + reference after a blank line: + + author, _j_o_u_r_n_a_l, 42. + +OpenBSD April 15, 2014 OpenBSD diff --git a/regress/mdoc/Rs/empty.in b/regress/mdoc/Rs/empty.in new file mode 100644 index 00000000..36d80663 --- /dev/null +++ b/regress/mdoc/Rs/empty.in @@ -0,0 +1,16 @@ +.Dd February 4, 2015 +.Dt RS-EMPTY 1 +.Os OpenBSD +.Sh NAME +.Nm Rs-empty +.Nd empty reference blocks +.Sh DESCRIPTION +initial text +.Rs +.Re +final text +.Sh SEE ALSO +initial text +.Rs +.Re +final text diff --git a/regress/mdoc/Rs/empty.out_ascii b/regress/mdoc/Rs/empty.out_ascii new file mode 100644 index 00000000..9dad8f6a --- /dev/null +++ b/regress/mdoc/Rs/empty.out_ascii @@ -0,0 +1,14 @@ +RS-EMPTY(1) General Commands Manual RS-EMPTY(1) + +NNAAMMEE + RRss--eemmppttyy - empty reference blocks + +DDEESSCCRRIIPPTTIIOONN + initial text final text + +SSEEEE AALLSSOO + initial text + + final text + +OpenBSD February 4, 2015 OpenBSD diff --git a/regress/mdoc/Rs/empty.out_lint b/regress/mdoc/Rs/empty.out_lint new file mode 100644 index 00000000..afaf9a10 --- /dev/null +++ b/regress/mdoc/Rs/empty.out_lint @@ -0,0 +1,2 @@ +mandoc: empty.in:9:2: WARNING: empty reference block: Rs +mandoc: empty.in:14:2: WARNING: empty reference block: Rs diff --git a/regress/mdoc/Rs/three_authors.in b/regress/mdoc/Rs/three_authors.in new file mode 100644 index 00000000..6ce73bb0 --- /dev/null +++ b/regress/mdoc/Rs/three_authors.in @@ -0,0 +1,13 @@ +.Dd May 1, 2009 +.Dt RS-THREE_AUTHORS 1 +.Os OpenBSD +.Sh NAME +.Nm Rs-three_authors +.Nd listing three authors in a reference block +.Sh AUTHORS +.Rs +.%A kristaps +.%A joerg +.%A ingo +.%T mandoc +.Re diff --git a/regress/mdoc/Rs/three_authors.out_ascii b/regress/mdoc/Rs/three_authors.out_ascii new file mode 100644 index 00000000..a267086a --- /dev/null +++ b/regress/mdoc/Rs/three_authors.out_ascii @@ -0,0 +1,9 @@ +RS-THREE_AUTHORS(1) General Commands Manual RS-THREE_AUTHORS(1) + +NNAAMMEE + RRss--tthhrreeee__aauutthhoorrss - listing three authors in a reference block + +AAUUTTHHOORRSS + kristaps, joerg, and ingo, _m_a_n_d_o_c. + +OpenBSD May 1, 2009 OpenBSD |