aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/roff/ll
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/roff/ll
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/roff/ll')
-rw-r--r--regress/roff/ll/Makefile7
-rw-r--r--regress/roff/ll/basic.in25
-rw-r--r--regress/roff/ll/basic.out_ascii23
3 files changed, 55 insertions, 0 deletions
diff --git a/regress/roff/ll/Makefile b/regress/roff/ll/Makefile
new file mode 100644
index 00000000..c8c99b9c
--- /dev/null
+++ b/regress/roff/ll/Makefile
@@ -0,0 +1,7 @@
+# $OpenBSD: Makefile,v 1.1 2014/03/30 19:47:32 schwarze Exp $
+
+REGRESS_TARGETS = basic
+
+SKIP_TMAN =
+
+.include <bsd.regress.mk>
diff --git a/regress/roff/ll/basic.in b/regress/roff/ll/basic.in
new file mode 100644
index 00000000..9f03a517
--- /dev/null
+++ b/regress/roff/ll/basic.in
@@ -0,0 +1,25 @@
+.Dd February 5, 2014
+.Dt LL-BASIC 1
+.Os OpenBSD
+.Sh NAME
+.Nm ll-basic
+.Nd changing the line length
+.Sh DESCRIPTION
+This is a longer text to demonstrate the default line length.
+In ASCII mode, it is expected to break at column 78.
+.Pp
+.ll 38n
+This is another long text to demonstrate shorter lines.
+In ASCII mode, it is expected to break at column 38.
+.Pp
+.ll
+This is a longer text after switching back to the default line length.
+In ASCII mode, it is expected to break at column 78.
+.Pp
+.ll +100n
+This is another long text to demonstrate longer lines.
+In ASCII mode, it is not expected to break at all.
+.Pp
+.ll FOO
+This is a longer text after switching to an invalid line length.
+In ASCII mode, it is expected to break at column 78.
diff --git a/regress/roff/ll/basic.out_ascii b/regress/roff/ll/basic.out_ascii
new file mode 100644
index 00000000..b5448e24
--- /dev/null
+++ b/regress/roff/ll/basic.out_ascii
@@ -0,0 +1,23 @@
+LL-BASIC(1) General Commands Manual LL-BASIC(1)
+
+NNAAMMEE
+ llll--bbaassiicc - changing the line length
+
+DDEESSCCRRIIPPTTIIOONN
+ This is a longer text to demonstrate the default line length. In ASCII
+ mode, it is expected to break at column 78.
+
+ This is another long text to
+ demonstrate shorter lines. In
+ ASCII mode, it is expected to
+ break at column 38.
+
+ This is a longer text after switching back to the default line length.
+ In ASCII mode, it is expected to break at column 78.
+
+ This is another long text to demonstrate longer lines. In ASCII mode, it is not expected to break at all.
+
+ This is a longer text after switching to an invalid line length. In
+ ASCII mode, it is expected to break at column 78.
+
+OpenBSD February 5, 2014 OpenBSD