summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Fl
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/mdoc/Fl
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/mdoc/Fl')
-rw-r--r--regress/mdoc/Fl/Makefile5
-rw-r--r--regress/mdoc/Fl/font.in10
-rw-r--r--regress/mdoc/Fl/font.out_ascii9
-rw-r--r--regress/mdoc/Fl/multiarg.in14
-rw-r--r--regress/mdoc/Fl/multiarg.out_ascii11
-rw-r--r--regress/mdoc/Fl/noarg.in19
-rw-r--r--regress/mdoc/Fl/noarg.out_ascii13
-rw-r--r--regress/mdoc/Fl/parsed.in18
-rw-r--r--regress/mdoc/Fl/parsed.out_ascii17
-rw-r--r--regress/mdoc/Fl/punct.in39
-rw-r--r--regress/mdoc/Fl/punct.out_ascii12
11 files changed, 167 insertions, 0 deletions
diff --git a/regress/mdoc/Fl/Makefile b/regress/mdoc/Fl/Makefile
new file mode 100644
index 00000000..e9e01a19
--- /dev/null
+++ b/regress/mdoc/Fl/Makefile
@@ -0,0 +1,5 @@
+# $OpenBSD: Makefile,v 1.8 2014/08/21 12:56:24 schwarze Exp $
+
+REGRESS_TARGETS = noarg multiarg parsed punct font
+
+.include <bsd.regress.mk>
diff --git a/regress/mdoc/Fl/font.in b/regress/mdoc/Fl/font.in
new file mode 100644
index 00000000..c7514d31
--- /dev/null
+++ b/regress/mdoc/Fl/font.in
@@ -0,0 +1,10 @@
+.Dd July 9, 2012
+.Dt FL-FONT 1
+.Os OpenBSD
+.Sh NAME
+.Nm Fl-font
+.Nd changing fonts inside the flag macro
+.Sh DESCRIPTION
+normal text
+.Fl bold\\fIemphasis\\fPback
+trailing text
diff --git a/regress/mdoc/Fl/font.out_ascii b/regress/mdoc/Fl/font.out_ascii
new file mode 100644
index 00000000..495c8975
--- /dev/null
+++ b/regress/mdoc/Fl/font.out_ascii
@@ -0,0 +1,9 @@
+FL-FONT(1) General Commands Manual FL-FONT(1)
+
+NNAAMMEE
+ FFll--ffoonntt - changing fonts inside the flag macro
+
+DDEESSCCRRIIPPTTIIOONN
+ normal text --bboolldd_e_m_p_h_a_s_i_sbbaacckk trailing text
+
+OpenBSD July 9, 2012 OpenBSD
diff --git a/regress/mdoc/Fl/multiarg.in b/regress/mdoc/Fl/multiarg.in
new file mode 100644
index 00000000..77a9068e
--- /dev/null
+++ b/regress/mdoc/Fl/multiarg.in
@@ -0,0 +1,14 @@
+.Dd December 24, 2009
+.Dt FL-MULTIARG 1
+.Os OpenBSD
+.Sh NAME
+.Nm Fl-multiarg
+.Nd multiple arguments to a Fl macro
+.Sh DESCRIPTION
+Each group of flags in
+.Fl a b c def
+gets its own dash.
+.Pp
+Punctuation characters like in
+.Op Fl a | b
+get no dash.
diff --git a/regress/mdoc/Fl/multiarg.out_ascii b/regress/mdoc/Fl/multiarg.out_ascii
new file mode 100644
index 00000000..0ad669e2
--- /dev/null
+++ b/regress/mdoc/Fl/multiarg.out_ascii
@@ -0,0 +1,11 @@
+FL-MULTIARG(1) General Commands Manual FL-MULTIARG(1)
+
+NNAAMMEE
+ FFll--mmuullttiiaarrgg - multiple arguments to a Fl macro
+
+DDEESSCCRRIIPPTTIIOONN
+ Each group of flags in --aa --bb --cc --ddeeff gets its own dash.
+
+ Punctuation characters like in [--aa | --bb] get no dash.
+
+OpenBSD December 24, 2009 OpenBSD
diff --git a/regress/mdoc/Fl/noarg.in b/regress/mdoc/Fl/noarg.in
new file mode 100644
index 00000000..0c604dbc
--- /dev/null
+++ b/regress/mdoc/Fl/noarg.in
@@ -0,0 +1,19 @@
+.Dd August 21, 2014
+.Dt FL-NOARG 1
+.Os OpenBSD
+.Sh NAME
+.Nm Fl-noarg
+.Nd Fl macro without arguments
+.Sh DESCRIPTION
+Without an argument, it yields
+.Fl
+a dash.
+.Pp
+This is true even before middle
+.Fl | and
+trailing punctuation
+.Fl .
+.Pp
+Following macros
+.Fl Op flag
+follow without white space.
diff --git a/regress/mdoc/Fl/noarg.out_ascii b/regress/mdoc/Fl/noarg.out_ascii
new file mode 100644
index 00000000..eb230269
--- /dev/null
+++ b/regress/mdoc/Fl/noarg.out_ascii
@@ -0,0 +1,13 @@
+FL-NOARG(1) General Commands Manual FL-NOARG(1)
+
+NNAAMMEE
+ FFll--nnooaarrgg - Fl macro without arguments
+
+DDEESSCCRRIIPPTTIIOONN
+ Without an argument, it yields -- a dash.
+
+ This is true even before middle -- | --aanndd trailing punctuation --.
+
+ Following macros --[flag] follow without white space.
+
+OpenBSD August 21, 2014 OpenBSD
diff --git a/regress/mdoc/Fl/parsed.in b/regress/mdoc/Fl/parsed.in
new file mode 100644
index 00000000..4c93e016
--- /dev/null
+++ b/regress/mdoc/Fl/parsed.in
@@ -0,0 +1,18 @@
+.Dd April 7, 2010
+.Dt FL-PARSED 1
+.Os OpenBSD
+.Sh NAME
+.Nm Fl-parsed
+.Nd is the Fl macro parsed?
+.Sh DESCRIPTION
+.Op Fl Ux
+.Pp
+.Op Ux
+.Pp
+.Op Fl Cm x
+.Pp
+.Fl W all
+versus
+.Fl W Ns Cm all
+.Pp
+.Fl Cm help
diff --git a/regress/mdoc/Fl/parsed.out_ascii b/regress/mdoc/Fl/parsed.out_ascii
new file mode 100644
index 00000000..3b6de9d4
--- /dev/null
+++ b/regress/mdoc/Fl/parsed.out_ascii
@@ -0,0 +1,17 @@
+FL-PARSED(1) General Commands Manual FL-PARSED(1)
+
+NNAAMMEE
+ FFll--ppaarrsseedd - is the Fl macro parsed?
+
+DDEESSCCRRIIPPTTIIOONN
+ [--UNIX]
+
+ [UNIX]
+
+ [--xx]
+
+ --WW --aallll versus --WWaallll
+
+ --hheellpp
+
+OpenBSD April 7, 2010 OpenBSD
diff --git a/regress/mdoc/Fl/punct.in b/regress/mdoc/Fl/punct.in
new file mode 100644
index 00000000..ac7eecc7
--- /dev/null
+++ b/regress/mdoc/Fl/punct.in
@@ -0,0 +1,39 @@
+.Dd August 21, 2014
+.Dt FL-PUNCT 1
+.Os OpenBSD
+.Sh NAME
+.Nm Fl-punct
+.Nd punctuation handling by the Fl macro
+.Sh DESCRIPTION
+closing punctuation
+.Fl a )
+only one
+.Fl )
+only more than one
+.Fl ) )
+middle
+.Fl a ) z
+start
+.Fl ) z
+dot
+.Fl . z
+comma
+.Fl , z
+semicolon
+.Fl ; z
+colon
+.Fl : z
+quest
+.Fl ? z
+excl
+.Fl ! z
+paren
+.Fl ) z
+bracket
+.Fl ] z
+bar
+.Fl | m
+op paren
+.Fl ( a
+op bracket
+.Fl [ a
diff --git a/regress/mdoc/Fl/punct.out_ascii b/regress/mdoc/Fl/punct.out_ascii
new file mode 100644
index 00000000..b619154d
--- /dev/null
+++ b/regress/mdoc/Fl/punct.out_ascii
@@ -0,0 +1,12 @@
+FL-PUNCT(1) General Commands Manual FL-PUNCT(1)
+
+NNAAMMEE
+ FFll--ppuunncctt - punctuation handling by the Fl macro
+
+DDEESSCCRRIIPPTTIIOONN
+ closing punctuation --aa) only one --) only more than one --)) middle --aa) --zz
+ start --) --zz dot --. --zz comma --, --zz semicolon --; --zz colon --: --zz quest --? --zz
+ excl --! --zz paren --) --zz bracket --] --zz bar -- | --mm op paren (--aa op bracket
+ [--aa
+
+OpenBSD August 21, 2014 OpenBSD