Some new tests related to bin/cat.c rev. 1.25,
authorschwarze <schwarze@openbsd.org>
Tue, 5 Jul 2016 20:01:47 +0000 (20:01 +0000)
committerschwarze <schwarze@openbsd.org>
Tue, 5 Jul 2016 20:01:47 +0000 (20:01 +0000)
from Sevan Janiyan <venture37 at geeklan dot co dot uk>.

regress/bin/Makefile
regress/bin/cat/Makefile [new file with mode: 0644]
regress/bin/cat/cat_be.in [new file with mode: 0644]
regress/bin/cat/cat_be.out [new file with mode: 0644]
regress/bin/cat/cat_se.in [new file with mode: 0644]
regress/bin/cat/cat_se.out [new file with mode: 0644]

index 9a2f067..d809b60 100644 (file)
@@ -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 (file)
index 0000000..a0fe756
--- /dev/null
@@ -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 (file)
index 0000000..ef9f4da
--- /dev/null
@@ -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 (file)
index 0000000..97e4919
--- /dev/null
@@ -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 (file)
index 0000000..19fa0fe
--- /dev/null
@@ -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 (file)
index 0000000..bb3b233
--- /dev/null
@@ -0,0 +1,3 @@
+$
+Free, functional and secure$
+$