ia64/xen-unstable

changeset 7752:2bcfd776cb7f

Add this file that wasn't in the tarball for the initial import
author danms@us.ibm.com
date Thu Nov 10 11:47:34 2005 +0100 (2005-11-10)
parents 3920df5da25e
children fb4f48f0116e
files tools/xm-test/mergereport
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/xm-test/mergereport	Thu Nov 10 11:47:34 2005 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +# Dan Smith <danms@us.ibm.com> - 16-Sep-2005
     1.7 +#
     1.8 +# This script takes all the .report files in the current
     1.9 +# directory and generates a summary table, showing the 
    1.10 +# number of PASS, FAIL, XPASS, and XFAIL tests in each 
    1.11 +# report
    1.12 +
    1.13 +
    1.14 +echo "            Platform | PASS | FAIL | XPASS | XFAIL |"
    1.15 +echo "---------------------+------+------+-------+-------+"
    1.16 +
    1.17 +for r in *.report; do
    1.18 +    
    1.19 +    mach=$(basename $r .report)
    1.20 +    pass=$(cat $r | grep '  PASS' | cut -d : -f 2 | sed 's/  *//')
    1.21 +    fail=$(cat $r | grep '  FAIL' | cut -d : -f 2 | sed 's/  *//')
    1.22 +    xpas=$(cat $r | grep ' XPASS' | cut -d : -f 2 | sed 's/  *//')
    1.23 +    xfal=$(cat $r | grep ' XFAIL' | cut -d : -f 2 | sed 's/  *//')
    1.24 +
    1.25 +    printf "%20s | %4s | %4s | %5s | %5s |\n" "$mach" "$pass" \
    1.26 +           "$fail" "$xpas" "$xfal"
    1.27 +
    1.28 +done