summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordds <dds@FreeBSD.org>2007-05-23 21:35:45 +0000
committerdds <dds@FreeBSD.org>2007-05-23 21:35:45 +0000
commit907b9b8a358209d9f4888a91ba5e6160ecaed58e (patch)
tree1a09756cd701bf15adcbcbe4e748af47417b2a92 /tools
parent8b3bf231cc710dd95386b222c0caa64dbf802655 (diff)
downloadFreeBSD-src-907b9b8a358209d9f4888a91ba5e6160ecaed58e.zip
FreeBSD-src-907b9b8a358209d9f4888a91ba5e6160ecaed58e.tar.gz
Fix the procedure for generating the test summary files.
Document the procedure for obtaining an appropriately old version of sa.
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/usr.sbin/sa/prime.sh19
1 files changed, 14 insertions, 5 deletions
diff --git a/tools/regression/usr.sbin/sa/prime.sh b/tools/regression/usr.sbin/sa/prime.sh
index 6c45254..c3fec32 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
OpenPOWER on IntegriCloud