aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/roff/tr
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-08 03:02:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-08 03:02:13 +0000
commitd9f0f81c846a8405c29870e4a8379e5e79d1cad3 (patch)
treec07efd74ac58650949dc67576001a720e688319f /regress/roff/tr
parentcdbb1fca07752eb230e5219c22e9e65075c85b82 (diff)
downloadmandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.tar.gz
mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.tar.zst
mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.zip
Finally port the OpenBSD regression suite.
Both kristaps@ and wiz@ repeated asked for this, literally for years.
Diffstat (limited to 'regress/roff/tr')
-rw-r--r--regress/roff/tr/Makefile6
-rw-r--r--regress/roff/tr/args.in16
-rw-r--r--regress/roff/tr/args.out_ascii14
-rw-r--r--regress/roff/tr/args.out_lint3
4 files changed, 39 insertions, 0 deletions
diff --git a/regress/roff/tr/Makefile b/regress/roff/tr/Makefile
new file mode 100644
index 00000000..791c27ef
--- /dev/null
+++ b/regress/roff/tr/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.1 2015/02/06 16:05:51 schwarze Exp $
+
+REGRESS_TARGETS = args
+LINT_TARGETS = args
+
+.include <bsd.regress.mk>
diff --git a/regress/roff/tr/args.in b/regress/roff/tr/args.in
new file mode 100644
index 00000000..1ef074d6
--- /dev/null
+++ b/regress/roff/tr/args.in
@@ -0,0 +1,16 @@
+.TH TR-BASIC 1 "February 6, 2015" OpenBSD
+.SH NAME
+tr-args \- arguments of the tr request
+.SH DESCRIPTION
+no argument:
+.tr
+one character:
+.tr x
+>>x<<
+two characters:
+.tr xy
+>>x<<
+three characters:
+.tr xyz
+>>xz<<
+last line
diff --git a/regress/roff/tr/args.out_ascii b/regress/roff/tr/args.out_ascii
new file mode 100644
index 00000000..b199ed6b
--- /dev/null
+++ b/regress/roff/tr/args.out_ascii
@@ -0,0 +1,14 @@
+TR-BASIC(1) General Commands Manual TR-BASIC(1)
+
+
+
+NNAAMMEE
+ tr-args - arguments of the tr request
+
+DDEESSCCRRIIPPTTIIOONN
+ no argument: one character: >> << two characters: >>y<< three
+ characters: >>y << last line
+
+
+
+OpenBSD February 6, 2015 TR-BASIC(1)
diff --git a/regress/roff/tr/args.out_lint b/regress/roff/tr/args.out_lint
new file mode 100644
index 00000000..dec14b80
--- /dev/null
+++ b/regress/roff/tr/args.out_lint
@@ -0,0 +1,3 @@
+mandoc: args.in:6:1: WARNING: skipping empty request: tr
+mandoc: args.in:8:5: WARNING: odd number of characters in request: tr x
+mandoc: args.in:14:7: WARNING: odd number of characters in request: tr z