mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Added a vramsteg progress bar, which is only used if it is found in /usr/local/bin.
This commit is contained in:
parent
5e55166617
commit
fbe24b3fda
1 changed files with 18 additions and 0 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue