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/mdoc/Ex/Makefile | 11 +++++++++++ regress/mdoc/Ex/args.in | 15 +++++++++++++++ regress/mdoc/Ex/args.out_ascii | 16 ++++++++++++++++ regress/mdoc/Ex/noname.in | 15 +++++++++++++++ regress/mdoc/Ex/noname.out_ascii | 16 ++++++++++++++++ regress/mdoc/Ex/noname.out_lint | 2 ++ regress/mdoc/Ex/nostd.in | 15 +++++++++++++++ regress/mdoc/Ex/nostd.out_ascii | 16 ++++++++++++++++ regress/mdoc/Ex/nostd.out_lint | 3 +++ 9 files changed, 109 insertions(+) create mode 100644 regress/mdoc/Ex/Makefile create mode 100644 regress/mdoc/Ex/args.in create mode 100644 regress/mdoc/Ex/args.out_ascii create mode 100644 regress/mdoc/Ex/noname.in create mode 100644 regress/mdoc/Ex/noname.out_ascii create mode 100644 regress/mdoc/Ex/noname.out_lint create mode 100644 regress/mdoc/Ex/nostd.in create mode 100644 regress/mdoc/Ex/nostd.out_ascii create mode 100644 regress/mdoc/Ex/nostd.out_lint (limited to 'regress/mdoc/Ex') diff --git a/regress/mdoc/Ex/Makefile b/regress/mdoc/Ex/Makefile new file mode 100644 index 00000000..8a714ce1 --- /dev/null +++ b/regress/mdoc/Ex/Makefile @@ -0,0 +1,11 @@ +# $OpenBSD: Makefile,v 1.1 2014/08/14 02:00:53 schwarze Exp $ + +REGRESS_TARGETS = args noname nostd +LINT_TARGETS = noname nostd + +# groff-1.22.2 defect: +# - .Ex without -std produces no output + +SKIP_GROFF = nostd + +.include diff --git a/regress/mdoc/Ex/args.in b/regress/mdoc/Ex/args.in new file mode 100644 index 00000000..39a53b74 --- /dev/null +++ b/regress/mdoc/Ex/args.in @@ -0,0 +1,15 @@ +.Dd July 29, 2014 +.Dt EX-ARGS 1 +.Os OpenBSD +.Sh NAME +.Nm Ex-args +.Nd arguments to the exit value macro +.Sh EXIT STATUS +no arguments: +.Ex -std +.Pp +one argument: +.Ex -std one +.Pp +two arguments: +.Ex -std one two diff --git a/regress/mdoc/Ex/args.out_ascii b/regress/mdoc/Ex/args.out_ascii new file mode 100644 index 00000000..d217c36a --- /dev/null +++ b/regress/mdoc/Ex/args.out_ascii @@ -0,0 +1,16 @@ +EX-ARGS(1) General Commands Manual EX-ARGS(1) + +NNAAMMEE + EExx--aarrggss - arguments to the exit value macro + +EEXXIITT SSTTAATTUUSS + no arguments: + The EExx--aarrggss utility exits 0 on success, and >0 if an error occurs. + + one argument: + The oonnee utility exits 0 on success, and >0 if an error occurs. + + two arguments: + The oonnee and ttwwoo utilities exit 0 on success, and >0 if an error occurs. + +OpenBSD July 29, 2014 OpenBSD diff --git a/regress/mdoc/Ex/noname.in b/regress/mdoc/Ex/noname.in new file mode 100644 index 00000000..9aa742f2 --- /dev/null +++ b/regress/mdoc/Ex/noname.in @@ -0,0 +1,15 @@ +.Dd July 29, 2014 +.Dt EX-NONAME 1 +.Os OpenBSD +.Sh NAME +.Nm +.Nd exit value macro without an available name +.Sh EXIT STATUS +no arguments: +.Ex -std +.Pp +one argument: +.Ex -std one +.Pp +two arguments: +.Ex -std one two diff --git a/regress/mdoc/Ex/noname.out_ascii b/regress/mdoc/Ex/noname.out_ascii new file mode 100644 index 00000000..00da4a6b --- /dev/null +++ b/regress/mdoc/Ex/noname.out_ascii @@ -0,0 +1,16 @@ +EX-NONAME(1) General Commands Manual EX-NONAME(1) + +NNAAMMEE + - exit value macro without an available name + +EEXXIITT SSTTAATTUUSS + no arguments: + The utility exits 0 on success, and >0 if an error occurs. + + one argument: + The oonnee utility exits 0 on success, and >0 if an error occurs. + + two arguments: + The oonnee and ttwwoo utilities exit 0 on success, and >0 if an error occurs. + +OpenBSD July 29, 2014 OpenBSD diff --git a/regress/mdoc/Ex/noname.out_lint b/regress/mdoc/Ex/noname.out_lint new file mode 100644 index 00000000..c844104e --- /dev/null +++ b/regress/mdoc/Ex/noname.out_lint @@ -0,0 +1,2 @@ +mandoc: noname.in:5:2: ERROR: missing manual name, using "": Nm +mandoc: noname.in:9:2: WARNING: missing utility name, using "": Ex diff --git a/regress/mdoc/Ex/nostd.in b/regress/mdoc/Ex/nostd.in new file mode 100644 index 00000000..4722cba8 --- /dev/null +++ b/regress/mdoc/Ex/nostd.in @@ -0,0 +1,15 @@ +.Dd July 29, 2014 +.Dt EX-NOSTD 1 +.Os OpenBSD +.Sh NAME +.Nm Ex-nostd +.Nd exit value macros without -std arguments +.Sh EXIT STATUS +no arguments: +.Ex +.Pp +one argument: +.Ex one +.Pp +two arguments: +.Ex one two diff --git a/regress/mdoc/Ex/nostd.out_ascii b/regress/mdoc/Ex/nostd.out_ascii new file mode 100644 index 00000000..04abc9e9 --- /dev/null +++ b/regress/mdoc/Ex/nostd.out_ascii @@ -0,0 +1,16 @@ +EX-NOSTD(1) General Commands Manual EX-NOSTD(1) + +NNAAMMEE + EExx--nnoossttdd - exit value macros without -std arguments + +EEXXIITT SSTTAATTUUSS + no arguments: + The EExx--nnoossttdd utility exits 0 on success, and >0 if an error occurs. + + one argument: + The oonnee utility exits 0 on success, and >0 if an error occurs. + + two arguments: + The oonnee and ttwwoo utilities exit 0 on success, and >0 if an error occurs. + +OpenBSD July 29, 2014 OpenBSD diff --git a/regress/mdoc/Ex/nostd.out_lint b/regress/mdoc/Ex/nostd.out_lint new file mode 100644 index 00000000..0aaaa123 --- /dev/null +++ b/regress/mdoc/Ex/nostd.out_lint @@ -0,0 +1,3 @@ +mandoc: nostd.in:9:2: WARNING: missing -std argument, adding it: Ex +mandoc: nostd.in:12:2: WARNING: missing -std argument, adding it: Ex +mandoc: nostd.in:15:2: WARNING: missing -std argument, adding it: Ex -- cgit v1.2.3