From: Dan Smith Subject: [PATCH][XM-TEST][4/4] Add a missing script Date: Wed, 09 Nov 2005 12:32:16 -0800 Message-ID: <87zmodr29b.fsf@theine.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Developers List-Id: xen-devel@lists.xenproject.org --=-=-= Add this file that wasn't in the tarball for the initial import. Signed-off-by: Dan Smith --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=mergereport.patch # HG changeset patch # User danms@us.ibm.com # Node ID f86bf958b5c75ea16798e44f22f417c947603b7c # Parent 52676e60ba92ed615692f6fa20413e5474519f9f Add this file that wasn't in the tarball for the initial import diff -r 52676e60ba92 -r f86bf958b5c7 tools/xm-test/mergereport --- /dev/null Wed Nov 9 20:19:23 2005 +++ b/tools/xm-test/mergereport Wed Nov 9 20:20:12 2005 @@ -0,0 +1,25 @@ +#!/bin/sh + +# Dan Smith - 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 --=-=-= -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-=-=--