From d9f0f81c846a8405c29870e4a8379e5e79d1cad3 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 8 Feb 2017 03:02:13 +0000 Subject: Finally port the OpenBSD regression suite. Both kristaps@ and wiz@ repeated asked for this, literally for years. --- regress/man/UR/Makefile | 12 ++++++++++++ regress/man/UR/args.in | 29 +++++++++++++++++++++++++++++ regress/man/UR/args.out_ascii | 23 +++++++++++++++++++++++ regress/man/UR/args.out_lint | 5 +++++ regress/man/UR/noUE.in | 11 +++++++++++ regress/man/UR/noUE.out_ascii | 15 +++++++++++++++ regress/man/UR/noUE.out_lint | 2 ++ 7 files changed, 97 insertions(+) create mode 100644 regress/man/UR/Makefile create mode 100644 regress/man/UR/args.in create mode 100644 regress/man/UR/args.out_ascii create mode 100644 regress/man/UR/args.out_lint create mode 100644 regress/man/UR/noUE.in create mode 100644 regress/man/UR/noUE.out_ascii create mode 100644 regress/man/UR/noUE.out_lint (limited to 'regress/man/UR') 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 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 + + argument but no text: + + no argument, but text: some text <> + + two arguments plus text: some text + + two arguments, but no text: + + 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 + + + +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 -- cgit v1.2.3-56-ge451