summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-07-05 20:01:47 +0000
committerschwarze <schwarze@openbsd.org>2016-07-05 20:01:47 +0000
commitf3734c23b08b82c8b3e20ecb7885544621c31c33 (patch)
treefff4537a163f1fa98bee4fee9e198a32ebbab89b
parentImprove the tracking functions in wsmouse. (diff)
downloadwireguard-openbsd-f3734c23b08b82c8b3e20ecb7885544621c31c33.tar.xz
wireguard-openbsd-f3734c23b08b82c8b3e20ecb7885544621c31c33.zip
Some new tests related to bin/cat.c rev. 1.25,
from Sevan Janiyan <venture37 at geeklan dot co dot uk>.
-rw-r--r--regress/bin/Makefile4
-rw-r--r--regress/bin/cat/Makefile11
-rw-r--r--regress/bin/cat/cat_be.in5
-rw-r--r--regress/bin/cat/cat_be.out5
-rw-r--r--regress/bin/cat/cat_se.in3
-rw-r--r--regress/bin/cat/cat_se.out3
6 files changed, 29 insertions, 2 deletions
diff --git a/regress/bin/Makefile b/regress/bin/Makefile
index 9a2f0675e8d..d809b60b448 100644
--- a/regress/bin/Makefile
+++ b/regress/bin/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.10 2016/04/25 19:28:12 tedu Exp $
+# $OpenBSD: Makefile,v 1.11 2016/07/05 20:01:47 schwarze Exp $
-SUBDIR+= chmod ksh ln md5 pax ps test
+SUBDIR+= cat chmod ksh ln md5 pax ps test
install:
diff --git a/regress/bin/cat/Makefile b/regress/bin/cat/Makefile
new file mode 100644
index 00000000000..a0fe756ed75
--- /dev/null
+++ b/regress/bin/cat/Makefile
@@ -0,0 +1,11 @@
+# $OpenBSD: Makefile,v 1.1 2016/07/05 20:01:47 schwarze Exp $
+
+REGRESS_TARGETS=cat_be cat_se
+
+cat_be:
+ cat -be ${.CURDIR}/cat_be.in | cmp -s ${.CURDIR}/cat_be.out /dev/stdin
+
+cat_se:
+ cat -se ${.CURDIR}/cat_se.in | cmp -s ${.CURDIR}/cat_se.out /dev/stdin
+
+.include <bsd.regress.mk>
diff --git a/regress/bin/cat/cat_be.in b/regress/bin/cat/cat_be.in
new file mode 100644
index 00000000000..ef9f4da4d79
--- /dev/null
+++ b/regress/bin/cat/cat_be.in
@@ -0,0 +1,5 @@
+free,
+
+functional
+
+and secure
diff --git a/regress/bin/cat/cat_be.out b/regress/bin/cat/cat_be.out
new file mode 100644
index 00000000000..97e4919320f
--- /dev/null
+++ b/regress/bin/cat/cat_be.out
@@ -0,0 +1,5 @@
+ 1 free,$
+ $
+ 2 functional$
+ $
+ 3 and secure$
diff --git a/regress/bin/cat/cat_se.in b/regress/bin/cat/cat_se.in
new file mode 100644
index 00000000000..19fa0fefe60
--- /dev/null
+++ b/regress/bin/cat/cat_se.in
@@ -0,0 +1,3 @@
+
+Free, functional and secure
+
diff --git a/regress/bin/cat/cat_se.out b/regress/bin/cat/cat_se.out
new file mode 100644
index 00000000000..bb3b23390d7
--- /dev/null
+++ b/regress/bin/cat/cat_se.out
@@ -0,0 +1,3 @@
+$
+Free, functional and secure$
+$