]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - usr.sbin/sa/tests/prime.sh
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / usr.sbin / sa / tests / 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 TZ=UTC; export TZ
10
11 # Set this to the path of the current sa command
12 SANEW=/usr/sbin/sa
13
14 # Set this to the path of the sa as of 2007-05-19.
15 # You can obtain it with a command like:
16 # cvs co -D '2007-05-19' sa
17 # To compile it you will also need sys/acct.h from that date
18 # and sa configured to use that file, instead of the current version.
19 SAOLD=/$HOME/src/sa/sa
20
21 # Machine architecture
22 ARCH=`uname -m`
23
24 # Location of lastcomm regression files
25 LCDIR=../../usr.bin/lastcomm
26
27 $SANEW -u $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-u.out
28 $SANEW -u $LCDIR/v2-$ARCH-acct.in >v2-$ARCH-u.out
29 $SANEW -i $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-sav.out
30 $SANEW -im $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-usr.out
31 cp $LCDIR/v1-$ARCH-acct.in acct.in
32 rm -f v1-$ARCH-sav.in v1-$ARCH-usr.in
33 $SAOLD -s -P v1-$ARCH-sav.in -U v1-$ARCH-usr.in acct.in >/dev/null
34 cp $LCDIR/v1-$ARCH-acct.in acct.in
35 rm -f v2-$ARCH-sav.in v2-$ARCH-usr.in
36 $SANEW -s -P v2-$ARCH-sav.in -U v2-$ARCH-usr.in acct.in >/dev/null
37 rm acct.in