Show
Ignore:
Timestamp:
11/22/07 13:45:34 (17 years ago)
Author:
jerome
Message:

Now outputs separately the number of failed devices, i.e. devices
for which accounting was incorrect, and the number of unsupported
devices, i.e. devices for which accounting was not possible.
Current result is :

Passed : 63/148 (42.57%)
Failed : 45/148 (30.41%)

Unsupported : 40/148 (27.03%)


Most failed tests are due to image formats which don't support multiple
pages.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/tests/gstests.py

    r506 r509  
    8585    else :     
    8686        sys.stdout.write("Master file's contains %(mastersize)i pages.\n" % locals()) 
    87     passed = 0 
    88     failed = 0 
     87    passed = failed = unsupported = 0 
    8988    testsuite = glob.glob("%(root)s.*" % locals()) 
    9089    testsuite.sort() 
     
    9796            if not size : 
    9897                sys.stdout.write("ERROR : Unsupported file format\n") 
     98                unsupported += 1 
    9999            else :     
    100100                sys.stdout.write("WARN : Found %(size)i pages instead of %(mastersize)i\n" % locals()) 
    101             failed += 1 
     101                failed += 1 
    102102        else :     
    103103            sys.stdout.write("OK\n") 
    104104            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)) 
    107108             
    108109def main() :