blob: e86c931c454d3a967eac52b390b891347dd9436e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
TESTNAME=$1
LOG=$2
# Find the last line number which starting with control character
N=`grep -n "^#1 -> #0" ${LOG} | tail -n1 | cut -d':' -f1`
sed -n "${N},$ p" ${LOG} > tmp.log
while read l
do
TC="`echo ${l} | cut -d',' -f1`"
R="`echo ${l} | cut -d',' -f2-`"
IFS=','
for c in ${R}
do
c="`echo $c|sed 's/^[ ]*//'`"
t="`echo ${c} | cut -d' ' -f1`"
v="`echo ${c} | cut -d' ' -f2`"
echo "${TESTNAME} ${TC} (${t}): ${v} usec pass"
done
unset IFS
done < tmp.log
|