]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/usr.sbin/sa/prime.sh
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / usr.sbin / sa / prime.sh
1 #!/bin/sh
2 #
3 # Configure and run this script to create the files for regression testing
4 # for a new architecture/configuration.
5 #
6 # $FreeBSD$
7 #
8
9 # Set this to the path of the current sa command
10 SANEW=/usr/sbin/sa
11
12 # Set this to the path of the sa as of 2007-05-19.
13 # You can obtain it with a command like:
14 # cvs co -D '2007-05-19' sa
15 # To compile it you will also need sys/acct.h from that date
16 # and sa configured to use that file, instead of the current version.
17 SAOLD=/$HOME/src/sa/sa
18
19 # Machine architecture
20 ARCH=`uname -m`
21
22 # Location of lastcomm regression files
23 LCDIR=../../usr.bin/lastcomm
24
25 $SANEW -u $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-u.out
26 $SANEW -u $LCDIR/v2-$ARCH-acct.in >v2-$ARCH-u.out
27 $SANEW -i $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-sav.out
28 $SANEW -im $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-usr.out
29 cp $LCDIR/v1-$ARCH-acct.in acct.in
30 rm -f v1-$ARCH-sav.in v1-$ARCH-usr.in
31 $SAOLD -s -P v1-$ARCH-sav.in -U v1-$ARCH-usr.in acct.in >/dev/null
32 cp $LCDIR/v1-$ARCH-acct.in acct.in
33 rm -f v2-$ARCH-sav.in v2-$ARCH-usr.in
34 $SANEW -s -P v2-$ARCH-sav.in -U v2-$ARCH-usr.in acct.in >/dev/null
35 rm acct.in