mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Portability
- Changed bash-style syntax to sh syntax
- Reverted date printing to using perl as per 0cb71a8
for support on
Solaris
This commit is contained in:
parent
98a5788a40
commit
c5de9df963
1 changed files with 11 additions and 11 deletions
22
test/run_all
22
test/run_all
|
@ -1,22 +1,22 @@
|
|||
#! /bin/sh
|
||||
|
||||
date > all.log
|
||||
STARTEPOCH=`date +%s`
|
||||
STARTEPOCH=`perl -e 'print time'`
|
||||
|
||||
VRAMSTEG=/usr/local/bin/vramsteg
|
||||
VRAMSTEG=`which vramsteg`
|
||||
BAR=0
|
||||
if [ -x $VRAMSTEG ]; then
|
||||
if [ -x "$VRAMSTEG" ]; then
|
||||
BAR=1
|
||||
COUNT=0
|
||||
TOTAL=$(ls *.t | wc -l)
|
||||
START=$($VRAMSTEG --now)
|
||||
TOTAL=`ls *.t | wc -l`
|
||||
START=`$VRAMSTEG --now`
|
||||
fi
|
||||
|
||||
for i in *.t *.t.exe
|
||||
do
|
||||
echo '#' $i >>all.log
|
||||
|
||||
if [ $BAR == 1 ]; then
|
||||
if [ $BAR -eq 1 ]; then
|
||||
$VRAMSTEG --label 'All tests' --min 0 --max $TOTAL --current $COUNT --percentage --start $START --estimate
|
||||
COUNT=`expr $COUNT + 1`
|
||||
fi
|
||||
|
@ -24,16 +24,16 @@ do
|
|||
./$i >> all.log 2>&1
|
||||
done
|
||||
|
||||
if [ $BAR == 1 ]; then
|
||||
if [ $BAR -eq 1 ]; then
|
||||
$VRAMSTEG --remove
|
||||
fi
|
||||
|
||||
date >> all.log
|
||||
ENDEPOCH=`date +%s`
|
||||
ENDEPOCH=`perl -e 'print time'`
|
||||
|
||||
RUNTIME=`expr $ENDEPOCH - $STARTEPOCH`
|
||||
|
||||
printf "Pass: %5d\n" $(grep -c ^ok all.log)
|
||||
printf "Fail: %5d\n" $(grep -c ^not all.log)
|
||||
printf "Skipped: %5d\n" $(grep -c ^skip all.log)
|
||||
printf "Pass: %5d\n" `grep -c '^ok' all.log`
|
||||
printf "Fail: %5d\n" `grep -c '^not' all.log`
|
||||
printf "Skipped: %5d\n" `grep -c '^skip' all.log`
|
||||
printf "Runtime: %5d seconds\n" $RUNTIME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue