diff options
author | jmmv <jmmv@FreeBSD.org> | 2014-04-27 01:15:10 +0000 |
---|---|---|
committer | jmmv <jmmv@FreeBSD.org> | 2014-04-27 01:15:10 +0000 |
commit | 1e4589b921fdaa1b1d2fc6b6ed016f1e0a01cb8f (patch) | |
tree | 94c86cf13dedabad5bdc68f6f227b843a5161343 /usr.sbin/sa/tests/prime.sh | |
parent | 5b12da65bf9d40526ac9ca480d639bad3cd39cf6 (diff) | |
download | FreeBSD-src-1e4589b921fdaa1b1d2fc6b6ed016f1e0a01cb8f.zip FreeBSD-src-1e4589b921fdaa1b1d2fc6b6ed016f1e0a01cb8f.tar.gz |
MFC various moves of tools/regressions/ tests to the new infrastructure.
- r263220 Migrate tools/regression/sbin/ to the new tests layout.
- r263222 Add Makefile missed in r263220.
- r263226 Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout.
- r263227 Migrate most of tools/regression/usr.bin/ to the new tests layout.
- r263345 Expand tabs that sneaked in into spaces.
- r263346 Migrate tools/regression/usr.bin/make/ to the new tests layout.
- r263348 Add Makefiles missed in r263346.
- r263351 Migrate tools/regression/usr.bin/pkill/ to the new tests layout.
- r263388 Mark multi_test as requiring /usr/share/dict/words.
- r263814 Fix path to the run.pl script to let these tests run.
- r264742 Prevent building tests when bootstrapping make.
This is 'make tinderbox' clean.
Diffstat (limited to 'usr.sbin/sa/tests/prime.sh')
-rwxr-xr-x | usr.sbin/sa/tests/prime.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/usr.sbin/sa/tests/prime.sh b/usr.sbin/sa/tests/prime.sh new file mode 100755 index 0000000..6992f45 --- /dev/null +++ b/usr.sbin/sa/tests/prime.sh @@ -0,0 +1,37 @@ +#!/bin/sh +# +# Configure and run this script to create the files for regression testing +# for a new architecture/configuration. +# +# $FreeBSD$ +# + +TZ=UTC; export TZ + +# Set this to the path of the current sa command +SANEW=/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` + +# Location of lastcomm regression files +LCDIR=../../usr.bin/lastcomm + +$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 +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 |