aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Pp
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/Pp
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/Pp')
-rw-r--r--regress/mdoc/Pp/Makefile6
-rw-r--r--regress/mdoc/Pp/arg.in14
-rw-r--r--regress/mdoc/Pp/arg.out_ascii14
-rw-r--r--regress/mdoc/Pp/arg.out_lint3
4 files changed, 37 insertions, 0 deletions
diff --git a/regress/mdoc/Pp/Makefile b/regress/mdoc/Pp/Makefile
new file mode 100644
index 00000000..04e1bc3b
--- /dev/null
+++ b/regress/mdoc/Pp/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.4 2015/02/04 19:11:17 schwarze Exp $
+
+REGRESS_TARGETS = arg
+LINT_TARGETS = arg
+
+.include <bsd.regress.mk>
diff --git a/regress/mdoc/Pp/arg.in b/regress/mdoc/Pp/arg.in
new file mode 100644
index 00000000..563a4e98
--- /dev/null
+++ b/regress/mdoc/Pp/arg.in
@@ -0,0 +1,14 @@
+.Dd February 4, 2015
+.Dt PP-ARG 1
+.Os OpenBSD
+.Sh NAME
+.Nm Pp-arg
+.Nd paragraph macro with arguments
+.Sh DESCRIPTION
+line 1
+.Pp drop this
+line 2
+.br drop this
+line 3
+.sp 1v drop this
+line 4
diff --git a/regress/mdoc/Pp/arg.out_ascii b/regress/mdoc/Pp/arg.out_ascii
new file mode 100644
index 00000000..543772f8
--- /dev/null
+++ b/regress/mdoc/Pp/arg.out_ascii
@@ -0,0 +1,14 @@
+PP-ARG(1) General Commands Manual PP-ARG(1)
+
+NNAAMMEE
+ PPpp--aarrgg - paragraph macro with arguments
+
+DDEESSCCRRIIPPTTIIOONN
+ line 1
+
+ line 2
+ line 3
+
+ line 4
+
+OpenBSD February 4, 2015 OpenBSD
diff --git a/regress/mdoc/Pp/arg.out_lint b/regress/mdoc/Pp/arg.out_lint
new file mode 100644
index 00000000..2e0a2f63
--- /dev/null
+++ b/regress/mdoc/Pp/arg.out_lint
@@ -0,0 +1,3 @@
+mandoc: arg.in:9:2: ERROR: skipping all arguments: Pp drop
+mandoc: arg.in:11:2: ERROR: skipping all arguments: br drop
+mandoc: arg.in:13:8: ERROR: skipping excess arguments: sp ... drop