Unit Tests

- Enhanced 'run_all' so that by default, it does not run the benchmark.t
  script, but does if the 'slow' argument is specified.
This commit is contained in:
Paul Beckingham 2010-06-27 00:59:28 -04:00
parent 9477660e02
commit ff18241f6f

View file

@ -2,6 +2,14 @@
date > all.log
MODE=quick
if [ "x$1" == 'xslow' ]; then
echo 'Including benchmarks'
MODE=slow
else
echo 'Skipping benchmarks'
fi
VRAMSTEG=/usr/local/bin/vramsteg
BAR=0
if [ -x $VRAMSTEG ]; then
@ -18,7 +26,9 @@ do
COUNT=$[COUNT + 1]
fi
./$i >> all.log 2>&1
if [[ $MODE == 'slow' || $i != 'benchmark.t' ]]; then
./$i >> all.log 2>&1
fi
done
if [ $BAR == 1 ]; then