diff options
author | 2017-02-08 03:02:13 +0000 | |
---|---|---|
committer | 2017-02-08 03:02:13 +0000 | |
commit | d9f0f81c846a8405c29870e4a8379e5e79d1cad3 (patch) | |
tree | c07efd74ac58650949dc67576001a720e688319f /regress/mdoc/St | |
parent | cdbb1fca07752eb230e5219c22e9e65075c85b82 (diff) | |
download | mandoc-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/St')
-rw-r--r-- | regress/mdoc/St/Makefile | 12 | ||||
-rw-r--r-- | regress/mdoc/St/badargs.in | 20 | ||||
-rw-r--r-- | regress/mdoc/St/badargs.out_ascii | 17 | ||||
-rw-r--r-- | regress/mdoc/St/badargs.out_lint | 2 | ||||
-rw-r--r-- | regress/mdoc/St/call.in | 14 | ||||
-rw-r--r-- | regress/mdoc/St/call.out_ascii | 13 | ||||
-rw-r--r-- | regress/mdoc/St/call.out_lint | 1 |
7 files changed, 79 insertions, 0 deletions
diff --git a/regress/mdoc/St/Makefile b/regress/mdoc/St/Makefile new file mode 100644 index 00000000..a1bde7e1 --- /dev/null +++ b/regress/mdoc/St/Makefile @@ -0,0 +1,12 @@ +# $OpenBSD: Makefile,v 1.4 2015/02/10 17:47:19 schwarze Exp $ + +REGRESS_TARGETS = badargs call +LINT_TARGETS = badargs call + +# groff-1.22.3 defect: +# - If the first argument of .St is the name of another macro, +# internal groff_mdoc(7) state gets corrupted. + +SKIP_GROFF = call + +.include <bsd.regress.mk> diff --git a/regress/mdoc/St/badargs.in b/regress/mdoc/St/badargs.in new file mode 100644 index 00000000..e1e35e0a --- /dev/null +++ b/regress/mdoc/St/badargs.in @@ -0,0 +1,20 @@ +.Dd June 30, 2010 +.Dt ST-INVALID 1 +.Os OpenBSD +.Sh NAME +.Nm St-invalid +.Nd handling of invalid standard argument +.Sh STANDARDS +valid argument: +.St -p1003.1-2004 +.Pp +invalid argument: +.St -murks +.Pp +no arguments: +.St +.Pp +two arguments: +.St -p1003.1-2004 murks +.Pp +end of file diff --git a/regress/mdoc/St/badargs.out_ascii b/regress/mdoc/St/badargs.out_ascii new file mode 100644 index 00000000..a32ff83b --- /dev/null +++ b/regress/mdoc/St/badargs.out_ascii @@ -0,0 +1,17 @@ +ST-INVALID(1) General Commands Manual ST-INVALID(1) + +NNAAMMEE + SStt--iinnvvaalliidd - handling of invalid standard argument + +SSTTAANNDDAARRDDSS + valid argument: IEEE Std 1003.1-2004 (``POSIX.1'') + + invalid argument: + + no arguments: + + two arguments: IEEE Std 1003.1-2004 (``POSIX.1'') murks + + end of file + +OpenBSD June 30, 2010 OpenBSD diff --git a/regress/mdoc/St/badargs.out_lint b/regress/mdoc/St/badargs.out_lint new file mode 100644 index 00000000..ae74aa1a --- /dev/null +++ b/regress/mdoc/St/badargs.out_lint @@ -0,0 +1,2 @@ +mandoc: badargs.in:15:2: WARNING: skipping empty macro: St +mandoc: badargs.in:12:5: ERROR: unknown standard specifier: St -murks diff --git a/regress/mdoc/St/call.in b/regress/mdoc/St/call.in new file mode 100644 index 00000000..10a45d3a --- /dev/null +++ b/regress/mdoc/St/call.in @@ -0,0 +1,14 @@ +.Dd February 10, 2015 +.Dt ST-CALL 1 +.Os OpenBSD +.Sh NAME +.Nm St-call +.Nd the standard macro calling other macros +.Sh STANDARDS +calling another macro: +.St Fl called +.Pp +valid argument: +.St -p1003.1-2004 +.Pp +end of file diff --git a/regress/mdoc/St/call.out_ascii b/regress/mdoc/St/call.out_ascii new file mode 100644 index 00000000..17f04404 --- /dev/null +++ b/regress/mdoc/St/call.out_ascii @@ -0,0 +1,13 @@ +ST-CALL(1) General Commands Manual ST-CALL(1) + +NNAAMMEE + SStt--ccaallll - the standard macro calling other macros + +SSTTAANNDDAARRDDSS + calling another macro: --ccaalllleedd + + valid argument: IEEE Std 1003.1-2004 (``POSIX.1'') + + end of file + +OpenBSD February 10, 2015 OpenBSD diff --git a/regress/mdoc/St/call.out_lint b/regress/mdoc/St/call.out_lint new file mode 100644 index 00000000..6bf60a71 --- /dev/null +++ b/regress/mdoc/St/call.out_lint @@ -0,0 +1 @@ +mandoc: call.in:9:2: WARNING: skipping empty macro: St |