Index: sanity.sh =================================================================== RCS file: /arch/cvs/home/ccvs/src/sanity.sh,v retrieving revision 1.2.2.3 diff -u -r1.2.2.3 sanity.sh --- sanity.sh 9 Oct 2005 14:27:24 -0000 1.2.2.3 +++ sanity.sh 2 May 2007 13:10:18 -0000 @@ -451,6 +451,13 @@ # its own name. SPROG=`basename ${servercvs} |sed 's/\.exe$//'` +use_valgrind=0 +echo $testcvs | grep valgrind-cvs 2>&1 1>/dev/null +if ((!$?)) ; then + SPROG="[a-z\-]*cvs" + CPROG="[a-z\-]*cvs" + use_valgrind=1 +fi # Match the hostname hostname="[-_.a-zA-Z0-9]*" @@ -1375,6 +1382,14 @@ cat ${TESTDIR}/dotest.tmp >>${LOGFILE} fail "$1" fi + if ((use_valgrind)); then + d=`echo $testcvs | sed -e "s/valgrind-cvs/valgrind.log/"` + f=`ls -1tr $d | tail -1` + echo $f | grep "\-" 2>&1 1>/dev/null + if (($?)) ; then + mv $d/$f "$d/$f-$1" + fi + fi } dotest_all_in_one ()