summaryrefslogtreecommitdiffstats
path: root/regress/roff/ft
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-05-05 02:06:19 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-05-05 02:06:19 +0000
commitff9971487e60c2e6e8f7858745eea6520b1c0aa5 (patch)
tree59ed19f97ba7de3fc79a7183395fb59dfe16985f /regress/roff/ft
parent9ec7fd0e6d519550b4d3ae0ae9dd5c53d10e6cab (diff)
downloadmandoc-ff9971487e60c2e6e8f7858745eea6520b1c0aa5.tar.gz
Move handling of the roff(7) .ft request from the man(7)
modules to the new roff(7) modules. As a side effect, mdoc(7) now handles .ft, too. Of course, do not use that.
Diffstat (limited to 'regress/roff/ft')
-rw-r--r--regress/roff/ft/Makefile6
-rw-r--r--regress/roff/ft/badargs-mdoc.in18
-rw-r--r--regress/roff/ft/badargs-mdoc.out_ascii9
-rw-r--r--regress/roff/ft/badargs-mdoc.out_lint2
4 files changed, 33 insertions, 2 deletions
diff --git a/regress/roff/ft/Makefile b/regress/roff/ft/Makefile
index f57fe72b..5d2accbb 100644
--- a/regress/roff/ft/Makefile
+++ b/regress/roff/ft/Makefile
@@ -1,6 +1,8 @@
# $OpenBSD: Makefile,v 1.1 2014/07/05 12:33:54 schwarze Exp $
-REGRESS_TARGETS = badargs
-LINT_TARGETS = badargs
+REGRESS_TARGETS = badargs badargs-mdoc
+LINT_TARGETS = badargs badargs-mdoc
+
+SKIP_TMAN = badargs
.include <bsd.regress.mk>
diff --git a/regress/roff/ft/badargs-mdoc.in b/regress/roff/ft/badargs-mdoc.in
new file mode 100644
index 00000000..06f463b5
--- /dev/null
+++ b/regress/roff/ft/badargs-mdoc.in
@@ -0,0 +1,18 @@
+.Dd May 5, 2017
+.Dt FT-BADARGS-MDOC 1
+.Os OpenBSD
+.Sh NAME
+.Nm ft-badargs-mdoc
+.Nd font request with bad arguments
+.Sh DESCRIPTION
+default font
+.ft B
+bold
+.ft foo
+still bold
+.ft I bogus
+italic
+.ft P
+back to bold
+.ft
+back to italic
diff --git a/regress/roff/ft/badargs-mdoc.out_ascii b/regress/roff/ft/badargs-mdoc.out_ascii
new file mode 100644
index 00000000..bd4eaa09
--- /dev/null
+++ b/regress/roff/ft/badargs-mdoc.out_ascii
@@ -0,0 +1,9 @@
+FT-BADARGS-MDOC(1) General Commands Manual FT-BADARGS-MDOC(1)
+
+NNAAMMEE
+ fftt--bbaaddaarrggss--mmddoocc - font request with bad arguments
+
+DDEESSCCRRIIPPTTIIOONN
+ default font bboolldd ssttiillll bboolldd _i_t_a_l_i_c bbaacckk ttoo bboolldd _b_a_c_k _t_o _i_t_a_l_i_c
+
+OpenBSD May 5, 2017 OpenBSD
diff --git a/regress/roff/ft/badargs-mdoc.out_lint b/regress/roff/ft/badargs-mdoc.out_lint
new file mode 100644
index 00000000..d5f526e6
--- /dev/null
+++ b/regress/roff/ft/badargs-mdoc.out_lint
@@ -0,0 +1,2 @@
+mandoc: badargs-mdoc.in:13:7: ERROR: skipping excess arguments: ft ... bogus
+mandoc: badargs-mdoc.in:11:2: WARNING: unknown font, skipping request: ft foo