Changeset 499 for pkpgcounter

Show
Ignore:
Timestamp:
11/21/07 22:33:40 (17 years ago)
Author:
jerome
Message:

Now launches the tests automatically once the testsuite is created.

Files:
1 modified

Legend:

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

    r498 r499  
    8888    nbtests = len(testsuite) 
    8989    for testfname in testsuite : 
     90        sys.stdout.write("Testing %(testfname)s ... " % locals()) 
     91        sys.stdout.flush() 
    9092        size = computeSize(testfname) 
    9193        if size != mastersize : 
    92             sys.stderr.write("Incorrect parser for %(testfname)s\n" % locals()) 
     94            sys.stdout.write("ERROR\n") 
    9395            failed += 1 
    9496        else :     
     97            sys.stdout.write("OK\n") 
    9598            passed += 1 
    9699    print "Passed : %i     %.2f" % (passed, 100.0 * passed / nbtests) 
     
    121124             
    122125        genTestSuite(infilename, "testsuite") 
     126        runTests(infilename, "testsuite") 
    123127             
    124128        if istemp :