Line 27... |
Line 27... |
# The argument is the list of log files to process.
|
# The argument is the list of log files to process.
|
|
|
tmpf=/tmp/check-results-$$
|
tmpf=/tmp/check-results-$$
|
|
|
# Get the individual results if we have any. Note that we don't check for the
|
# Get the individual results if we have any. Note that we don't check for the
|
# strings at start of line, since they may have FTP prompts showing.
|
# strings at start of line, since they may have FTP prompts showing. Don't
|
|
# print out lines which have no tests at all.
|
echo " PASS FAIL XPASS XFAIL UNRES UNSUP UNTES TOTAL"
|
echo " PASS FAIL XPASS XFAIL UNRES UNSUP UNTES TOTAL"
|
|
|
if ls $* > /dev/null 2>&1
|
if ls $* > /dev/null 2>&1
|
then
|
then
|
for logfile in $*
|
for logfile in $*
|
Line 44... |
Line 45... |
xf=`grep 'XFAIL:' ${logfile} | wc -l`
|
xf=`grep 'XFAIL:' ${logfile} | wc -l`
|
ur=`grep 'UNRESOLVED:' ${logfile} | wc -l`
|
ur=`grep 'UNRESOLVED:' ${logfile} | wc -l`
|
us=`grep 'UNSUPPORTED:' ${logfile} | wc -l`
|
us=`grep 'UNSUPPORTED:' ${logfile} | wc -l`
|
ut=`grep 'UNTESTED:' ${logfile} | wc -l`
|
ut=`grep 'UNTESTED:' ${logfile} | wc -l`
|
tot=`echo "${p} ${f} + ${xp} + ${xf} + ${ur} + ${us} + ${ut} + p" | dc`
|
tot=`echo "${p} ${f} + ${xp} + ${xf} + ${ur} + ${us} + ${ut} + p" | dc`
|
|
|
|
if [ "x${tot}" != "x0" ]
|
|
then
|
printf "%-25s %5d %5d %5d %5d %5d %5d %5d %5d\n" \
|
printf "%-25s %5d %5d %5d %5d %5d %5d %5d %5d\n" \
|
${tname} ${p} ${f} ${xp} ${xf} ${ur} ${us} ${ut} ${tot} | \
|
${tname} ${p} ${f} ${xp} ${xf} ${ur} ${us} ${ut} ${tot} | \
|
tee -a ${tmpf}
|
tee -a ${tmpf}
|
|
fi
|
done
|
done
|
fi
|
fi
|
|
|
# Total each column, if we have any results
|
# Total each column, if we have any results
|
if ls $* > /dev/null 2>&1
|
if ls $* > /dev/null 2>&1
|