From 968237f527c0925ee4300f535b2efb1d2a9e783f Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 25 Jun 2017 14:09:44 +0000 Subject: test new MT macro --- regress/man/MT/Makefile | 12 ++++++++++++ regress/man/MT/args.in | 29 +++++++++++++++++++++++++++++ regress/man/MT/args.out_ascii | 23 +++++++++++++++++++++++ regress/man/MT/args.out_lint | 6 ++++++ regress/man/MT/noME.in | 11 +++++++++++ regress/man/MT/noME.out_ascii | 15 +++++++++++++++ regress/man/MT/noME.out_lint | 3 +++ 7 files changed, 99 insertions(+) create mode 100644 regress/man/MT/Makefile create mode 100644 regress/man/MT/args.in create mode 100644 regress/man/MT/args.out_ascii create mode 100644 regress/man/MT/args.out_lint create mode 100644 regress/man/MT/noME.in create mode 100644 regress/man/MT/noME.out_ascii create mode 100644 regress/man/MT/noME.out_lint (limited to 'regress/man/MT') diff --git a/regress/man/MT/Makefile b/regress/man/MT/Makefile new file mode 100644 index 00000000..70e0bfb5 --- /dev/null +++ b/regress/man/MT/Makefile @@ -0,0 +1,12 @@ +# $OpenBSD: Makefile,v 1.3 2015/02/06 11:54:03 schwarze Exp $ + +REGRESS_TARGETS = args noME +LINT_TARGETS = args noME + +# groff-1.22.3 defects: +# - Without .ME, .MT does not print the address. +# - But .ME prints <> even without .MT. + +SKIP_GROFF = noME + +.include diff --git a/regress/man/MT/args.in b/regress/man/MT/args.in new file mode 100644 index 00000000..e8335d0b --- /dev/null +++ b/regress/man/MT/args.in @@ -0,0 +1,29 @@ +.TH MT-ARGS 1 "June 25, 2017" OpenBSD +.SH NAME +MT-args \- argument handling of the man-ext mailto macro +.SH DESCRIPTION +argument plus text: +.MT test@example.com +invalid +address +.ME +.PP +argument but no text: +.MT test@example.com +.ME +.PP +no argument, but text: +.MT +some text +.ME +.PP +two arguments plus text: +.MT first second +some text +.ME +.PP +two arguments, but no text: +.MT first second +.ME +.PP +final text diff --git a/regress/man/MT/args.out_ascii b/regress/man/MT/args.out_ascii new file mode 100644 index 00000000..05939dcb --- /dev/null +++ b/regress/man/MT/args.out_ascii @@ -0,0 +1,23 @@ +MT-ARGS(1) General Commands Manual MT-ARGS(1) + + + +NNAAMMEE + MT-args - argument handling of the man-ext mailto macro + +DDEESSCCRRIIPPTTIIOONN + argument plus text: invalid address + + argument but no text: + + no argument, but text: some text <> + + two arguments plus text: some text + + two arguments, but no text: + + final text + + + +OpenBSD June 25, 2017 MT-ARGS(1) diff --git a/regress/man/MT/args.out_lint b/regress/man/MT/args.out_lint new file mode 100644 index 00000000..d26e9fdd --- /dev/null +++ b/regress/man/MT/args.out_lint @@ -0,0 +1,6 @@ +mandoc: args.in:21:11: ERROR: skipping excess arguments: MT ... second +mandoc: args.in:26:11: ERROR: skipping excess arguments: MT ... second +mandoc: args.in:12:2: WARNING: empty block: MT +mandoc: args.in:16:2: WARNING: missing resource identifier, using "": MT +mandoc: args.in:26:2: WARNING: empty block: MT +mandoc: args.in: BASE: RCS id missing: (OpenBSD) diff --git a/regress/man/MT/noME.in b/regress/man/MT/noME.in new file mode 100644 index 00000000..45abdbef --- /dev/null +++ b/regress/man/MT/noME.in @@ -0,0 +1,11 @@ +.TH MT-NOME 1 "June 25, 2017" OpenBSD +.SH NAME +MT-noME \- unclosed mailto macro +.SH DESCRIPTION +lonely ME: +.ME +.PP +argument plus text: +.MT test@example.com +invalid +address diff --git a/regress/man/MT/noME.out_ascii b/regress/man/MT/noME.out_ascii new file mode 100644 index 00000000..c6aee5db --- /dev/null +++ b/regress/man/MT/noME.out_ascii @@ -0,0 +1,15 @@ +MT-NOME(1) General Commands Manual MT-NOME(1) + + + +NNAAMMEE + MT-noME - unclosed mailto macro + +DDEESSCCRRIIPPTTIIOONN + lonely ME: + + argument plus text: invalid address + + + +OpenBSD June 25, 2017 MT-NOME(1) diff --git a/regress/man/MT/noME.out_lint b/regress/man/MT/noME.out_lint new file mode 100644 index 00000000..98b1349e --- /dev/null +++ b/regress/man/MT/noME.out_lint @@ -0,0 +1,3 @@ +mandoc: noME.in:6:2: ERROR: skipping end of block that is not open: ME +mandoc: noME.in:9:2: ERROR: appending missing end of block: MT +mandoc: noME.in: BASE: RCS id missing: (OpenBSD) -- cgit v1.2.3-56-ge451