prime.sh revision 267654
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: releng/9.3/tools/regression/usr.sbin/sa/prime.sh 169921 2007-05-23 21:35:45Z dds $ 7# 8 9# Set this to the path of the current sa command 10SANEW=/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. 17SAOLD=/$HOME/src/sa/sa 18 19# Machine architecture 20ARCH=`uname -m` 21 22# Location of lastcomm regression files 23LCDIR=../../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 29cp $LCDIR/v1-$ARCH-acct.in acct.in 30rm -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 32cp $LCDIR/v1-$ARCH-acct.in acct.in 33rm -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 35rm acct.in 36