aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Ex
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/mdoc/Ex
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/mdoc/Ex')
-rw-r--r--regress/mdoc/Ex/Makefile11
-rw-r--r--regress/mdoc/Ex/args.in15
-rw-r--r--regress/mdoc/Ex/args.out_ascii16
-rw-r--r--regress/mdoc/Ex/noname.in15
-rw-r--r--regress/mdoc/Ex/noname.out_ascii16
-rw-r--r--regress/mdoc/Ex/noname.out_lint2
-rw-r--r--regress/mdoc/Ex/nostd.in15
-rw-r--r--regress/mdoc/Ex/nostd.out_ascii16
-rw-r--r--regress/mdoc/Ex/nostd.out_lint3
9 files changed, 109 insertions, 0 deletions
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 <bsd.regress.mk>
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