summaryrefslogtreecommitdiffstats
path: root/regress/man/UR
diff options
context:
space:
mode:
Diffstat (limited to 'regress/man/UR')
-rw-r--r--regress/man/UR/Makefile12
-rw-r--r--regress/man/UR/args.in29
-rw-r--r--regress/man/UR/args.out_ascii23
-rw-r--r--regress/man/UR/args.out_lint5
-rw-r--r--regress/man/UR/noUE.in11
-rw-r--r--regress/man/UR/noUE.out_ascii15
-rw-r--r--regress/man/UR/noUE.out_lint2
7 files changed, 97 insertions, 0 deletions
diff --git a/regress/man/UR/Makefile b/regress/man/UR/Makefile
new file mode 100644
index 00000000..11cafcdf
--- /dev/null
+++ b/regress/man/UR/Makefile
@@ -0,0 +1,12 @@
+# $OpenBSD: Makefile,v 1.3 2015/02/06 11:54:03 schwarze Exp $
+
+REGRESS_TARGETS = args noUE
+LINT_TARGETS = args noUE
+
+# groff-1.22.3 defects:
+# - Without .UE, .UR does not print the URI.
+# - But .UE prints <> even without .UR.
+
+SKIP_GROFF = noUE
+
+.include <bsd.regress.mk>
diff --git a/regress/man/UR/args.in b/regress/man/UR/args.in
new file mode 100644
index 00000000..f45770b2
--- /dev/null
+++ b/regress/man/UR/args.in
@@ -0,0 +1,29 @@
+.TH UR-ARGS 1 "October 17, 2013" OpenBSD
+.SH NAME
+UR-basic \- argument handling of the man-ext URI macro
+.SH DESCRIPTION
+argument plus text:
+.UR http://www.openbsd.org/
+OpenBSD
+homepage
+.UE
+.PP
+argument but no text:
+.UR http://www.netbsd.org/
+.UE
+.PP
+no argument, but text:
+.UR
+some text
+.UE
+.PP
+two arguments plus text:
+.UR first second
+some text
+.UE
+.PP
+two arguments, but no text:
+.UR first second
+.UE
+.PP
+final text
diff --git a/regress/man/UR/args.out_ascii b/regress/man/UR/args.out_ascii
new file mode 100644
index 00000000..9368974a
--- /dev/null
+++ b/regress/man/UR/args.out_ascii
@@ -0,0 +1,23 @@
+UR-ARGS(1) General Commands Manual UR-ARGS(1)
+
+
+
+NNAAMMEE
+ UR-basic - argument handling of the man-ext URI macro
+
+DDEESSCCRRIIPPTTIIOONN
+ argument plus text: OpenBSD homepage <http://www.openbsd.org/>
+
+ argument but no text: <http://www.netbsd.org/>
+
+ no argument, but text: some text <>
+
+ two arguments plus text: some text <first>
+
+ two arguments, but no text: <first>
+
+ final text
+
+
+
+OpenBSD October 17, 2013 UR-ARGS(1)
diff --git a/regress/man/UR/args.out_lint b/regress/man/UR/args.out_lint
new file mode 100644
index 00000000..3e7ef528
--- /dev/null
+++ b/regress/man/UR/args.out_lint
@@ -0,0 +1,5 @@
+mandoc: args.in:21:11: ERROR: skipping excess arguments: UR ... second
+mandoc: args.in:26:11: ERROR: skipping excess arguments: UR ... second
+mandoc: args.in:12:2: WARNING: empty block: UR
+mandoc: args.in:16:2: WARNING: missing resource identifier, using "": UR
+mandoc: args.in:26:2: WARNING: empty block: UR
diff --git a/regress/man/UR/noUE.in b/regress/man/UR/noUE.in
new file mode 100644
index 00000000..8b6f61dd
--- /dev/null
+++ b/regress/man/UR/noUE.in
@@ -0,0 +1,11 @@
+.TH UR-NOUE 1 "July 7, 2014" OpenBSD
+.SH NAME
+UR-noUE \- unclosed URI macro
+.SH DESCRIPTION
+lonely UE:
+.UE
+.PP
+argument plus text:
+.UR http://www.openbsd.org/
+OpenBSD
+homepage
diff --git a/regress/man/UR/noUE.out_ascii b/regress/man/UR/noUE.out_ascii
new file mode 100644
index 00000000..19090f6b
--- /dev/null
+++ b/regress/man/UR/noUE.out_ascii
@@ -0,0 +1,15 @@
+UR-NOUE(1) General Commands Manual UR-NOUE(1)
+
+
+
+NNAAMMEE
+ UR-noUE - unclosed URI macro
+
+DDEESSCCRRIIPPTTIIOONN
+ lonely UE:
+
+ argument plus text: OpenBSD homepage <http://www.openbsd.org/>
+
+
+
+OpenBSD July 7, 2014 UR-NOUE(1)
diff --git a/regress/man/UR/noUE.out_lint b/regress/man/UR/noUE.out_lint
new file mode 100644
index 00000000..d81fad0f
--- /dev/null
+++ b/regress/man/UR/noUE.out_lint
@@ -0,0 +1,2 @@
+mandoc: noUE.in:6:2: ERROR: skipping end of block that is not open: UE
+mandoc: noUE.in:9:2: ERROR: appending missing end of block: UR