Activate CVS regression test.

This commit is contained in:
Eivind Eklund 1998-03-28 19:06:21 +00:00
parent 7c9f6f8f8b
commit 77b1218492

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.20 1998/01/26 04:21:52 peter Exp $
# $Id: Makefile,v 1.21 1998/03/10 14:00:59 peter Exp $
.include "${.CURDIR}/../Makefile.inc"
@ -36,4 +36,25 @@ DISTRIBUTION= krb
CFLAGS+= -DENCRYPTION
.endif
#
# Regression test support
#
CLEANDIRS+=cvs-sanity
USERID!=id -u
regress:
mkdir -p ${.OBJDIR}/cvs-sanity/tmp ${.OBJDIR}/cvs-sanity/work
.if ${USERID} == "0"
chown -R nobody ${.OBJDIR}/cvs-sanity
(TESTDIR=`sh -c 'cd ${.OBJDIR}/cvs-sanity/tmp && /bin/pwd'`;\
export TESTDIR;\
cd ${.OBJDIR}/cvs-sanity/work;\
su -m nobody -c "sh ${CVSDIR}/src/sanity.sh ${.OBJDIR}/cvs")
.else
(TESTDIR=`sh -c 'cd ${.OBJDIR}/cvs-sanity/tmp && /bin/pwd'`;\
export TESTDIR;\
cd ${.OBJDIR}/cvs-sanity/work;\
sh ${CVSDIR}/src/sanity.sh ${.OBJDIR}/cvs)
.endif
.include <bsd.prog.mk>