From 77b1218492d35d78af1fc14b094bcbf0acbe1719 Mon Sep 17 00:00:00 2001 From: Eivind Eklund Date: Sat, 28 Mar 1998 19:06:21 +0000 Subject: [PATCH] Activate CVS regression test. --- gnu/usr.bin/cvs/cvs/Makefile | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/gnu/usr.bin/cvs/cvs/Makefile b/gnu/usr.bin/cvs/cvs/Makefile index a0e3d869fa6a..66685ea1e12e 100644 --- a/gnu/usr.bin/cvs/cvs/Makefile +++ b/gnu/usr.bin/cvs/cvs/Makefile @@ -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