aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Va
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/Va
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/Va')
-rw-r--r--regress/mdoc/Va/Makefile6
-rw-r--r--regress/mdoc/Va/basic.in14
-rw-r--r--regress/mdoc/Va/basic.out_ascii10
-rw-r--r--regress/mdoc/Va/font.in10
-rw-r--r--regress/mdoc/Va/font.out_ascii9
-rw-r--r--regress/mdoc/Va/noarg.in13
-rw-r--r--regress/mdoc/Va/noarg.out_ascii9
-rw-r--r--regress/mdoc/Va/noarg.out_lint1
8 files changed, 72 insertions, 0 deletions
diff --git a/regress/mdoc/Va/Makefile b/regress/mdoc/Va/Makefile
new file mode 100644
index 00000000..3d426934
--- /dev/null
+++ b/regress/mdoc/Va/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.3 2014/07/02 20:18:42 schwarze Exp $
+
+REGRESS_TARGETS = basic font noarg
+LINT_TARGETS = noarg
+
+.include <bsd.regress.mk>
diff --git a/regress/mdoc/Va/basic.in b/regress/mdoc/Va/basic.in
new file mode 100644
index 00000000..5ce4718a
--- /dev/null
+++ b/regress/mdoc/Va/basic.in
@@ -0,0 +1,14 @@
+.Dd July 8, 2012
+.Dt VA-BASIC 1
+.Os OpenBSD
+.Sh NAME
+.Nm Va-basic
+.Nd basic usage of the variable name macro
+.Sh DESCRIPTION
+Both
+.Vt char *
+.Va malloc_options
+and
+.Vt int
+.Va errno
+are typical examples of global variables.
diff --git a/regress/mdoc/Va/basic.out_ascii b/regress/mdoc/Va/basic.out_ascii
new file mode 100644
index 00000000..a599804a
--- /dev/null
+++ b/regress/mdoc/Va/basic.out_ascii
@@ -0,0 +1,10 @@
+VA-BASIC(1) General Commands Manual VA-BASIC(1)
+
+NNAAMMEE
+ VVaa--bbaassiicc - basic usage of the variable name macro
+
+DDEESSCCRRIIPPTTIIOONN
+ Both _c_h_a_r _* _m_a_l_l_o_c___o_p_t_i_o_n_s and _i_n_t _e_r_r_n_o are typical examples of global
+ variables.
+
+OpenBSD July 8, 2012 OpenBSD
diff --git a/regress/mdoc/Va/font.in b/regress/mdoc/Va/font.in
new file mode 100644
index 00000000..654ee281
--- /dev/null
+++ b/regress/mdoc/Va/font.in
@@ -0,0 +1,10 @@
+.Dd July 9, 2012
+.Dt VA-FONT 1
+.Os OpenBSD
+.Sh NAME
+.Nm Va-font
+.Nd changing fonts inside the variable name macro
+.Sh DESCRIPTION
+normal text
+.Va emphasis\\fBbold\\fPback
+trailing text
diff --git a/regress/mdoc/Va/font.out_ascii b/regress/mdoc/Va/font.out_ascii
new file mode 100644
index 00000000..d7e5af1d
--- /dev/null
+++ b/regress/mdoc/Va/font.out_ascii
@@ -0,0 +1,9 @@
+VA-FONT(1) General Commands Manual VA-FONT(1)
+
+NNAAMMEE
+ VVaa--ffoonntt - changing fonts inside the variable name macro
+
+DDEESSCCRRIIPPTTIIOONN
+ normal text _e_m_p_h_a_s_i_sbboolldd_b_a_c_k trailing text
+
+OpenBSD July 9, 2012 OpenBSD
diff --git a/regress/mdoc/Va/noarg.in b/regress/mdoc/Va/noarg.in
new file mode 100644
index 00000000..f5fadad6
--- /dev/null
+++ b/regress/mdoc/Va/noarg.in
@@ -0,0 +1,13 @@
+.Dd January 20, 2011
+.Dt VA-NOARG 1
+.Os OpenBSD
+.Sh NAME
+.Nm Va-noarg
+.Nd variable name macro without arguments
+.Sh DESCRIPTION
+with arguments
+.Vt int
+.Va errno
+no arguments
+.Va
+end of test document
diff --git a/regress/mdoc/Va/noarg.out_ascii b/regress/mdoc/Va/noarg.out_ascii
new file mode 100644
index 00000000..e7bec8c2
--- /dev/null
+++ b/regress/mdoc/Va/noarg.out_ascii
@@ -0,0 +1,9 @@
+VA-NOARG(1) General Commands Manual VA-NOARG(1)
+
+NNAAMMEE
+ VVaa--nnooaarrgg - variable name macro without arguments
+
+DDEESSCCRRIIPPTTIIOONN
+ with arguments _i_n_t _e_r_r_n_o no arguments end of test document
+
+OpenBSD January 20, 2011 OpenBSD
diff --git a/regress/mdoc/Va/noarg.out_lint b/regress/mdoc/Va/noarg.out_lint
new file mode 100644
index 00000000..7d24e446
--- /dev/null
+++ b/regress/mdoc/Va/noarg.out_lint
@@ -0,0 +1 @@
+mandoc: noarg.in:12:2: WARNING: skipping empty macro: Va