From f3734c23b08b82c8b3e20ecb7885544621c31c33 Mon Sep 17 00:00:00 2001 From: schwarze Date: Tue, 5 Jul 2016 20:01:47 +0000 Subject: [PATCH] Some new tests related to bin/cat.c rev. 1.25, from Sevan Janiyan . --- regress/bin/Makefile | 4 ++-- regress/bin/cat/Makefile | 11 +++++++++++ regress/bin/cat/cat_be.in | 5 +++++ regress/bin/cat/cat_be.out | 5 +++++ regress/bin/cat/cat_se.in | 3 +++ regress/bin/cat/cat_se.out | 3 +++ 6 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 regress/bin/cat/Makefile create mode 100644 regress/bin/cat/cat_be.in create mode 100644 regress/bin/cat/cat_be.out create mode 100644 regress/bin/cat/cat_se.in create mode 100644 regress/bin/cat/cat_se.out 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 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$ +$ -- 2.20.1