Skip to contentSkip to conversation

Add a missing script

PATCH New Dan Smith 1 participant 1 message Nov 9, 2005

lore
Share & tools
lore

Dan Smith

author
#0 lore raw

PATCH 4/4 Add a missing script

Add this file that wasn't in the tarball for the initial import.

# HG changeset patch
# User [email protected]
# Node ID f86bf958b5c75ea16798e44f22f417c947603b7c
# Parent 52676e60ba92ed615692f6fa20413e5474519f9f Add this file that wasn't in the tarball for the initial import

tools/xm-test/mergereport new file +25 -0
diff -r 52676e60ba92 -r f86bf958b5c7 tools/xm-test/mergereport
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# Dan Smith <[email protected]> - 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
Signature · 4 lines
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: [email protected]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel