summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Os
diff options
context:
space:
mode:
Diffstat (limited to 'regress/mdoc/Os')
-rw-r--r--regress/mdoc/Os/Makefile7
-rw-r--r--regress/mdoc/Os/dupe.in11
-rw-r--r--regress/mdoc/Os/dupe.out_ascii9
-rw-r--r--regress/mdoc/Os/dupe.out_lint3
-rw-r--r--regress/mdoc/Os/late.in9
-rw-r--r--regress/mdoc/Os/late.out_ascii9
-rw-r--r--regress/mdoc/Os/late.out_lint1
-rw-r--r--regress/mdoc/Os/long.in8
-rw-r--r--regress/mdoc/Os/long.out_ascii11
-rw-r--r--regress/mdoc/Os/missing.in7
-rw-r--r--regress/mdoc/Os/missing.out_ascii9
-rw-r--r--regress/mdoc/Os/missing.out_lint1
12 files changed, 85 insertions, 0 deletions
diff --git a/regress/mdoc/Os/Makefile b/regress/mdoc/Os/Makefile
new file mode 100644
index 00000000..d228b09d
--- /dev/null
+++ b/regress/mdoc/Os/Makefile
@@ -0,0 +1,7 @@
+# $OpenBSD: Makefile,v 1.2 2014/11/21 01:52:45 schwarze Exp $
+
+REGRESS_TARGETS = dupe late long missing
+LINT_TARGETS = dupe late missing
+SKIP_GROFF = long
+
+.include <bsd.regress.mk>
diff --git a/regress/mdoc/Os/dupe.in b/regress/mdoc/Os/dupe.in
new file mode 100644
index 00000000..a4918bef
--- /dev/null
+++ b/regress/mdoc/Os/dupe.in
@@ -0,0 +1,11 @@
+.Dd June 18, 2014
+.Os NetBSD
+.Dt OS-DUPE 1
+.Os FreeBSD
+.Sh NAME
+.Nm Os-dupe
+.Nd repeated operating system macros
+.Sh DESCRIPTION
+initial text
+.Os OpenBSD
+final text
diff --git a/regress/mdoc/Os/dupe.out_ascii b/regress/mdoc/Os/dupe.out_ascii
new file mode 100644
index 00000000..4f76190a
--- /dev/null
+++ b/regress/mdoc/Os/dupe.out_ascii
@@ -0,0 +1,9 @@
+OS-DUPE(1) General Commands Manual OS-DUPE(1)
+
+NNAAMMEE
+ OOss--dduuppee - repeated operating system macros
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text final text
+
+OpenBSD June 18, 2014 OpenBSD
diff --git a/regress/mdoc/Os/dupe.out_lint b/regress/mdoc/Os/dupe.out_lint
new file mode 100644
index 00000000..364b7a6e
--- /dev/null
+++ b/regress/mdoc/Os/dupe.out_lint
@@ -0,0 +1,3 @@
+mandoc: dupe.in:3:2: WARNING: prologue macros out of order: Dt after Os
+mandoc: dupe.in:4:2: WARNING: duplicate prologue macro: Os
+mandoc: dupe.in:10:2: WARNING: duplicate prologue macro: Os
diff --git a/regress/mdoc/Os/late.in b/regress/mdoc/Os/late.in
new file mode 100644
index 00000000..fab68da2
--- /dev/null
+++ b/regress/mdoc/Os/late.in
@@ -0,0 +1,9 @@
+.Dd August 5, 2014
+.Dt OS-LATE 1
+.Sh NAME
+.Nm Os-late
+.Nd late operating system macro
+.Sh DESCRIPTION
+initial text
+.Os OpenBSD
+final text
diff --git a/regress/mdoc/Os/late.out_ascii b/regress/mdoc/Os/late.out_ascii
new file mode 100644
index 00000000..06de3458
--- /dev/null
+++ b/regress/mdoc/Os/late.out_ascii
@@ -0,0 +1,9 @@
+OS-LATE(1) General Commands Manual OS-LATE(1)
+
+NNAAMMEE
+ OOss--llaattee - late operating system macro
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text final text
+
+OpenBSD August 5, 2014 OpenBSD
diff --git a/regress/mdoc/Os/late.out_lint b/regress/mdoc/Os/late.out_lint
new file mode 100644
index 00000000..8b0e2f76
--- /dev/null
+++ b/regress/mdoc/Os/late.out_lint
@@ -0,0 +1 @@
+mandoc: late.in:8:2: WARNING: late prologue macro: Os
diff --git a/regress/mdoc/Os/long.in b/regress/mdoc/Os/long.in
new file mode 100644
index 00000000..c4998629
--- /dev/null
+++ b/regress/mdoc/Os/long.in
@@ -0,0 +1,8 @@
+.Dd November 20, 2014
+.Dt OS-LONG 1
+.Os 1234567890123456789012345678901234567890123456789012345678901234567890123456789
+.Sh NAME
+.Nm Os-long
+.Nd long operating system string
+.Sh DESCRIPTION
+some text
diff --git a/regress/mdoc/Os/long.out_ascii b/regress/mdoc/Os/long.out_ascii
new file mode 100644
index 00000000..9253e13e
--- /dev/null
+++ b/regress/mdoc/Os/long.out_ascii
@@ -0,0 +1,11 @@
+OS-LONG(1) General Commands Manual OS-LONG(1)
+
+NNAAMMEE
+ OOss--lloonngg - long operating system string
+
+DDEESSCCRRIIPPTTIIOONN
+ some text
+
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+ November 20, 2014
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
diff --git a/regress/mdoc/Os/missing.in b/regress/mdoc/Os/missing.in
new file mode 100644
index 00000000..44297adb
--- /dev/null
+++ b/regress/mdoc/Os/missing.in
@@ -0,0 +1,7 @@
+.Dd August 5, 2014
+.Dt OS-MISSING 1
+.Sh NAME
+.Nm Os-missing
+.Nd operating system macro missing in prologue
+.Sh DESCRIPTION
+some text
diff --git a/regress/mdoc/Os/missing.out_ascii b/regress/mdoc/Os/missing.out_ascii
new file mode 100644
index 00000000..8398c253
--- /dev/null
+++ b/regress/mdoc/Os/missing.out_ascii
@@ -0,0 +1,9 @@
+OS-MISSING(1) General Commands Manual OS-MISSING(1)
+
+NNAAMMEE
+ OOss--mmiissssiinngg - operating system macro missing in prologue
+
+DDEESSCCRRIIPPTTIIOONN
+ some text
+
+ August 5, 2014
diff --git a/regress/mdoc/Os/missing.out_lint b/regress/mdoc/Os/missing.out_lint
new file mode 100644
index 00000000..8b1f80b2
--- /dev/null
+++ b/regress/mdoc/Os/missing.out_lint
@@ -0,0 +1 @@
+mandoc: missing.in: WARNING: missing Os macro, using ""