source: trunk/packages/xen-common/xen-common/tools/xm-test/mergereport @ 95

Last change on this file since 95 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

File size: 792 bytes
Line 
1#!/bin/sh
2
3# Dan Smith <danms@us.ibm.com> - 16-Sep-2005
4#
5# This script takes all the .report files in the current
6# directory and generates a summary table, showing the
7# number of PASS, FAIL, XPASS, and XFAIL tests in each
8# report
9
10
11echo "            Platform | PASS | FAIL | XPASS | XFAIL |"
12echo "---------------------+------+------+-------+-------+"
13
14for r in *.report; do
15   
16    mach=$(basename $r .report)
17    pass=$(cat $r | grep '  PASS' | cut -d : -f 2 | sed 's/  *//')
18    fail=$(cat $r | grep '  FAIL' | cut -d : -f 2 | sed 's/  *//')
19    xpas=$(cat $r | grep ' XPASS' | cut -d : -f 2 | sed 's/  *//')
20    xfal=$(cat $r | grep ' XFAIL' | cut -d : -f 2 | sed 's/  *//')
21
22    printf "%20s | %4s | %4s | %5s | %5s |\n" "$mach" "$pass" \
23           "$fail" "$xpas" "$xfal"
24
25done
Note: See TracBrowser for help on using the repository browser.