aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Sh
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-05 19:59:33 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-05 19:59:33 +0000
commitfa99e371284a414ce8b13892006df003d31a0e37 (patch)
tree77511f9108c44772a3c5e9517e7c7bb8e93e1879 /regress/mdoc/Sh
parentc5e1be4e43835ff8cb2512039246bd4ea5ec4c2e (diff)
downloadmandoc-fa99e371284a414ce8b13892006df003d31a0e37.tar.gz
mandoc-fa99e371284a414ce8b13892006df003d31a0e37.tar.zst
mandoc-fa99e371284a414ce8b13892006df003d31a0e37.zip
first batch of -T markdown tests
Diffstat (limited to 'regress/mdoc/Sh')
-rw-r--r--regress/mdoc/Sh/Makefile2
-rw-r--r--regress/mdoc/Sh/badNAME.out_markdown12
-rw-r--r--regress/mdoc/Sh/before.out_markdown17
-rw-r--r--regress/mdoc/Sh/empty.out_markdown15
-rw-r--r--regress/mdoc/Sh/emptyNAME.out_markdown9
-rw-r--r--regress/mdoc/Sh/first.out_markdown7
-rw-r--r--regress/mdoc/Sh/nohead.out_markdown13
-rw-r--r--regress/mdoc/Sh/order.out_markdown19
-rw-r--r--regress/mdoc/Sh/orderNAME.out_markdown15
-rw-r--r--regress/mdoc/Sh/punctNAME.out_markdown13
-rw-r--r--regress/mdoc/Sh/subbefore.out_markdown19
11 files changed, 141 insertions, 0 deletions
diff --git a/regress/mdoc/Sh/Makefile b/regress/mdoc/Sh/Makefile
index a1db1161..e6070870 100644
--- a/regress/mdoc/Sh/Makefile
+++ b/regress/mdoc/Sh/Makefile
@@ -4,6 +4,8 @@ REGRESS_TARGETS = badNAME before empty emptyNAME first nohead order
REGRESS_TARGETS += orderNAME punctNAME subbefore
LINT_TARGETS = badNAME before empty emptyNAME first nohead order
LINT_TARGETS += orderNAME punctNAME subbefore
+MARKDOWN_TARGETS = badNAME before empty emptyNAME first nohead order
+MARKDOWN_TARGETS += orderNAME punctNAME subbefore
SKIP_GROFF = subbefore first empty
SKIP_ASCII = first
diff --git a/regress/mdoc/Sh/badNAME.out_markdown b/regress/mdoc/Sh/badNAME.out_markdown
new file mode 100644
index 00000000..449636c0
--- /dev/null
+++ b/regress/mdoc/Sh/badNAME.out_markdown
@@ -0,0 +1,12 @@
+SH-BADNAME(1) - General Commands Manual
+
+# NAME
+
+*bad NAME section*
+**Sh-badNAME**
+
+# DESCRIPTION
+
+The description appears before the name and is not marked up with Nd.
+
+OpenBSD - July 1, 2014
diff --git a/regress/mdoc/Sh/before.out_markdown b/regress/mdoc/Sh/before.out_markdown
new file mode 100644
index 00000000..261ebbde
--- /dev/null
+++ b/regress/mdoc/Sh/before.out_markdown
@@ -0,0 +1,17 @@
+SH-BEFORE(1) - General Commands Manual
+
+Can
+mandoc(1)
+on
+OpenBSD
+handle this?
+
+# NAME
+
+**Sh-before** - content before the first section header
+
+# DESCRIPTION
+
+some text
+
+OpenBSD - July 7, 2014
diff --git a/regress/mdoc/Sh/empty.out_markdown b/regress/mdoc/Sh/empty.out_markdown
new file mode 100644
index 00000000..b71fbfa6
--- /dev/null
+++ b/regress/mdoc/Sh/empty.out_markdown
@@ -0,0 +1,15 @@
+SH-EMPTY(1) - General Commands Manual
+
+# NAME
+
+**Sh-empty** - empty sections
+
+# SYNOPSIS
+
+# DESCRIPTION
+
+# BUGS
+
+Quite some.
+
+OpenBSD - November 21, 2014
diff --git a/regress/mdoc/Sh/emptyNAME.out_markdown b/regress/mdoc/Sh/emptyNAME.out_markdown
new file mode 100644
index 00000000..b5cf38a5
--- /dev/null
+++ b/regress/mdoc/Sh/emptyNAME.out_markdown
@@ -0,0 +1,9 @@
+SH-EMPTYNAME(1) - General Commands Manual
+
+# NAME
+
+# DESCRIPTION
+
+The NAME section is empty.
+
+OpenBSD - July 1, 2014
diff --git a/regress/mdoc/Sh/first.out_markdown b/regress/mdoc/Sh/first.out_markdown
new file mode 100644
index 00000000..be7ee5a6
--- /dev/null
+++ b/regress/mdoc/Sh/first.out_markdown
@@ -0,0 +1,7 @@
+SH-FIRST(1) - General Commands Manual
+
+# DESCRIPTION
+
+The first section is not a NAME section.
+
+OpenBSD - July 1, 2014
diff --git a/regress/mdoc/Sh/nohead.out_markdown b/regress/mdoc/Sh/nohead.out_markdown
new file mode 100644
index 00000000..4ec6aa8e
--- /dev/null
+++ b/regress/mdoc/Sh/nohead.out_markdown
@@ -0,0 +1,13 @@
+SH-NOHEAD(1) - General Commands Manual
+
+# NAME
+
+**Sh-nohead** - sections without header lines
+
+# DESCRIPTION
+
+empty section header:
+empty subsection header:
+text
+
+OpenBSD - February 5, 2015
diff --git a/regress/mdoc/Sh/order.out_markdown b/regress/mdoc/Sh/order.out_markdown
new file mode 100644
index 00000000..4e3abd1f
--- /dev/null
+++ b/regress/mdoc/Sh/order.out_markdown
@@ -0,0 +1,19 @@
+SH-ORDER(1) - General Commands Manual
+
+# NAME
+
+**Sh-order** - sections out of conventional order
+
+# DESCRIPTION
+
+some text
+
+# SYNOPSIS
+
+# SYNOPSIS
+
+# ERRORS
+
+*int errno*
+
+OpenBSD - July 1, 2014
diff --git a/regress/mdoc/Sh/orderNAME.out_markdown b/regress/mdoc/Sh/orderNAME.out_markdown
new file mode 100644
index 00000000..967edbe9
--- /dev/null
+++ b/regress/mdoc/Sh/orderNAME.out_markdown
@@ -0,0 +1,15 @@
+SH-ORDERNAME(1) - General Commands Manual
+
+# NAME
+
+\- name after description in NAME section
+
+## subsection
+
+**Sh-orderNAME**
+
+# DESCRIPTION
+
+The order of Nm and Nd is wrong in the NAME section.
+
+OpenBSD - January 7, 2017
diff --git a/regress/mdoc/Sh/punctNAME.out_markdown b/regress/mdoc/Sh/punctNAME.out_markdown
new file mode 100644
index 00000000..823868cd
--- /dev/null
+++ b/regress/mdoc/Sh/punctNAME.out_markdown
@@ -0,0 +1,13 @@
+SH-PUNCTNAME(1) - General Commands Manual
+
+# NAME
+
+**Sh-punctNAME**
+**second\_name**;
+**third\_name**, - wrong punctuation in the NAME section
+
+# DESCRIPTION
+
+One comma is missing, and one is misplaced.
+
+OpenBSD - January 7, 2017
diff --git a/regress/mdoc/Sh/subbefore.out_markdown b/regress/mdoc/Sh/subbefore.out_markdown
new file mode 100644
index 00000000..8c196b3f
--- /dev/null
+++ b/regress/mdoc/Sh/subbefore.out_markdown
@@ -0,0 +1,19 @@
+SH-SUBBEFORE(1) - General Commands Manual
+
+## Subsection
+
+Can
+mandoc(1)
+on
+OpenBSD
+handle this?
+
+# NAME
+
+**Sh-subbefore** - subsection before the first section header
+
+# DESCRIPTION
+
+some text
+
+OpenBSD - July 30, 2014