1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Fix the procedure for generating the test summary files.

Document the procedure for obtaining an appropriately old version of sa.
This commit is contained in:
Diomidis Spinellis 2007-05-23 21:35:45 +00:00
parent d4c4dfe96f
commit b2784a1010
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169921

View File

@ -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