ia64/xen-unstable

annotate tools/xm-test/mergereport @ 8740:3d7ea7972b39

Update patches for linux 2.6.15.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Feb 02 17:16:00 2006 +0000 (2006-02-02)
parents 2bcfd776cb7f
children 43671a60b0f1
rev   line source
danms@7752 1 #!/bin/sh
danms@7752 2
danms@7752 3 # Dan Smith <danms@us.ibm.com> - 16-Sep-2005
danms@7752 4 #
danms@7752 5 # This script takes all the .report files in the current
danms@7752 6 # directory and generates a summary table, showing the
danms@7752 7 # number of PASS, FAIL, XPASS, and XFAIL tests in each
danms@7752 8 # report
danms@7752 9
danms@7752 10
danms@7752 11 echo " Platform | PASS | FAIL | XPASS | XFAIL |"
danms@7752 12 echo "---------------------+------+------+-------+-------+"
danms@7752 13
danms@7752 14 for r in *.report; do
danms@7752 15
danms@7752 16 mach=$(basename $r .report)
danms@7752 17 pass=$(cat $r | grep ' PASS' | cut -d : -f 2 | sed 's/ *//')
danms@7752 18 fail=$(cat $r | grep ' FAIL' | cut -d : -f 2 | sed 's/ *//')
danms@7752 19 xpas=$(cat $r | grep ' XPASS' | cut -d : -f 2 | sed 's/ *//')
danms@7752 20 xfal=$(cat $r | grep ' XFAIL' | cut -d : -f 2 | sed 's/ *//')
danms@7752 21
danms@7752 22 printf "%20s | %4s | %4s | %5s | %5s |\n" "$mach" "$pass" \
danms@7752 23 "$fail" "$xpas" "$xfal"
danms@7752 24
danms@7752 25 done