From b2784a1010a570c5d06c45ffa4180300622970a9 Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Wed, 23 May 2007 21:35:45 +0000 Subject: [PATCH] Fix the procedure for generating the test summary files. Document the procedure for obtaining an appropriately old version of sa. --- tools/regression/usr.sbin/sa/prime.sh | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/tools/regression/usr.sbin/sa/prime.sh b/tools/regression/usr.sbin/sa/prime.sh index 6c452549d5ae..c3fec3275a41 100644 --- a/tools/regression/usr.sbin/sa/prime.sh +++ b/tools/regression/usr.sbin/sa/prime.sh @@ -7,10 +7,14 @@ # # Set this to the path of the current sa command -SANEW=/usr/obj/usr/src/usr.sbin/sa/sa +SANEW=/usr/sbin/sa -# Set this to the path of the RELENG_6_2 sa -SA62=/usr/sbin/sa +# Set this to the path of the sa as of 2007-05-19. +# You can obtain it with a command like: +# cvs co -D '2007-05-19' sa +# To compile it you will also need sys/acct.h from that date +# and sa configured to use that file, instead of the current version. +SAOLD=/$HOME/src/sa/sa # Machine architecture ARCH=`uname -m` @@ -22,5 +26,10 @@ $SANEW -u $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-u.out $SANEW -u $LCDIR/v2-$ARCH-acct.in >v2-$ARCH-u.out $SANEW -i $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-sav.out $SANEW -im $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-usr.out -$SA62 -P v1-$ARCH-sav.in -U v1-$ARCH.usr $LCDIR/v1-$ARCH-acct.in >/dev/null -$SANEW -P v2-$ARCH-sav.in -U v2-$ARCH-usr.in $LCDIR/v1-$ARCH-acct.in >/dev/null +cp $LCDIR/v1-$ARCH-acct.in acct.in +rm -f v1-$ARCH-sav.in v1-$ARCH-usr.in +$SAOLD -s -P v1-$ARCH-sav.in -U v1-$ARCH-usr.in acct.in >/dev/null +cp $LCDIR/v1-$ARCH-acct.in acct.in +rm -f v2-$ARCH-sav.in v2-$ARCH-usr.in +$SANEW -s -P v2-$ARCH-sav.in -U v2-$ARCH-usr.in acct.in >/dev/null +rm acct.in