Use sh instead of bash in test/run_all

This commit is contained in:
Pietro Cerutti 2012-08-21 16:57:26 +02:00 committed by Paul Beckingham
parent 968d1c32e8
commit 98a5788a40

View file

@ -1,7 +1,7 @@
#! /bin/bash
#! /bin/sh
date > all.log
STARTEPOCH=`perl -e 'print time'`
STARTEPOCH=`date +%s`
VRAMSTEG=/usr/local/bin/vramsteg
BAR=0
@ -18,7 +18,7 @@ do
if [ $BAR == 1 ]; then
$VRAMSTEG --label 'All tests' --min 0 --max $TOTAL --current $COUNT --percentage --start $START --estimate
COUNT=$[COUNT + 1]
COUNT=`expr $COUNT + 1`
fi
./$i >> all.log 2>&1
@ -29,9 +29,9 @@ if [ $BAR == 1 ]; then
fi
date >> all.log
ENDEPOCH=`perl -e 'print time'`
ENDEPOCH=`date +%s`
RUNTIME=$(($ENDEPOCH - $STARTEPOCH))
RUNTIME=`expr $ENDEPOCH - $STARTEPOCH`
printf "Pass: %5d\n" $(grep -c ^ok all.log)
printf "Fail: %5d\n" $(grep -c ^not all.log)