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:
@@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
date > all.log
|
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
|
VRAMSTEG=/usr/local/bin/vramsteg
|
||||||
BAR=0
|
BAR=0
|
||||||
if [ -x $VRAMSTEG ]; then
|
if [ -x $VRAMSTEG ]; then
|
||||||
@@ -18,7 +26,9 @@ do
|
|||||||
COUNT=$[COUNT + 1]
|
COUNT=$[COUNT + 1]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./$i >> all.log 2>&1
|
if [[ $MODE == 'slow' || $i != 'benchmark.t' ]]; then
|
||||||
|
./$i >> all.log 2>&1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $BAR == 1 ]; then
|
if [ $BAR == 1 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user