summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc/roff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2019-01-04 01:06:45 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2019-01-04 01:06:45 +0000
commitbb9cbbdee14755ae8d33e2e57b55526a583a5f7b (patch)
treeab8e3ee1521835bf73c7a8becb38b061f705b2e2 /regress/usr.bin/mandoc/roff
parentd9043bb84ad3c55f405208760b367486949de1e1 (diff)
test the roff(7) .ce and .rj requests;
they were already supported in the past
Diffstat (limited to 'regress/usr.bin/mandoc/roff')
-rw-r--r--regress/usr.bin/mandoc/roff/Makefile4
-rw-r--r--regress/usr.bin/mandoc/roff/ce/Makefile5
-rw-r--r--regress/usr.bin/mandoc/roff/ce/basic.in17
-rw-r--r--regress/usr.bin/mandoc/roff/ce/basic.out_ascii19
4 files changed, 43 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/roff/Makefile b/regress/usr.bin/mandoc/roff/Makefile
index 036a66e561d..9c9580f1941 100644
--- a/regress/usr.bin/mandoc/roff/Makefile
+++ b/regress/usr.bin/mandoc/roff/Makefile
@@ -1,7 +1,7 @@
-# $OpenBSD: Makefile,v 1.27 2018/08/25 16:46:28 schwarze Exp $
+# $OpenBSD: Makefile,v 1.28 2019/01/04 01:06:44 schwarze Exp $
SUBDIR = args cond esc scale string
-SUBDIR += br cc char de ds ft ig it ll na nr po ps
+SUBDIR += br cc ce char de ds ft ig it ll na nr po ps
SUBDIR += return rm rn shift sp ta ti tr while
.include "../Makefile.sub"
diff --git a/regress/usr.bin/mandoc/roff/ce/Makefile b/regress/usr.bin/mandoc/roff/ce/Makefile
new file mode 100644
index 00000000000..2024bdce27b
--- /dev/null
+++ b/regress/usr.bin/mandoc/roff/ce/Makefile
@@ -0,0 +1,5 @@
+# $OpenBSD: Makefile,v 1.1 2019/01/04 01:06:44 schwarze Exp $
+
+REGRESS_TARGETS = basic
+
+.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/roff/ce/basic.in b/regress/usr.bin/mandoc/roff/ce/basic.in
new file mode 100644
index 00000000000..9930d56b265
--- /dev/null
+++ b/regress/usr.bin/mandoc/roff/ce/basic.in
@@ -0,0 +1,17 @@
+.\" $OpenBSD: basic.in,v 1.1 2019/01/04 01:06:44 schwarze Exp $
+.TH CE-BASIC 1 "January 4, 2019"
+.SH NAME
+ce-basic \- basic usage of the centering request
+.SH DESCRIPTION
+initial
+text
+.ce 2
+Text centered with the .ce request
+is not filled.
+normal
+text
+.rj 2
+Text adjusted to the right margin
+works in just the same way and isn't filled either.
+final
+text
diff --git a/regress/usr.bin/mandoc/roff/ce/basic.out_ascii b/regress/usr.bin/mandoc/roff/ce/basic.out_ascii
new file mode 100644
index 00000000000..709e1e96f17
--- /dev/null
+++ b/regress/usr.bin/mandoc/roff/ce/basic.out_ascii
@@ -0,0 +1,19 @@
+CE-BASIC(1) General Commands Manual CE-BASIC(1)
+
+
+
+NNAAMMEE
+ ce-basic - basic usage of the centering request
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text
+ Text centered with the .ce request
+ is not filled.
+ normal text
+ Text adjusted to the right margin
+ works in just the same way and isn't filled either.
+ final text
+
+
+
+OpenBSD January 4, 2019 CE-BASIC(1)