aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/In
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/mdoc/In
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/mdoc/In')
-rw-r--r--regress/mdoc/In/Makefile6
-rw-r--r--regress/mdoc/In/break.in26
-rw-r--r--regress/mdoc/In/break.out_ascii26
-rw-r--r--regress/mdoc/In/eos.in10
-rw-r--r--regress/mdoc/In/eos.out_ascii9
-rw-r--r--regress/mdoc/In/font.in10
-rw-r--r--regress/mdoc/In/font.out_ascii9
-rw-r--r--regress/mdoc/In/noarg.in20
-rw-r--r--regress/mdoc/In/noarg.out_ascii18
-rw-r--r--regress/mdoc/In/noarg.out_lint2
10 files changed, 136 insertions, 0 deletions
diff --git a/regress/mdoc/In/Makefile b/regress/mdoc/In/Makefile
new file mode 100644
index 00000000..790827bb
--- /dev/null
+++ b/regress/mdoc/In/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.6 2015/02/06 01:07:07 schwarze Exp $
+
+REGRESS_TARGETS = break eos font noarg
+LINT_TARGETS = noarg
+
+.include <bsd.regress.mk>
diff --git a/regress/mdoc/In/break.in b/regress/mdoc/In/break.in
new file mode 100644
index 00000000..0e26731b
--- /dev/null
+++ b/regress/mdoc/In/break.in
@@ -0,0 +1,26 @@
+.Dd June 6, 2010
+.Dt IN-BREAK 2
+.Os OpenBSD
+.Sh NAME
+.Nm In-break
+.Nd line break before header include file
+.Sh SYNOPSIS
+.In fcntl.h
+.Ft int
+.Fn open "const char *path" "int flags" "mode_t mode"
+.In sys/types.h
+.In unistd.h
+.Ft int
+.Fn dup "int oldd"
+.Ft ssize_t
+.Fn write "int d" "const void *buf" "size_t nbytes"
+.Sh DESCRIPTION
+.In fcntl.h
+.Ft int
+.Fn open "const char *path" "int flags" "mode_t mode"
+.In sys/types.h
+.In unistd.h
+.Ft int
+.Fn dup "int oldd"
+.Ft ssize_t
+.Fn write "int d" "const void *buf" "size_t nbytes"
diff --git a/regress/mdoc/In/break.out_ascii b/regress/mdoc/In/break.out_ascii
new file mode 100644
index 00000000..d6488f81
--- /dev/null
+++ b/regress/mdoc/In/break.out_ascii
@@ -0,0 +1,26 @@
+IN-BREAK(2) System Calls Manual IN-BREAK(2)
+
+NNAAMMEE
+ IInn--bbrreeaakk - line break before header include file
+
+SSYYNNOOPPSSIISS
+ ##iinncclluuddee <<ffccnnttll..hh>>
+
+ _i_n_t
+ ooppeenn(_c_o_n_s_t _c_h_a_r _*_p_a_t_h, _i_n_t _f_l_a_g_s, _m_o_d_e___t _m_o_d_e);
+
+ ##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
+ ##iinncclluuddee <<uunniissttdd..hh>>
+
+ _i_n_t
+ dduupp(_i_n_t _o_l_d_d);
+
+ _s_s_i_z_e___t
+ wwrriittee(_i_n_t _d, _c_o_n_s_t _v_o_i_d _*_b_u_f, _s_i_z_e___t _n_b_y_t_e_s);
+
+DDEESSCCRRIIPPTTIIOONN
+ <_f_c_n_t_l_._h> _i_n_t ooppeenn(_c_o_n_s_t _c_h_a_r _*_p_a_t_h, _i_n_t _f_l_a_g_s, _m_o_d_e___t _m_o_d_e)
+ <_s_y_s_/_t_y_p_e_s_._h> <_u_n_i_s_t_d_._h> _i_n_t dduupp(_i_n_t _o_l_d_d) _s_s_i_z_e___t wwrriittee(_i_n_t _d, _c_o_n_s_t
+ _v_o_i_d _*_b_u_f, _s_i_z_e___t _n_b_y_t_e_s)
+
+OpenBSD June 6, 2010 OpenBSD
diff --git a/regress/mdoc/In/eos.in b/regress/mdoc/In/eos.in
new file mode 100644
index 00000000..929c2be9
--- /dev/null
+++ b/regress/mdoc/In/eos.in
@@ -0,0 +1,10 @@
+.Dd November 16, 2012
+.Dt IN-EOS 1
+.Os OpenBSD
+.Sh NAME
+.Nm In-eos
+.Nd end of sentence handling after the include macro
+.Sh DESCRIPTION
+Let's use
+.In string.h .
+And then something else.
diff --git a/regress/mdoc/In/eos.out_ascii b/regress/mdoc/In/eos.out_ascii
new file mode 100644
index 00000000..4f5a1036
--- /dev/null
+++ b/regress/mdoc/In/eos.out_ascii
@@ -0,0 +1,9 @@
+IN-EOS(1) General Commands Manual IN-EOS(1)
+
+NNAAMMEE
+ IInn--eeooss - end of sentence handling after the include macro
+
+DDEESSCCRRIIPPTTIIOONN
+ Let's use <_s_t_r_i_n_g_._h>. And then something else.
+
+OpenBSD November 16, 2012 OpenBSD
diff --git a/regress/mdoc/In/font.in b/regress/mdoc/In/font.in
new file mode 100644
index 00000000..e24ab18d
--- /dev/null
+++ b/regress/mdoc/In/font.in
@@ -0,0 +1,10 @@
+.Dd July 9, 2012
+.Dt IN-FONT 2
+.Os OpenBSD
+.Sh NAME
+.Nm In-font
+.Nd changing the font inside the include macro
+.Sh DESCRIPTION
+normal text
+.In prefix\\fBheader\\fPsuffix
+trailing text
diff --git a/regress/mdoc/In/font.out_ascii b/regress/mdoc/In/font.out_ascii
new file mode 100644
index 00000000..7d1948e4
--- /dev/null
+++ b/regress/mdoc/In/font.out_ascii
@@ -0,0 +1,9 @@
+IN-FONT(2) System Calls Manual IN-FONT(2)
+
+NNAAMMEE
+ IInn--ffoonntt - changing the font inside the include macro
+
+DDEESSCCRRIIPPTTIIOONN
+ normal text <_p_r_e_f_i_xhheeaaddeerr_s_u_f_f_i_x> trailing text
+
+OpenBSD July 9, 2012 OpenBSD
diff --git a/regress/mdoc/In/noarg.in b/regress/mdoc/In/noarg.in
new file mode 100644
index 00000000..f443637a
--- /dev/null
+++ b/regress/mdoc/In/noarg.in
@@ -0,0 +1,20 @@
+.Dd February 5, 2015
+.Dt IN-NOARG 2
+.Os OpenBSD
+.Sh NAME
+.Nm In-noarg
+.Nd include file macros without argument
+.Sh SYNOPSIS
+.In math.h
+.Ft double
+.Fn sin "double x"
+.In
+.Ft double
+.Fn cos "double x"
+.Sh DESCRIPTION
+.In math.h
+.Ft double
+.Fn sin "double x"
+.In
+.Ft double
+.Fn cos "double x"
diff --git a/regress/mdoc/In/noarg.out_ascii b/regress/mdoc/In/noarg.out_ascii
new file mode 100644
index 00000000..1a86acd6
--- /dev/null
+++ b/regress/mdoc/In/noarg.out_ascii
@@ -0,0 +1,18 @@
+IN-NOARG(2) System Calls Manual IN-NOARG(2)
+
+NNAAMMEE
+ IInn--nnooaarrgg - include file macros without argument
+
+SSYYNNOOPPSSIISS
+ ##iinncclluuddee <<mmaatthh..hh>>
+
+ _d_o_u_b_l_e
+ ssiinn(_d_o_u_b_l_e _x);
+
+ _d_o_u_b_l_e
+ ccooss(_d_o_u_b_l_e _x);
+
+DDEESSCCRRIIPPTTIIOONN
+ <_m_a_t_h_._h> _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x) _d_o_u_b_l_e ccooss(_d_o_u_b_l_e _x)
+
+OpenBSD February 5, 2015 OpenBSD
diff --git a/regress/mdoc/In/noarg.out_lint b/regress/mdoc/In/noarg.out_lint
new file mode 100644
index 00000000..3b4e6d22
--- /dev/null
+++ b/regress/mdoc/In/noarg.out_lint
@@ -0,0 +1,2 @@
+mandoc: noarg.in:11:2: WARNING: skipping empty macro: In
+mandoc: noarg.in:18:2: WARNING: skipping empty macro: In