view test/grind.py @ 307:e609d5296ee9

Massive rewrite of codegenerator
author Windel Bouwman
date Thu, 12 Dec 2013 20:42:56 +0100
parents be7f60545368
children ff665880a6b0
line wrap: on
line source

#!/usr/bin/python

import cProfile
import unittest
import pstats
import sys
import os

sys.path.insert(0, os.path.join('..','python'))

if __name__ == '__main__':
    suite = unittest.TestLoader().discover('.')
    def runtests():
        unittest.TextTestRunner().run(suite)
    #s = cProfile.run('runtests()',sort='cumtime')
    s = cProfile.run('runtests()',sort='tottime')