[PATCH][XM-TEST][4/4] Add a missing script

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH][XM-TEST][4/4] Add a missing script

Dan Smith-2
Add this file that wasn't in the tarball for the initial import.

Signed-off-by: Dan Smith <[hidden email]>

# HG changeset patch
# User [hidden email]
# 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 <[hidden email]> - 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: [hidden email]

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