mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 07:57:20 +02:00
32 lines
645 B
Bash
Executable file
32 lines
645 B
Bash
Executable file
#! /bin/sh
|
|
|
|
date > all.log
|
|
|
|
for i in *.t
|
|
do
|
|
./$i >> all.log 2>&1
|
|
done
|
|
|
|
date >> all.log
|
|
|
|
START=`head -1 all.log`
|
|
END=`tail -1 all.log`
|
|
OS=`uname`
|
|
|
|
case $OS in
|
|
Darwin | FreeBSD)
|
|
STARTEPOCH=`date -j -f "%a %b %d %T %Z %Y" "${START}" "+%s"`
|
|
ENDEPOCH=`date -j -f "%a %b %d %T %Z %Y" "${END}" "+%s"`
|
|
;;
|
|
Linux)
|
|
STARTEPOCH=`date "+%s" -d "${START}"`
|
|
ENDEPOCH=`date "+%s" -d "${END}"`
|
|
;;
|
|
esac
|
|
|
|
RUNTIME=$(($ENDEPOCH - $STARTEPOCH))
|
|
|
|
printf "Pass: %5d\n" $(grep ^ok all.log | wc -l)
|
|
printf "Fail: %5d\n" $(grep ^not all.log | wc -l)
|
|
printf "Skipped: %5d\n" $(grep ^skip all.log | wc -l)
|
|
printf "Runtime: %5d\n" $RUNTIME
|