1169854Sdds#!/bin/sh 2169854Sdds# 3169854Sdds# Configure and run this script to create the files for regression testing 4169854Sdds# for a new architecture/configuration. 5169854Sdds# 6169854Sdds# $FreeBSD$ 7169854Sdds# 8169854Sdds 9263226SjmmvTZ=UTC; export TZ 10263226Sjmmv 11169854Sdds# Set this to the path of the current sa command 12169921SddsSANEW=/usr/sbin/sa 13169854Sdds 14169921Sdds# Set this to the path of the sa as of 2007-05-19. 15169921Sdds# You can obtain it with a command like: 16169921Sdds# cvs co -D '2007-05-19' sa 17169921Sdds# To compile it you will also need sys/acct.h from that date 18169921Sdds# and sa configured to use that file, instead of the current version. 19169921SddsSAOLD=/$HOME/src/sa/sa 20169854Sdds 21169854Sdds# Machine architecture 22169854SddsARCH=`uname -m` 23169854Sdds 24169854Sdds# Location of lastcomm regression files 25169854SddsLCDIR=../../usr.bin/lastcomm 26169854Sdds 27169854Sdds$SANEW -u $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-u.out 28169854Sdds$SANEW -u $LCDIR/v2-$ARCH-acct.in >v2-$ARCH-u.out 29169854Sdds$SANEW -i $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-sav.out 30169854Sdds$SANEW -im $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-usr.out 31169921Sddscp $LCDIR/v1-$ARCH-acct.in acct.in 32169921Sddsrm -f v1-$ARCH-sav.in v1-$ARCH-usr.in 33169921Sdds$SAOLD -s -P v1-$ARCH-sav.in -U v1-$ARCH-usr.in acct.in >/dev/null 34169921Sddscp $LCDIR/v1-$ARCH-acct.in acct.in 35169921Sddsrm -f v2-$ARCH-sav.in v2-$ARCH-usr.in 36169921Sdds$SANEW -s -P v2-$ARCH-sav.in -U v2-$ARCH-usr.in acct.in >/dev/null 37169921Sddsrm acct.in 38