diff options
author | danms@us.ibm.com <danms@us.ibm.com> | 2005-11-10 11:47:34 +0100 |
---|---|---|
committer | danms@us.ibm.com <danms@us.ibm.com> | 2005-11-10 11:47:34 +0100 |
commit | 9aca986cfd8cd66dfcf96784323a6263b0ac61b3 (patch) | |
tree | d98c5e53e9222eb83bd45de3d7abc3197a441aaf /tools/xm-test/mergereport | |
parent | c997e4cd9cffaf4a57445d80d31b4ba650321dfa (diff) | |
download | xen-9aca986cfd8cd66dfcf96784323a6263b0ac61b3.tar.gz xen-9aca986cfd8cd66dfcf96784323a6263b0ac61b3.tar.bz2 xen-9aca986cfd8cd66dfcf96784323a6263b0ac61b3.zip |
Add this file that wasn't in the tarball for the initial import
Diffstat (limited to 'tools/xm-test/mergereport')
-rw-r--r-- | tools/xm-test/mergereport | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/xm-test/mergereport b/tools/xm-test/mergereport new file mode 100644 index 0000000000..98b37de50b --- /dev/null +++ b/tools/xm-test/mergereport @@ -0,0 +1,25 @@ +#!/bin/sh + +# Dan Smith <danms@us.ibm.com> - 16-Sep-2005 +# +# This script takes all the .report files in the current +# directory and generates a summary table, showing the +# number of PASS, FAIL, XPASS, and XFAIL tests in each +# report + + +echo " Platform | PASS | FAIL | XPASS | XFAIL |" +echo "---------------------+------+------+-------+-------+" + +for r in *.report; do + + mach=$(basename $r .report) + pass=$(cat $r | grep ' PASS' | cut -d : -f 2 | sed 's/ *//') + fail=$(cat $r | grep ' FAIL' | cut -d : -f 2 | sed 's/ *//') + xpas=$(cat $r | grep ' XPASS' | cut -d : -f 2 | sed 's/ *//') + xfal=$(cat $r | grep ' XFAIL' | cut -d : -f 2 | sed 's/ *//') + + printf "%20s | %4s | %4s | %5s | %5s |\n" "$mach" "$pass" \ + "$fail" "$xpas" "$xfal" + +done |