[t:4814] make fractal tree test script show more errors in the commit message

git-svn-id: file:///svn/toku/tokudb@43222 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Leif Walsh 2013-04-17 00:00:26 -04:00 committed by Yoni Fogel
parent b91396b82c
commit 80ccbbbed2

View file

@ -224,7 +224,8 @@ cp -r Testing/$tag $resultsdir
cf=$(my_mktemp ftresult)
cat "$resultsdir/trace" | awk '
BEGIN {
leaks=0;
errs=0;
look=0;
ORS=" ";
}
/[0-9]+% tests passed, [0-9]+ tests failed out of [0-9]+/ {
@ -232,11 +233,21 @@ BEGIN {
total=$9;
pass=total-fail;
}
/^Memory Leak - [0-9]+/ {
leaks=$4;
/^Memory checking results:/ {
look=1;
FS=" - ";
}
/Errors while running CTest/ {
look=0;
FS=" ";
}
{
if (look) {
errs+=$2;
}
}
END {
print "LEAKS=" leaks;
print "ERRORS=" errs;
if (fail>0) {
print "FAIL=" fail
}