annotate 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 |
rev |
line source |
303
|
1 #!/usr/bin/python
|
245
|
2
|
|
3 import cProfile
|
|
4 import unittest
|
|
5 import pstats
|
307
|
6 import sys
|
|
7 import os
|
|
8
|
|
9 sys.path.insert(0, os.path.join('..','python'))
|
245
|
10
|
|
11 if __name__ == '__main__':
|
|
12 suite = unittest.TestLoader().discover('.')
|
|
13 def runtests():
|
|
14 unittest.TextTestRunner().run(suite)
|
261
|
15 #s = cProfile.run('runtests()',sort='cumtime')
|
|
16 s = cProfile.run('runtests()',sort='tottime')
|
245
|
17
|