aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Ad
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-08 03:02:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-08 03:02:13 +0000
commitd9f0f81c846a8405c29870e4a8379e5e79d1cad3 (patch)
treec07efd74ac58650949dc67576001a720e688319f /regress/mdoc/Ad
parentcdbb1fca07752eb230e5219c22e9e65075c85b82 (diff)
downloadmandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.tar.gz
mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.tar.zst
mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.zip
Finally port the OpenBSD regression suite.
Both kristaps@ and wiz@ repeated asked for this, literally for years.
Diffstat (limited to 'regress/mdoc/Ad')
-rw-r--r--regress/mdoc/Ad/Makefile6
-rw-r--r--regress/mdoc/Ad/font.in10
-rw-r--r--regress/mdoc/Ad/font.out_ascii9
-rw-r--r--regress/mdoc/Ad/noarg.in12
-rw-r--r--regress/mdoc/Ad/noarg.out_ascii9
-rw-r--r--regress/mdoc/Ad/noarg.out_lint1
6 files changed, 47 insertions, 0 deletions
diff --git a/regress/mdoc/Ad/Makefile b/regress/mdoc/Ad/Makefile
new file mode 100644
index 00000000..1be2a84a
--- /dev/null
+++ b/regress/mdoc/Ad/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.4 2014/07/02 20:18:42 schwarze Exp $
+
+REGRESS_TARGETS = noarg font
+LINT_TARGETS = noarg
+
+.include <bsd.regress.mk>
diff --git a/regress/mdoc/Ad/font.in b/regress/mdoc/Ad/font.in
new file mode 100644
index 00000000..104bc194
--- /dev/null
+++ b/regress/mdoc/Ad/font.in
@@ -0,0 +1,10 @@
+.Dd November 20, 2014
+.Dt AD-FONT 1
+.Os OpenBSD
+.Sh NAME
+.Nm Ad-font
+.Nd changing fonts inside the address macro
+.Sh DESCRIPTION
+normal text
+.Ad emphasis\\fBbold\\fPback | after : punctuation
+trailing text
diff --git a/regress/mdoc/Ad/font.out_ascii b/regress/mdoc/Ad/font.out_ascii
new file mode 100644
index 00000000..e829efbd
--- /dev/null
+++ b/regress/mdoc/Ad/font.out_ascii
@@ -0,0 +1,9 @@
+AD-FONT(1) General Commands Manual AD-FONT(1)
+
+NNAAMMEE
+ AAdd--ffoonntt - changing fonts inside the address macro
+
+DDEESSCCRRIIPPTTIIOONN
+ normal text _e_m_p_h_a_s_i_sbboolldd_b_a_c_k | _a_f_t_e_r: _p_u_n_c_t_u_a_t_i_o_n trailing text
+
+OpenBSD November 20, 2014 OpenBSD
diff --git a/regress/mdoc/Ad/noarg.in b/regress/mdoc/Ad/noarg.in
new file mode 100644
index 00000000..65f8167b
--- /dev/null
+++ b/regress/mdoc/Ad/noarg.in
@@ -0,0 +1,12 @@
+.Dd January 19, 2011
+.Dt AD-NOARG 1
+.Os OpenBSD
+.Sh NAME
+.Nm Ad-noarg
+.Nd address macro without an argument
+.Sh DESCRIPTION
+with address:
+.Ad 0x3bc
+no address:
+.Ad
+end of test document
diff --git a/regress/mdoc/Ad/noarg.out_ascii b/regress/mdoc/Ad/noarg.out_ascii
new file mode 100644
index 00000000..6ad60d8a
--- /dev/null
+++ b/regress/mdoc/Ad/noarg.out_ascii
@@ -0,0 +1,9 @@
+AD-NOARG(1) General Commands Manual AD-NOARG(1)
+
+NNAAMMEE
+ AAdd--nnooaarrgg - address macro without an argument
+
+DDEESSCCRRIIPPTTIIOONN
+ with address: _0_x_3_b_c no address: end of test document
+
+OpenBSD January 19, 2011 OpenBSD
diff --git a/regress/mdoc/Ad/noarg.out_lint b/regress/mdoc/Ad/noarg.out_lint
new file mode 100644
index 00000000..180985aa
--- /dev/null
+++ b/regress/mdoc/Ad/noarg.out_lint
@@ -0,0 +1 @@
+mandoc: noarg.in:11:2: WARNING: skipping empty macro: Ad