moving the state directory for bytebench to /var/benchmarks instead of trying to keep state in ${PREFIX}/share/bytebench. Distribution changes from version 3.6 include: * Double precision Whetstone instead of the old "double" benchmark. * Removal of some obsolete files. * "system" suite adds shell8. * perlbench and poll added as "exhibition" (non-index) benchmarks. * Minor change to fstime.c to fix overflow problems on fast machines. * A lot more operating system-oriented tests into the index. * Many tests rewritten to be more relevant for modern processors. * New baseline: SPARCstation 20-61 with 128 MB RAM, a SPARC Storage Array, and Solaris 2.3
79 lines
1.6 KiB
Text
79 lines
1.6 KiB
Text
$NetBSD: patch-aa,v 1.6 2002/01/09 11:24:37 jlam Exp $
|
|
|
|
--- Run.orig Wed Jul 28 15:04:47 1999
|
|
+++ Run
|
|
@@ -87,51 +87,50 @@
|
|
UNAME="uname -a"
|
|
fi
|
|
|
|
-# check that the required files are in the proper places
|
|
-if make check; then
|
|
- :
|
|
-else
|
|
- make all
|
|
-fi
|
|
-
|
|
-
|
|
# establish full paths to directories
|
|
_WD=`pwd`
|
|
-HOMEDIR=${HOMEDIR-.}
|
|
+HOMEDIR=@PREFIX@
|
|
cd $HOMEDIR
|
|
HOMEDIR=`pwd`
|
|
cd $_WD
|
|
|
|
-BINDIR=${BINDIR-${HOMEDIR}/pgms}
|
|
+BINDIR=${BINDIR-${HOMEDIR}/libexec/bytebench}
|
|
cd $BINDIR
|
|
BINDIR=`pwd`
|
|
cd $_WD
|
|
# let's extend the path to this directory
|
|
PATH="${PATH}:${BINDIR}"
|
|
|
|
-SCRPDIR=${SCRPDIR-${HOMEDIR}/pgms}
|
|
+SCRPDIR=${SCRPDIR-${HOMEDIR}/libexec/bytebench}
|
|
cd $SCRPDIR
|
|
SCRPDIR=`pwd`
|
|
cd $_WD
|
|
|
|
-TMPDIR=${HOMEDIR}/tmp
|
|
+TMPDIR=${TMPDIR-/tmp}
|
|
cd $TMPDIR
|
|
TMPDIR=`pwd`
|
|
cd $_WD
|
|
|
|
-RESULTDIR=${RESULTDIR-${HOMEDIR}/results}
|
|
+RESULTDIR=${RESULTDIR-/var/bytebench}
|
|
cd $RESULTDIR
|
|
RESULTDIR=`pwd`
|
|
cd $_WD
|
|
|
|
TIMEACCUM=${TIMEACCUM-${RESULTDIR}/times}
|
|
|
|
-TESTDIR=${TESTDIR-${HOMEDIR}/testdir}
|
|
+BENCHDIR=${BENCHDIR-${HOMEDIR}/share/bytebench}
|
|
+cd $BENCHDIR
|
|
+BENCHDIR=`pwd`
|
|
+cd $_WD
|
|
+
|
|
+TESTDIR=${TESTDIR-${TMPDIR}/bytebench}
|
|
+mkdir -p -m 0700 ${TESTDIR}
|
|
+cp ${BENCHDIR}/* ${TESTDIR}
|
|
cd $TESTDIR
|
|
TESTDIR=`pwd`
|
|
cd $_WD
|
|
|
|
-export BINDIR TMPDIR RESULTDIR PATH TESTDIR TIMEACCUM
|
|
+export BINDIR TMPDIR RESULTDIR PATH TESTDIR TIMEACCUM BENCHDIR
|
|
#
|
|
cat ${BINDIR}/unixbench.logo # display banner
|
|
rm -f ${TIMEACCUM} # clean out old time accumulation file
|
|
@@ -531,6 +530,8 @@
|
|
echo "=============================================================="
|
|
cat $REPORTLOG
|
|
fi
|
|
+
|
|
+rm -rf $TESTDIR
|
|
|
|
exit 0
|
|
########################### Amen ######################
|