aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Dd
diff options
context:
space:
mode:
Diffstat (limited to 'regress/mdoc/Dd')
-rw-r--r--regress/mdoc/Dd/Makefile19
-rw-r--r--regress/mdoc/Dd/badarg.in8
-rw-r--r--regress/mdoc/Dd/badarg.out_ascii9
-rw-r--r--regress/mdoc/Dd/badarg.out_lint1
-rw-r--r--regress/mdoc/Dd/dupe.in11
-rw-r--r--regress/mdoc/Dd/dupe.out_ascii9
-rw-r--r--regress/mdoc/Dd/dupe.out_lint2
-rw-r--r--regress/mdoc/Dd/late.in9
-rw-r--r--regress/mdoc/Dd/late.out_ascii9
-rw-r--r--regress/mdoc/Dd/late.out_lint1
-rw-r--r--regress/mdoc/Dd/long.in8
-rw-r--r--regress/mdoc/Dd/long.out_ascii11
-rw-r--r--regress/mdoc/Dd/long.out_lint1
-rw-r--r--regress/mdoc/Dd/manarg.in8
-rw-r--r--regress/mdoc/Dd/manarg.out_ascii9
-rw-r--r--regress/mdoc/Dd/manarg.out_lint0
-rw-r--r--regress/mdoc/Dd/noarg.in8
-rw-r--r--regress/mdoc/Dd/noarg.out_lint1
-rw-r--r--regress/mdoc/Dd/order.in8
-rw-r--r--regress/mdoc/Dd/order.out_ascii9
-rw-r--r--regress/mdoc/Dd/order.out_lint1
21 files changed, 142 insertions, 0 deletions
diff --git a/regress/mdoc/Dd/Makefile b/regress/mdoc/Dd/Makefile
new file mode 100644
index 00000000..e50e9b61
--- /dev/null
+++ b/regress/mdoc/Dd/Makefile
@@ -0,0 +1,19 @@
+# $OpenBSD: Makefile,v 1.2 2014/11/21 01:52:45 schwarze Exp $
+
+REGRESS_TARGETS = badarg dupe late long manarg noarg order
+LINT_TARGETS = badarg dupe late long manarg noarg order
+
+# If groff finds exactly three arguments, it assumes they are month,
+# day and year without further checking. If there are no arguments,
+# groff uses the string "Epoch". Otherwise, it silently falls back
+# to today's date.
+# That is not at all sane behaviour, we are not going to imitate it.
+
+SKIP_GROFF = badarg long manarg noarg
+SKIP_ASCII = noarg
+
+# Autodetection fails for late .Dd, so specify -mdoc explicitly.
+
+MOPTS += -mdoc
+
+.include <bsd.regress.mk>
diff --git a/regress/mdoc/Dd/badarg.in b/regress/mdoc/Dd/badarg.in
new file mode 100644
index 00000000..9891fc4e
--- /dev/null
+++ b/regress/mdoc/Dd/badarg.in
@@ -0,0 +1,8 @@
+.Dd "bad date"
+.Dt DD-BADARG 1
+.Os OpenBSD
+.Sh NAME
+.Nm Dd-badarg
+.Nd date cannot be parsed
+.Sh DESCRIPTION
+some text
diff --git a/regress/mdoc/Dd/badarg.out_ascii b/regress/mdoc/Dd/badarg.out_ascii
new file mode 100644
index 00000000..a64abacc
--- /dev/null
+++ b/regress/mdoc/Dd/badarg.out_ascii
@@ -0,0 +1,9 @@
+DD-BADARG(1) General Commands Manual DD-BADARG(1)
+
+NNAAMMEE
+ DDdd--bbaaddaarrgg - date cannot be parsed
+
+DDEESSCCRRIIPPTTIIOONN
+ some text
+
+OpenBSD bad date OpenBSD
diff --git a/regress/mdoc/Dd/badarg.out_lint b/regress/mdoc/Dd/badarg.out_lint
new file mode 100644
index 00000000..0ce4632e
--- /dev/null
+++ b/regress/mdoc/Dd/badarg.out_lint
@@ -0,0 +1 @@
+mandoc: badarg.in:1:2: WARNING: cannot parse date, using it verbatim: bad date
diff --git a/regress/mdoc/Dd/dupe.in b/regress/mdoc/Dd/dupe.in
new file mode 100644
index 00000000..d1a7f827
--- /dev/null
+++ b/regress/mdoc/Dd/dupe.in
@@ -0,0 +1,11 @@
+.Dd August 1, 2014
+.Dt DD-DUPE 1
+.Os OpenBSD
+.Dd August 3, 2014
+.Sh NAME
+.Nm Dd-dupe
+.Nd duplicate date macro
+.Sh DESCRIPTION
+initial text
+.Dd August 5, 2014
+final text
diff --git a/regress/mdoc/Dd/dupe.out_ascii b/regress/mdoc/Dd/dupe.out_ascii
new file mode 100644
index 00000000..6cc220d6
--- /dev/null
+++ b/regress/mdoc/Dd/dupe.out_ascii
@@ -0,0 +1,9 @@
+DD-DUPE(1) General Commands Manual DD-DUPE(1)
+
+NNAAMMEE
+ DDdd--dduuppee - duplicate date macro
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text final text
+
+OpenBSD August 5, 2014 OpenBSD
diff --git a/regress/mdoc/Dd/dupe.out_lint b/regress/mdoc/Dd/dupe.out_lint
new file mode 100644
index 00000000..8107e867
--- /dev/null
+++ b/regress/mdoc/Dd/dupe.out_lint
@@ -0,0 +1,2 @@
+mandoc: dupe.in:4:2: WARNING: duplicate prologue macro: Dd
+mandoc: dupe.in:10:2: WARNING: duplicate prologue macro: Dd
diff --git a/regress/mdoc/Dd/late.in b/regress/mdoc/Dd/late.in
new file mode 100644
index 00000000..0a8436fb
--- /dev/null
+++ b/regress/mdoc/Dd/late.in
@@ -0,0 +1,9 @@
+.Dt DD-LATE 1
+.Os OpenBSD
+.Sh NAME
+.Nm Dd-late
+.Nd late date macro
+.Sh DESCRIPTION
+initial text
+.Dd August 5, 2014
+final text
diff --git a/regress/mdoc/Dd/late.out_ascii b/regress/mdoc/Dd/late.out_ascii
new file mode 100644
index 00000000..381b4ef3
--- /dev/null
+++ b/regress/mdoc/Dd/late.out_ascii
@@ -0,0 +1,9 @@
+DD-LATE(1) General Commands Manual DD-LATE(1)
+
+NNAAMMEE
+ DDdd--llaattee - late date macro
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text final text
+
+OpenBSD August 5, 2014 OpenBSD
diff --git a/regress/mdoc/Dd/late.out_lint b/regress/mdoc/Dd/late.out_lint
new file mode 100644
index 00000000..07374131
--- /dev/null
+++ b/regress/mdoc/Dd/late.out_lint
@@ -0,0 +1 @@
+mandoc: late.in:8:2: WARNING: late prologue macro: Dd
diff --git a/regress/mdoc/Dd/long.in b/regress/mdoc/Dd/long.in
new file mode 100644
index 00000000..2538f984
--- /dev/null
+++ b/regress/mdoc/Dd/long.in
@@ -0,0 +1,8 @@
+.Dd 1234567890123456789012345678901234567890123456789012345678901234567890123456789
+.Dt DD-LONG 1
+.Os OpenBSD
+.Sh NAME
+.Nm Dd-long
+.Nd long date string
+.Sh DESCRIPTION
+some text
diff --git a/regress/mdoc/Dd/long.out_ascii b/regress/mdoc/Dd/long.out_ascii
new file mode 100644
index 00000000..69811af2
--- /dev/null
+++ b/regress/mdoc/Dd/long.out_ascii
@@ -0,0 +1,11 @@
+DD-LONG(1) General Commands Manual DD-LONG(1)
+
+NNAAMMEE
+ DDdd--lloonngg - long date string
+
+DDEESSCCRRIIPPTTIIOONN
+ some text
+
+OpenBSD
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+ OpenBSD
diff --git a/regress/mdoc/Dd/long.out_lint b/regress/mdoc/Dd/long.out_lint
new file mode 100644
index 00000000..d74ed9e2
--- /dev/null
+++ b/regress/mdoc/Dd/long.out_lint
@@ -0,0 +1 @@
+mandoc: long.in:1:2: WARNING: cannot parse date, using it verbatim: 1234567890123456789012345678901234567890123456789012345678901234567890123456789
diff --git a/regress/mdoc/Dd/manarg.in b/regress/mdoc/Dd/manarg.in
new file mode 100644
index 00000000..434a7af8
--- /dev/null
+++ b/regress/mdoc/Dd/manarg.in
@@ -0,0 +1,8 @@
+.Dd 2014-08-07
+.Dt DD-MANARG 1
+.Os OpenBSD
+.Sh NAME
+.Nm Dd-manarg
+.Nd date in traditional man format
+.Sh DESCRIPTION
+some text
diff --git a/regress/mdoc/Dd/manarg.out_ascii b/regress/mdoc/Dd/manarg.out_ascii
new file mode 100644
index 00000000..8c4b800f
--- /dev/null
+++ b/regress/mdoc/Dd/manarg.out_ascii
@@ -0,0 +1,9 @@
+DD-MANARG(1) General Commands Manual DD-MANARG(1)
+
+NNAAMMEE
+ DDdd--mmaannaarrgg - date in traditional man format
+
+DDEESSCCRRIIPPTTIIOONN
+ some text
+
+OpenBSD 2014-08-07 OpenBSD
diff --git a/regress/mdoc/Dd/manarg.out_lint b/regress/mdoc/Dd/manarg.out_lint
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/regress/mdoc/Dd/manarg.out_lint
diff --git a/regress/mdoc/Dd/noarg.in b/regress/mdoc/Dd/noarg.in
new file mode 100644
index 00000000..fd904985
--- /dev/null
+++ b/regress/mdoc/Dd/noarg.in
@@ -0,0 +1,8 @@
+.Dd
+.Dt DD-NOARG 1
+.Os OpenBSD
+.Sh NAME
+.Nm Dd-noarg
+.Nd date macro without an argument
+.Sh DESCRIPTION
+some text
diff --git a/regress/mdoc/Dd/noarg.out_lint b/regress/mdoc/Dd/noarg.out_lint
new file mode 100644
index 00000000..f2816336
--- /dev/null
+++ b/regress/mdoc/Dd/noarg.out_lint
@@ -0,0 +1 @@
+mandoc: noarg.in:1:2: WARNING: missing date, using today's date
diff --git a/regress/mdoc/Dd/order.in b/regress/mdoc/Dd/order.in
new file mode 100644
index 00000000..e3872cbb
--- /dev/null
+++ b/regress/mdoc/Dd/order.in
@@ -0,0 +1,8 @@
+.Dt DD-ORDER 1
+.Dd August 5, 2014
+.Os OpenBSD
+.Sh NAME
+.Nm Dd-order
+.Nd date macro after title macro
+.Sh DESCRIPTION
+some text
diff --git a/regress/mdoc/Dd/order.out_ascii b/regress/mdoc/Dd/order.out_ascii
new file mode 100644
index 00000000..64c7925d
--- /dev/null
+++ b/regress/mdoc/Dd/order.out_ascii
@@ -0,0 +1,9 @@
+DD-ORDER(1) General Commands Manual DD-ORDER(1)
+
+NNAAMMEE
+ DDdd--oorrddeerr - date macro after title macro
+
+DDEESSCCRRIIPPTTIIOONN
+ some text
+
+OpenBSD August 5, 2014 OpenBSD
diff --git a/regress/mdoc/Dd/order.out_lint b/regress/mdoc/Dd/order.out_lint
new file mode 100644
index 00000000..92554a18
--- /dev/null
+++ b/regress/mdoc/Dd/order.out_lint
@@ -0,0 +1 @@
+mandoc: order.in:2:2: WARNING: prologue macros out of order: Dd after Dt