descriptive header before each test, inspired by the many others in regress.
-# $OpenBSD: Makefile,v 1.4 2017/11/16 19:05:44 anton Exp $
-
-REGRESS_TARGETS= filec
+# $OpenBSD: Makefile,v 1.5 2017/12/18 19:19:08 anton Exp $
CSH= /bin/csh
+REGRESS_TARGETS= filec
+
PROG= edit
CFLAGS+= -Wall
LDADD+= -lutil
@cp ${.CURDIR}/../ksh/edit/edit.c .
filec: edit
+ @echo '\n======== filec ========'
sh ${.CURDIR}/filec.sh ${CSH}
+REGRESS_TARGETS+= env
+
+.SUFFIXES: .in
+
+.in:
+ @echo '\n======== ${@} ========'
+ env -i MALLOC_OPTIONS=S ${CSH} <${.CURDIR}/${@}.in 2>&1 | \
+ diff -u ${.CURDIR}/${@}.ok -
+
.include <bsd.regress.mk>
--- /dev/null
+setenv FOO 1
+echo $FOO
+unsetenv FOO
+setenv | grep FOO || echo ok
+setenv FOO 1
+setenv FOOFOO 2
+echo $FOO $FOOFOO
+unsetenv FOO*
+setenv | grep FOO || echo ok
--- /dev/null
+1
+ok
+1 2
+ok