summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-06-20 18:32:52 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-06-20 18:32:52 +0000
commit89f13e4a2c0a997c289f9365553f5dccc6950724 (patch)
tree3b6eb08ae282761c9c22c710d961665568020185 /regress
parent5096d7e683aad7c818b3577c0b16983c273a4983 (diff)
regression tests for prologue warnings
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/mandoc/man/TH/Makefile6
-rw-r--r--regress/usr.bin/mandoc/man/TH/baddate.out_lint1
-rw-r--r--regress/usr.bin/mandoc/man/TH/case.in5
-rw-r--r--regress/usr.bin/mandoc/man/TH/case.out_ascii13
-rw-r--r--regress/usr.bin/mandoc/man/TH/case.out_lint1
-rw-r--r--regress/usr.bin/mandoc/man/TH/emptydate.out_lint1
-rw-r--r--regress/usr.bin/mandoc/man/TH/noTH.in4
-rw-r--r--regress/usr.bin/mandoc/man/TH/noTH.mandoc_lint2
-rw-r--r--regress/usr.bin/mandoc/man/TH/noTH.out_lint2
-rw-r--r--regress/usr.bin/mandoc/man/TH/twoargs.out_lint2
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dl/spacing.in2
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dl/spacing.out_ascii2
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/Makefile8
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/badarch.in8
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/badarch.out_lint1
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/baddate.in8
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/baddate.out_ascii9
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/baddate.out_lint1
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/badsec.in8
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/badsec.out_lint1
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/case.in8
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/case.out_ascii9
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/case.out_lint1
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/dupe.in9
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/dupe.out_ascii9
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/dupe.out_lint1
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/lateos.in9
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/lateos.out_ascii9
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/lateos.out_lint1
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/nodate.in8
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/nodate.out_lint1
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/noos.in7
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/noos.out_lint1
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/order.in8
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/order.out_ascii9
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/order.out_lint2
-rw-r--r--regress/usr.bin/mandoc/mdoc/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Nm/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Nm/badNAME.out_lint2
-rw-r--r--regress/usr.bin/mandoc/mdoc/Nm/badNAMEuse.out_lint2
40 files changed, 182 insertions, 7 deletions
diff --git a/regress/usr.bin/mandoc/man/TH/Makefile b/regress/usr.bin/mandoc/man/TH/Makefile
index 968309c2158..c5c7219d3af 100644
--- a/regress/usr.bin/mandoc/man/TH/Makefile
+++ b/regress/usr.bin/mandoc/man/TH/Makefile
@@ -1,6 +1,8 @@
-# $OpenBSD: Makefile,v 1.3 2011/11/19 14:16:53 schwarze Exp $
+# $OpenBSD: Makefile,v 1.4 2014/06/20 18:32:51 schwarze Exp $
-REGRESS_TARGETS = noarg onearg twoargs sixargs
+REGRESS_TARGETS = noarg onearg twoargs sixargs case
REGRESS_TARGETS += emptydate onlyyear isodate mdocdate baddate
+LINT_TARGETS = noTH case twoargs emptydate baddate
+
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/man/TH/baddate.out_lint b/regress/usr.bin/mandoc/man/TH/baddate.out_lint
new file mode 100644
index 00000000000..bef5060ab14
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/TH/baddate.out_lint
@@ -0,0 +1 @@
+mandoc: baddate.in:1:18: WARNING: cannot parse date, using it verbatim
diff --git a/regress/usr.bin/mandoc/man/TH/case.in b/regress/usr.bin/mandoc/man/TH/case.in
new file mode 100644
index 00000000000..74954de4f05
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/TH/case.in
@@ -0,0 +1,5 @@
+.TH TH-case 1 "June 13, 2014" OpenBSD
+.SH NAME
+TH-case \- document title is not all caps
+.SH DESCRIPTION
+some text
diff --git a/regress/usr.bin/mandoc/man/TH/case.out_ascii b/regress/usr.bin/mandoc/man/TH/case.out_ascii
new file mode 100644
index 00000000000..dba6bd5cb6b
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/TH/case.out_ascii
@@ -0,0 +1,13 @@
+TH-case(1) OpenBSD Reference Manual TH-case(1)
+
+
+
+NNAAMMEE
+ TH-case - document title is not all caps
+
+DDEESSCCRRIIPPTTIIOONN
+ some text
+
+
+
+OpenBSD June 13, 2014 TH-case(1)
diff --git a/regress/usr.bin/mandoc/man/TH/case.out_lint b/regress/usr.bin/mandoc/man/TH/case.out_lint
new file mode 100644
index 00000000000..1d1c2fdfa7d
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/TH/case.out_lint
@@ -0,0 +1 @@
+mandoc: case.in:1:5: WARNING: document title should be all caps
diff --git a/regress/usr.bin/mandoc/man/TH/emptydate.out_lint b/regress/usr.bin/mandoc/man/TH/emptydate.out_lint
new file mode 100644
index 00000000000..864faa64e9f
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/TH/emptydate.out_lint
@@ -0,0 +1 @@
+emptydate.in:1:20: WARNING: date missing, using today's date
diff --git a/regress/usr.bin/mandoc/man/TH/noTH.in b/regress/usr.bin/mandoc/man/TH/noTH.in
new file mode 100644
index 00000000000..1b1d9a69580
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/TH/noTH.in
@@ -0,0 +1,4 @@
+.SH NAME
+TH-noTH \- TH macro missing
+.SH DESCRIPTION
+some text
diff --git a/regress/usr.bin/mandoc/man/TH/noTH.mandoc_lint b/regress/usr.bin/mandoc/man/TH/noTH.mandoc_lint
new file mode 100644
index 00000000000..d0d2efe10bf
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/TH/noTH.mandoc_lint
@@ -0,0 +1,2 @@
+noTH.in:0:1: WARNING: no TH macro in document
+noTH.in:0:1: WARNING: date missing, using today's date
diff --git a/regress/usr.bin/mandoc/man/TH/noTH.out_lint b/regress/usr.bin/mandoc/man/TH/noTH.out_lint
new file mode 100644
index 00000000000..d0d2efe10bf
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/TH/noTH.out_lint
@@ -0,0 +1,2 @@
+noTH.in:0:1: WARNING: no TH macro in document
+noTH.in:0:1: WARNING: date missing, using today's date
diff --git a/regress/usr.bin/mandoc/man/TH/twoargs.out_lint b/regress/usr.bin/mandoc/man/TH/twoargs.out_lint
new file mode 100644
index 00000000000..dd3f8712374
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/TH/twoargs.out_lint
@@ -0,0 +1,2 @@
+twoargs.in:1:2: ERROR: argument count wrong: line arguments >= 2 (have 1)
+twoargs.in:1:2: WARNING: date missing, using today's date
diff --git a/regress/usr.bin/mandoc/mdoc/Dl/spacing.in b/regress/usr.bin/mandoc/mdoc/Dl/spacing.in
index ea93909d856..9e7c4cd9217 100644
--- a/regress/usr.bin/mandoc/mdoc/Dl/spacing.in
+++ b/regress/usr.bin/mandoc/mdoc/Dl/spacing.in
@@ -1,5 +1,5 @@
.Dd July 6, 2012
-.Dt Dl-SPACING 1
+.Dt DL-SPACING 1
.Os OpenBSD
.Sh NAME
.Nm Dl-spacing
diff --git a/regress/usr.bin/mandoc/mdoc/Dl/spacing.out_ascii b/regress/usr.bin/mandoc/mdoc/Dl/spacing.out_ascii
index 1c2d043103b..1d38e48a1f4 100644
--- a/regress/usr.bin/mandoc/mdoc/Dl/spacing.out_ascii
+++ b/regress/usr.bin/mandoc/mdoc/Dl/spacing.out_ascii
@@ -1,4 +1,4 @@
-Dl-SPACING(1) OpenBSD Reference Manual Dl-SPACING(1)
+DL-SPACING(1) OpenBSD Reference Manual DL-SPACING(1)
NNAAMMEE
DDll--ssppaacciinngg - spacing in and around one-line literal displays
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/Makefile b/regress/usr.bin/mandoc/mdoc/Dt/Makefile
new file mode 100644
index 00000000000..5bdcef4d304
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/Makefile
@@ -0,0 +1,8 @@
+# $OpenBSD: Makefile,v 1.1 2014/06/20 18:32:51 schwarze Exp $
+
+REGRESS_TARGETS = case badsec badarch nodate baddate noos order dupe lateos
+LINT_TARGETS = case badsec badarch nodate baddate noos order dupe lateos
+SKIP_GROFF = badsec badarch nodate baddate noos
+SKIP_ASCII = badsec badarch nodate baddate noos
+
+.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/badarch.in b/regress/usr.bin/mandoc/mdoc/Dt/badarch.in
new file mode 100644
index 00000000000..9259a9de4a1
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/badarch.in
@@ -0,0 +1,8 @@
+.Dd June 13, 2014
+.Dt DT-BADARCH 1 Cray
+.Os OpenBSD
+.Sh NAME
+.Nm Dt-badarch
+.Nd unknown manual volume or arch
+.Sh DESCRIPTION
+some text
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/badarch.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/badarch.out_lint
new file mode 100644
index 00000000000..bce516888ce
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/badarch.out_lint
@@ -0,0 +1 @@
+mandoc: badarch.in:2:18: WARNING: unknown manual volume or arch
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/baddate.in b/regress/usr.bin/mandoc/mdoc/Dt/baddate.in
new file mode 100644
index 00000000000..a5b2d62903c
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/baddate.in
@@ -0,0 +1,8 @@
+.Dd foo
+.Dt DT-BADDATE 1
+.Os OpenBSD
+.Sh NAME
+.Nm Dt-baddate
+.Nd date cannot be parsed
+.Sh DESCRIPTION
+some text
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/baddate.out_ascii b/regress/usr.bin/mandoc/mdoc/Dt/baddate.out_ascii
new file mode 100644
index 00000000000..365b0b8e20b
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/baddate.out_ascii
@@ -0,0 +1,9 @@
+DT-BADDATE(1) OpenBSD Reference Manual DT-BADDATE(1)
+
+NNAAMMEE
+ DDtt--bbaaddddaattee - date cannot be parsed
+
+DDEESSCCRRIIPPTTIIOONN
+ some text
+
+OpenBSD June 13, 2014 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/baddate.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/baddate.out_lint
new file mode 100644
index 00000000000..6814b6948b2
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/baddate.out_lint
@@ -0,0 +1 @@
+mandoc: baddate.in:1:2: WARNING: cannot parse date, using it verbatim
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/badsec.in b/regress/usr.bin/mandoc/mdoc/Dt/badsec.in
new file mode 100644
index 00000000000..47af859fc56
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/badsec.in
@@ -0,0 +1,8 @@
+.Dd June 13, 2014
+.Dt DT-BADSEC foo
+.Os OpenBSD
+.Sh NAME
+.Nm Dt-badsec
+.Nd unknown manual section
+.Sh DESCRIPTION
+some text
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/badsec.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/badsec.out_lint
new file mode 100644
index 00000000000..963966de6bf
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/badsec.out_lint
@@ -0,0 +1 @@
+mandoc: badsec.in:2:2: WARNING: unknown manual section
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/case.in b/regress/usr.bin/mandoc/mdoc/Dt/case.in
new file mode 100644
index 00000000000..88b2df3b1f3
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/case.in
@@ -0,0 +1,8 @@
+.Dd June 13, 2014
+.Dt Dt-case 1
+.Os OpenBSD
+.Sh NAME
+.Nm Dt-case
+.Nd document title is not all caps
+.Sh DESCRIPTION
+some text
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/case.out_ascii b/regress/usr.bin/mandoc/mdoc/Dt/case.out_ascii
new file mode 100644
index 00000000000..2152fe8fd91
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/case.out_ascii
@@ -0,0 +1,9 @@
+Dt-case(1) OpenBSD Reference Manual Dt-case(1)
+
+NNAAMMEE
+ DDtt--ccaassee - document title is not all caps
+
+DDEESSCCRRIIPPTTIIOONN
+ some text
+
+OpenBSD June 13, 2014 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/case.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/case.out_lint
new file mode 100644
index 00000000000..11a33d9ba15
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/case.out_lint
@@ -0,0 +1 @@
+mandoc: case.in:2:5: WARNING: document title should be all caps
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/dupe.in b/regress/usr.bin/mandoc/mdoc/Dt/dupe.in
new file mode 100644
index 00000000000..1a905552c5d
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/dupe.in
@@ -0,0 +1,9 @@
+.Dd June 13, 2014
+.Dt DT-DUPE 1
+.Os OpenBSD
+.Os OpenBSD
+.Sh NAME
+.Nm Dt-order
+.Nd duplicate prologue macro
+.Sh DESCRIPTION
+some text
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/dupe.out_ascii b/regress/usr.bin/mandoc/mdoc/Dt/dupe.out_ascii
new file mode 100644
index 00000000000..aaa8ba20d33
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/dupe.out_ascii
@@ -0,0 +1,9 @@
+DT-DUPE(1) OpenBSD Reference Manual DT-DUPE(1)
+
+NNAAMMEE
+ DDtt--oorrddeerr - duplicate prologue macro
+
+DDEESSCCRRIIPPTTIIOONN
+ some text
+
+OpenBSD June 13, 2014 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/dupe.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/dupe.out_lint
new file mode 100644
index 00000000000..5b7c39b5f9d
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/dupe.out_lint
@@ -0,0 +1 @@
+mandoc: dupe.in:4:2: WARNING: macro not allowed in body: Os
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/lateos.in b/regress/usr.bin/mandoc/mdoc/Dt/lateos.in
new file mode 100644
index 00000000000..0771f14de5f
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/lateos.in
@@ -0,0 +1,9 @@
+.Dd June 18, 2014
+.Dt DT-LATEOS 1
+.Os OpenBSD
+.Sh NAME
+.Nm Dt-lateos
+.Nd operating system macro after the end of the prologue
+.Sh DESCRIPTION
+.Os OpenBSD
+some text
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/lateos.out_ascii b/regress/usr.bin/mandoc/mdoc/Dt/lateos.out_ascii
new file mode 100644
index 00000000000..54ccb7dfb6c
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/lateos.out_ascii
@@ -0,0 +1,9 @@
+DT-LATEOS(1) OpenBSD Reference Manual DT-LATEOS(1)
+
+NNAAMMEE
+ DDtt--llaatteeooss - operating system macro after the end of the prologue
+
+DDEESSCCRRIIPPTTIIOONN
+ some text
+
+OpenBSD June 18, 2014 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/lateos.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/lateos.out_lint
new file mode 100644
index 00000000000..2f1c0f243a1
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/lateos.out_lint
@@ -0,0 +1 @@
+mandoc: lateos.in:8:2: WARNING: macro not allowed in body: Os
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/nodate.in b/regress/usr.bin/mandoc/mdoc/Dt/nodate.in
new file mode 100644
index 00000000000..b4816dbc870
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/nodate.in
@@ -0,0 +1,8 @@
+.Dd ""
+.Dt DT-NODATE 1
+.Os OpenBSD
+.Sh NAME
+.Nm Dt-nodate
+.Nd date missing
+.Sh DESCRIPTION
+some text
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/nodate.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/nodate.out_lint
new file mode 100644
index 00000000000..3ba46e06978
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/nodate.out_lint
@@ -0,0 +1 @@
+mandoc: nodate.in:1:2: WARNING: date missing, using today's date
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/noos.in b/regress/usr.bin/mandoc/mdoc/Dt/noos.in
new file mode 100644
index 00000000000..d4a81b1bc40
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/noos.in
@@ -0,0 +1,7 @@
+.Dd June 18, 2014
+.Dt DT-NOOS 1
+.Sh NAME
+.Nm Dt-noos
+.Nd operating system macro missing in prologue
+.Sh DESCRIPTION
+some text
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/noos.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/noos.out_lint
new file mode 100644
index 00000000000..d9dcd177dc0
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/noos.out_lint
@@ -0,0 +1 @@
+mandoc: noos.in:3:2: WARNING: macro not allowed in prologue: Sh
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/order.in b/regress/usr.bin/mandoc/mdoc/Dt/order.in
new file mode 100644
index 00000000000..04bbaa51f50
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/order.in
@@ -0,0 +1,8 @@
+.Dd June 13, 2014
+.Os OpenBSD
+.Dt DT-ORDER 1
+.Sh NAME
+.Nm Dt-order
+.Nd prologue macros out of order
+.Sh DESCRIPTION
+some text
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/order.out_ascii b/regress/usr.bin/mandoc/mdoc/Dt/order.out_ascii
new file mode 100644
index 00000000000..e9039118e96
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/order.out_ascii
@@ -0,0 +1,9 @@
+DT-ORDER(1) OpenBSD Reference Manual DT-ORDER(1)
+
+NNAAMMEE
+ DDtt--oorrddeerr - prologue macros out of order
+
+DDEESSCCRRIIPPTTIIOONN
+ some text
+
+OpenBSD June 13, 2014 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/order.out_lint b/regress/usr.bin/mandoc/mdoc/Dt/order.out_lint
new file mode 100644
index 00000000000..19f1da2decd
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Dt/order.out_lint
@@ -0,0 +1,2 @@
+mandoc: order.in:2:2: WARNING: prologue macros out of order
+mandoc: order.in:3:2: WARNING: prologue macros out of order
diff --git a/regress/usr.bin/mandoc/mdoc/Makefile b/regress/usr.bin/mandoc/mdoc/Makefile
index 3ee9f9fa6c7..852bc2de41f 100644
--- a/regress/usr.bin/mandoc/mdoc/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Makefile
@@ -1,7 +1,7 @@
-# $OpenBSD: Makefile,v 1.26 2014/06/20 18:27:51 schwarze Exp $
+# $OpenBSD: Makefile,v 1.27 2014/06/20 18:32:51 schwarze Exp $
SUBDIR = Ad An Ap Aq Ar At Bd Bf Bk Bl Brq Bx Cd Cm
-SUBDIR += D1 Dl Dq Dv Em Eo Er Ev Fd Fl Fo Ft Ic In Lb Li Lk
+SUBDIR += D1 Dl Dq Dt Dv Em Eo Er Ev Fd Fl Fo Ft Ic In Lb Li Lk
SUBDIR += Ms Mt Nd Nm No Ns Oo Op Ox Pa Pf Pp Qq Rs
SUBDIR += Sm Sq St Sx Sy Tn Ux Va Vt Xr blank
diff --git a/regress/usr.bin/mandoc/mdoc/Nm/Makefile b/regress/usr.bin/mandoc/mdoc/Nm/Makefile
index 9ef72ca44c4..5a0ab026ce3 100644
--- a/regress/usr.bin/mandoc/mdoc/Nm/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Nm/Makefile
@@ -1,7 +1,9 @@
-# $OpenBSD: Makefile,v 1.6 2014/04/08 04:45:50 schwarze Exp $
+# $OpenBSD: Makefile,v 1.7 2014/06/20 18:32:51 schwarze Exp $
REGRESS_TARGETS = empty font emptyNAME emptyNAMEuse badNAME badNAMEuse long
+LINT_TARGETS = badNAME badNAMEuse
+
SKIP_GROFF = emptyNAME emptyNAMEuse badNAME badNAMEuse
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/mdoc/Nm/badNAME.out_lint b/regress/usr.bin/mandoc/mdoc/Nm/badNAME.out_lint
new file mode 100644
index 00000000000..57cf575d8fe
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Nm/badNAME.out_lint
@@ -0,0 +1,2 @@
+mandoc: badNAME.in:5:2: ERROR: manual name not yet set
+mandoc: badNAME.in:4:2: WARNING: bad NAME section contents
diff --git a/regress/usr.bin/mandoc/mdoc/Nm/badNAMEuse.out_lint b/regress/usr.bin/mandoc/mdoc/Nm/badNAMEuse.out_lint
new file mode 100644
index 00000000000..05552ab2b9a
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Nm/badNAMEuse.out_lint
@@ -0,0 +1,2 @@
+mandoc: badNAMEuse.in:5:2: ERROR: manual name not yet set
+mandoc: badNAMEuse.in:4:2: WARNING: bad NAME section contents