summaryrefslogtreecommitdiffstats
path: root/regress/roff/it
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
commit4c0770c1ecd159a77561d8e0364385f4bb758650 (patch)
tree5c2d5820b093c1c08b6047ff110e9b055083a5ea /regress/roff/it
parentd16e7f2cf346476e177ce672851b0b957aebbe5d (diff)
downloadmandoc-4c0770c1ecd159a77561d8e0364385f4bb758650.tar.gz
Finally port the OpenBSD regression suite.
Both kristaps@ and wiz@ repeated asked for this, literally for years.
Diffstat (limited to 'regress/roff/it')
-rw-r--r--regress/roff/it/Makefile6
-rw-r--r--regress/roff/it/badarg.in17
-rw-r--r--regress/roff/it/badarg.out_ascii9
-rw-r--r--regress/roff/it/badarg.out_lint2
-rw-r--r--regress/roff/it/double.in16
-rw-r--r--regress/roff/it/double.out_ascii13
-rw-r--r--regress/roff/it/text.in27
-rw-r--r--regress/roff/it/text.out_ascii16
8 files changed, 106 insertions, 0 deletions
diff --git a/regress/roff/it/Makefile b/regress/roff/it/Makefile
new file mode 100644
index 00000000..ec03f94c
--- /dev/null
+++ b/regress/roff/it/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.2 2014/08/14 02:00:53 schwarze Exp $
+
+REGRESS_TARGETS = badarg double text
+LINT_TARGETS = badarg
+
+.include <bsd.regress.mk>
diff --git a/regress/roff/it/badarg.in b/regress/roff/it/badarg.in
new file mode 100644
index 00000000..78c2893c
--- /dev/null
+++ b/regress/roff/it/badarg.in
@@ -0,0 +1,17 @@
+.Dd July 30, 2014
+.Dt IT-BADARG 1
+.Os OpenBSD
+.Sh NAME
+.Nm it-badarg
+.Nd input line traps without numeric arguments
+.Sh DESCRIPTION
+.de mytrap
+traptext
+..
+line 1
+.it mytrap
+line 2
+line 3
+.it
+line 4
+line 5
diff --git a/regress/roff/it/badarg.out_ascii b/regress/roff/it/badarg.out_ascii
new file mode 100644
index 00000000..d4d2bc63
--- /dev/null
+++ b/regress/roff/it/badarg.out_ascii
@@ -0,0 +1,9 @@
+IT-BADARG(1) General Commands Manual IT-BADARG(1)
+
+NNAAMMEE
+ iitt--bbaaddaarrgg - input line traps without numeric arguments
+
+DDEESSCCRRIIPPTTIIOONN
+ line 1 line 2 line 3 line 4 line 5
+
+OpenBSD July 30, 2014 OpenBSD
diff --git a/regress/roff/it/badarg.out_lint b/regress/roff/it/badarg.out_lint
new file mode 100644
index 00000000..d2d4edb3
--- /dev/null
+++ b/regress/roff/it/badarg.out_lint
@@ -0,0 +1,2 @@
+mandoc: badarg.in:12:1: ERROR: skipping request without numeric argument: it mytrap
+mandoc: badarg.in:15:1: ERROR: skipping request without numeric argument: it
diff --git a/regress/roff/it/double.in b/regress/roff/it/double.in
new file mode 100644
index 00000000..d0a93e1e
--- /dev/null
+++ b/regress/roff/it/double.in
@@ -0,0 +1,16 @@
+.TH IT-DOUBLE 1 2013-07-13 OpenBSD
+.SH NAME
+it-double \- double input line trap
+.SH DESCRIPTION
+.de firstmacro
+firstmacro
+..
+.de secondmacro
+secondmacro
+..
+initial text
+.it 1 firstmacro
+.it 2 secondmacro
+first line
+second line
+third line
diff --git a/regress/roff/it/double.out_ascii b/regress/roff/it/double.out_ascii
new file mode 100644
index 00000000..d4704b36
--- /dev/null
+++ b/regress/roff/it/double.out_ascii
@@ -0,0 +1,13 @@
+IT-DOUBLE(1) General Commands Manual IT-DOUBLE(1)
+
+
+
+NNAAMMEE
+ it-double - double input line trap
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text first line second line secondmacro third line
+
+
+
+OpenBSD 2013-07-13 IT-DOUBLE(1)
diff --git a/regress/roff/it/text.in b/regress/roff/it/text.in
new file mode 100644
index 00000000..b3384180
--- /dev/null
+++ b/regress/roff/it/text.in
@@ -0,0 +1,27 @@
+.Dd February 17, 2015
+.Dt IT-TEXT 1
+.Os OpenBSD
+.Sh NAME
+.Nm it-text
+.Nd what an input line trap counts as text
+.Sh DESCRIPTION
+.de trap
+traptext
+..
+initial text
+.it 1trap
+first line after 1trap
+second line after 1trap
+.Pp
+.it 1vtrap
+first line after 1vtrap
+second line after 1vtrap
+.Pp
+.it ( + 1c + 1i)trap
+first line after ( + 1c + 1i)trap
+second line after ( + 1c + 1i)trap
+third line after ( + 1c + 1i)trap
+.it 1 trap
+.Pp
+first line after .Pp
+second line after .Pp
diff --git a/regress/roff/it/text.out_ascii b/regress/roff/it/text.out_ascii
new file mode 100644
index 00000000..bfc89842
--- /dev/null
+++ b/regress/roff/it/text.out_ascii
@@ -0,0 +1,16 @@
+IT-TEXT(1) General Commands Manual IT-TEXT(1)
+
+NNAAMMEE
+ iitt--tteexxtt - what an input line trap counts as text
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text first line after 1trap traptext second line after 1trap
+
+ first line after 1vtrap traptext second line after 1vtrap
+
+ first line after ( + 1c + 1i)trap second line after ( + 1c + 1i)trap
+ traptext third line after ( + 1c + 1i)trap
+
+ first line after .Pp traptext second line after .Pp
+
+OpenBSD February 17, 2015 OpenBSD