diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
commit | 4c0770c1ecd159a77561d8e0364385f4bb758650 (patch) | |
tree | 5c2d5820b093c1c08b6047ff110e9b055083a5ea /regress/eqn/define | |
parent | d16e7f2cf346476e177ce672851b0b957aebbe5d (diff) | |
download | mandoc-4c0770c1ecd159a77561d8e0364385f4bb758650.tar.gz |
Finally port the OpenBSD regression suite.
Both kristaps@ and wiz@ repeated asked for this,
literally for years.
Diffstat (limited to 'regress/eqn/define')
-rw-r--r-- | regress/eqn/define/Makefile | 6 | ||||
-rw-r--r-- | regress/eqn/define/invalid.in | 36 | ||||
-rw-r--r-- | regress/eqn/define/invalid.out_ascii | 17 | ||||
-rw-r--r-- | regress/eqn/define/invalid.out_lint | 5 |
4 files changed, 64 insertions, 0 deletions
diff --git a/regress/eqn/define/Makefile b/regress/eqn/define/Makefile new file mode 100644 index 00000000..4be9cf5e --- /dev/null +++ b/regress/eqn/define/Makefile @@ -0,0 +1,6 @@ +# $OpenBSD: Makefile,v 1.1 2015/01/28 21:10:28 schwarze Exp $ + +REGRESS_TARGETS = invalid +LINT_TARGETS = invalid + +.include <bsd.regress.mk> diff --git a/regress/eqn/define/invalid.in b/regress/eqn/define/invalid.in new file mode 100644 index 00000000..aa8bcb8c --- /dev/null +++ b/regress/eqn/define/invalid.in @@ -0,0 +1,36 @@ +.Dd January 28, 2015 +.Dt DEFINE-INVALID 1 +.Os OpenBSD +.Sh NAME +.Nm define-invalid +.Nd invalid define and undef statements +.Sh DESCRIPTION +define without variable name: +.EQ +define bruch 'over' 1 bruch 2 undef bruch bruch define +.EN +eol +.Pp +define without value: +.EQ +define bruch 'over' 1 bruch 2 undef bruch bruch define bruch +.EN +eol +.Pp +define without value: +.EQ +define bruch 'over' 1 bruch 2 undef bruch bruch undef +.EN +eol +.Pp +tdefine without variable name: +.EQ +tdefine +.EN +eol +.Pp +tdefine without value: +.EQ +tdefine bruch +.EN +eol diff --git a/regress/eqn/define/invalid.out_ascii b/regress/eqn/define/invalid.out_ascii new file mode 100644 index 00000000..0725dde2 --- /dev/null +++ b/regress/eqn/define/invalid.out_ascii @@ -0,0 +1,17 @@ +DEFINE-INVALID(1) General Commands Manual DEFINE-INVALID(1) + +NNAAMMEE + ddeeffiinnee--iinnvvaalliidd - invalid define and undef statements + +DDEESSCCRRIIPPTTIIOONN + define without variable name: 1/2 bruch eol + + define without value: 1/2 bruch eol + + define without value: 1/2 bruch eol + + tdefine without variable name: eol + + tdefine without value: eol + +OpenBSD January 28, 2015 OpenBSD diff --git a/regress/eqn/define/invalid.out_lint b/regress/eqn/define/invalid.out_lint new file mode 100644 index 00000000..3f230400 --- /dev/null +++ b/regress/eqn/define/invalid.out_lint @@ -0,0 +1,5 @@ +mandoc: invalid.in:9:1: WARNING: skipping empty request: define +mandoc: invalid.in:15:1: WARNING: skipping empty request: define bruch +mandoc: invalid.in:21:1: WARNING: skipping empty request: undef +mandoc: invalid.in:27:1: WARNING: skipping empty request: tdefine +mandoc: invalid.in:33:1: WARNING: skipping empty request: tdefine |