Changeset 509 for pkpgcounter/trunk/tests
- Timestamp:
- 11/22/07 13:45:34 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/tests/gstests.py
r506 r509 85 85 else : 86 86 sys.stdout.write("Master file's contains %(mastersize)i pages.\n" % locals()) 87 passed = 0 88 failed = 0 87 passed = failed = unsupported = 0 89 88 testsuite = glob.glob("%(root)s.*" % locals()) 90 89 testsuite.sort() … … 97 96 if not size : 98 97 sys.stdout.write("ERROR : Unsupported file format\n") 98 unsupported += 1 99 99 else : 100 100 sys.stdout.write("WARN : Found %(size)i pages instead of %(mastersize)i\n" % locals()) 101 failed += 1101 failed += 1 102 102 else : 103 103 sys.stdout.write("OK\n") 104 104 passed += 1 105 sys.stdout.write("Passed : %i (%.2f%%)\n" % (passed, 100.0 * passed / nbtests)) 106 sys.stdout.write("Failed : %i (%.2f%%)\n" % (failed, 100.0 * failed / nbtests)) 105 sys.stdout.write(" Passed : %i/%i (%.2f%%)\n" % (passed, nbtests, 100.0 * passed / nbtests)) 106 sys.stdout.write(" Failed : %i/%i (%.2f%%)\n" % (failed, nbtests, 100.0 * failed / nbtests)) 107 sys.stdout.write("Unsupported : %i/%i (%.2f%%)\n" % (unsupported, nbtests, 100.0 * unsupported / nbtests)) 107 108 108 109 def main() :