aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/man/OP
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/man/OP
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/man/OP')
-rw-r--r--regress/man/OP/Makefile6
-rw-r--r--regress/man/OP/args.in13
-rw-r--r--regress/man/OP/args.out_ascii14
-rw-r--r--regress/man/OP/args.out_lint2
4 files changed, 35 insertions, 0 deletions
diff --git a/regress/man/OP/Makefile b/regress/man/OP/Makefile
new file mode 100644
index 00000000..fa4f7e9c
--- /dev/null
+++ b/regress/man/OP/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.1 2015/02/06 11:54:03 schwarze Exp $
+
+REGRESS_TARGETS = args
+LINT_TARGETS = args
+
+.include <bsd.regress.mk>
diff --git a/regress/man/OP/args.in b/regress/man/OP/args.in
new file mode 100644
index 00000000..3fed8337
--- /dev/null
+++ b/regress/man/OP/args.in
@@ -0,0 +1,13 @@
+.TH OP-ARGS 1 "February 6, 2015" OpenBSD
+.SH NAME
+OP-args \- argument handling of the man-ext OP macro
+.SH DESCRIPTION
+no argument:
+.OP
+one argument:
+.OP \-f
+two arguments:
+.OP \-f arg
+three arguments:
+.OP \-f arg bogus
+final text
diff --git a/regress/man/OP/args.out_ascii b/regress/man/OP/args.out_ascii
new file mode 100644
index 00000000..ca3e3c03
--- /dev/null
+++ b/regress/man/OP/args.out_ascii
@@ -0,0 +1,14 @@
+OP-ARGS(1) General Commands Manual OP-ARGS(1)
+
+
+
+NNAAMMEE
+ OP-args - argument handling of the man-ext OP macro
+
+DDEESSCCRRIIPPTTIIOONN
+ no argument: [] one argument: [--ff] two arguments: [--ff _a_r_g] three
+ arguments: [--ff _a_r_g] final text
+
+
+
+OpenBSD February 6, 2015 OP-ARGS(1)
diff --git a/regress/man/OP/args.out_lint b/regress/man/OP/args.out_lint
new file mode 100644
index 00000000..c468d9d0
--- /dev/null
+++ b/regress/man/OP/args.out_lint
@@ -0,0 +1,2 @@
+mandoc: args.in:6:2: WARNING: missing option string, using "": OP
+mandoc: args.in:12:13: ERROR: skipping excess arguments: OP ... bogus