* src/pic16/gen.c: (genpic16Code) use copy of printILine's output for writing icode...
[fw/sdcc] / support / regression / collate-results.py
index ab5b03b3977a303f0b155bf5caccf60b87617d6e..ea6b1999fa20cf24c95d85bb9073a1bb1325d1a0 100644 (file)
@@ -1,13 +1,21 @@
 import sys, re
 import string
 
+"""Simple script that scans all of the test suite results text fed in
+through stdin and summarises the total number of failures, test
+points, and test cases."""
+
+# Read in everything
 lines = sys.stdin.readlines()
 
+# Init the running totals
 failures = 0
 cases = 0
 tests = 0
 
 for line in lines:
+    # '--- Summary: f/t/c ...', where f = # failures, t = # test points,
+    # c = # test cases.
     if (re.search(r'^--- Summary:', line)):
         (summary, data, rest) = re.split(r':', line)
         (nfailures, ntests, ncases) = re.split(r'/', data)
@@ -15,4 +23,4 @@ for line in lines:
         tests = tests + string.atof(ntests)
         cases = cases + string.atof(ncases)
 
-print "%.0f failues, %.0f tests, %.0f test cases" % (failures, tests, cases)
+print "%.0f failures, %.0f tests, %.0f test cases" % (failures, tests, cases)