summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc/mdoc/Sm
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2017-03-05 19:59:27 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2017-03-05 19:59:27 +0000
commit6a15cbd70e98f6f1be51ec7678674c04f8a3462c (patch)
treeb965af5189aad0b99e5e0822f9c6e8d377ec1d0c /regress/usr.bin/mandoc/mdoc/Sm
parenta4d2ef5a35cedc09ddebd36bbbe54ed324841aa9 (diff)
first batch of -T markdown tests
Diffstat (limited to 'regress/usr.bin/mandoc/mdoc/Sm')
-rw-r--r--regress/usr.bin/mandoc/mdoc/Sm/Makefile3
-rw-r--r--regress/usr.bin/mandoc/mdoc/Sm/badarg.out_markdown14
-rw-r--r--regress/usr.bin/mandoc/mdoc/Sm/noarg.out_markdown18
-rw-r--r--regress/usr.bin/mandoc/mdoc/Sm/spacing-No.out_markdown47
-rw-r--r--regress/usr.bin/mandoc/mdoc/Sm/spacing-Op.out_markdown49
-rw-r--r--regress/usr.bin/mandoc/mdoc/Sm/twoarg.out_markdown19
6 files changed, 149 insertions, 1 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Sm/Makefile b/regress/usr.bin/mandoc/mdoc/Sm/Makefile
index 197b1d7424f..b25f5f6bf5e 100644
--- a/regress/usr.bin/mandoc/mdoc/Sm/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Sm/Makefile
@@ -1,7 +1,8 @@
-# $OpenBSD: Makefile,v 1.7 2014/11/26 19:22:44 schwarze Exp $
+# $OpenBSD: Makefile,v 1.8 2017/03/05 19:59:26 schwarze Exp $
REGRESS_TARGETS = noarg badarg scope spacing-No spacing-Op twoarg
LINT_TARGETS = badarg twoarg
+MARKDOWN_TARGETS = noarg badarg spacing-No spacing-Op twoarg
SKIP_TMAN ?= scope
diff --git a/regress/usr.bin/mandoc/mdoc/Sm/badarg.out_markdown b/regress/usr.bin/mandoc/mdoc/Sm/badarg.out_markdown
new file mode 100644
index 00000000000..86c8cd6fae5
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Sm/badarg.out_markdown
@@ -0,0 +1,14 @@
+SM-BADARG(1) - General Commands Manual
+
+# NAME
+
+**Sm-badarg** - spacing macro with invalid arguments
+
+# DESCRIPTION
+
+**-f** *on*
+**-f**&zwnj;*off* bad
+**-f** *bad* (on)
+bad**-f**&zwnj;*bad*(off)
+
+OpenBSD-July 3, 2014
diff --git a/regress/usr.bin/mandoc/mdoc/Sm/noarg.out_markdown b/regress/usr.bin/mandoc/mdoc/Sm/noarg.out_markdown
new file mode 100644
index 00000000000..3b0d089bb75
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Sm/noarg.out_markdown
@@ -0,0 +1,18 @@
+SM-NOARG(1) - General Commands Manual
+
+# NAME
+
+**Sm-noarg** - spacing macro without arguments
+
+# DESCRIPTION
+
+**-f** *on*
+**-f**&zwnj;*off*
+**-f** *toggle* (now on)
+**-f** *on*
+**-f**&zwnj;*toggle*(nowoff)
+
+**-f** *on*
+on a new line
+
+OpenBSD - July 2, 2014
diff --git a/regress/usr.bin/mandoc/mdoc/Sm/spacing-No.out_markdown b/regress/usr.bin/mandoc/mdoc/Sm/spacing-No.out_markdown
new file mode 100644
index 00000000000..b2487962ab8
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Sm/spacing-No.out_markdown
@@ -0,0 +1,47 @@
+SM-SPACING(1) - General Commands Manual
+
+# NAME
+
+**Sm-spacing** - basic tests of spacing mode
+
+# SYNOPSIS
+
+**mandoc**
+**-T**&zwnj;*mode*
+*file&nbsp;...*
+
+# DESCRIPTION
+
+text1
+text2 text3
+text4
+
+text1
+text2 text3
+macro4
+
+text1
+macro2macro3
+text4
+
+text1
+macro2macro3
+macro4
+
+macro1
+text2 text3
+text4
+
+macro1
+text2 text3
+macro4
+
+macro1
+macro2macro3
+text4
+
+macro1
+macro2macro3
+macro4
+
+OpenBSD - July 4, 2010
diff --git a/regress/usr.bin/mandoc/mdoc/Sm/spacing-Op.out_markdown b/regress/usr.bin/mandoc/mdoc/Sm/spacing-Op.out_markdown
new file mode 100644
index 00000000000..9f4f15ae890
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Sm/spacing-Op.out_markdown
@@ -0,0 +1,49 @@
+SM-SPACING-OP(1) - General Commands Manual
+
+# NAME
+
+**Sm-spacing-Op** - spacing mode, demonstrated using the .Op macro
+
+# SYNOPSIS
+
+**mandoc**
+**-T**&zwnj;*mode*
+*file&nbsp;...*
+
+# DESCRIPTION
+
+text1
+text2 text3
+text4
+
+text1
+text2 text3
+\[macro4]
+
+text1
+\[macro2macro3]
+text4
+
+text1
+\[macro2\[macro3]]
+\[macro4]
+
+\[macro1]
+text2 text3
+text4
+
+\[macro1]
+text2 text3
+\[macro4]
+
+\[macro1]
+\[macro2\[macro3]]
+text4
+
+\[macro1]
+\[macro2\[macro3]]
+\[macro4]
+
+\[macro1]
+
+OpenBSD - July 4, 2010
diff --git a/regress/usr.bin/mandoc/mdoc/Sm/twoarg.out_markdown b/regress/usr.bin/mandoc/mdoc/Sm/twoarg.out_markdown
new file mode 100644
index 00000000000..0951e672898
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Sm/twoarg.out_markdown
@@ -0,0 +1,19 @@
+SM-TWOARG(1) - General Commands Manual
+
+# NAME
+
+**Sm-twoarg** - spacing macro with multiple arguments
+
+# DESCRIPTION
+
+**default**:
+**-f** *on*
+**off two**:
+two**-f**&zwnj;*off*
+**badtwo**: bad two
+**-f** *off*
+**on two**:
+two
+**-f** *on*
+
+OpenBSD - November 26, 2014