Unit Tests

- Added a vramsteg progress bar, which is only used if it is found
  in /usr/local/bin.
This commit is contained in:
Paul Beckingham 2010-06-20 00:31:55 -04:00
parent 5e55166617
commit fbe24b3fda

View file

@ -2,11 +2,29 @@
date > all.log
VRAMSTEG=/usr/local/bin/vramsteg
BAR=0
if [ -x $VRAMSTEG ]; then
BAR=1
COUNT=0
TOTAL=$(ls *.t | wc -l)
START=$($VRAMSTEG --now)
fi
for i in *.t
do
if [ $BAR == 1 ]; then
$VRAMSTEG --label 'All tests' --min 0 --max $TOTAL --current $COUNT --percentage --start $START --estimate
COUNT=$[COUNT + 1]
fi
./$i >> all.log 2>&1
done
if [ $BAR == 1 ]; then
$VRAMSTEG --remove
fi
date >> all.log
START=`head -1 all.log`