summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-01-04 01:06:44 +0000
committerschwarze <schwarze@openbsd.org>2019-01-04 01:06:44 +0000
commitedead0cedbfc455a40a0f71ff96d1a6dac03d416 (patch)
tree74af4ff2cc0cd6be5e96f01e642cc9aa23eb89ae
parentadd a simplebus print function so unconfigured devices appear in dmesg. (diff)
downloadwireguard-openbsd-edead0cedbfc455a40a0f71ff96d1a6dac03d416.tar.xz
wireguard-openbsd-edead0cedbfc455a40a0f71ff96d1a6dac03d416.zip
test the roff(7) .ce and .rj requests;
they were already supported in the past
-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)