OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [check-results.sh] - Diff between revs 548 and 553

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 548 Rev 553
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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.