annotate test/grind.py @ 303:be7f60545368

Final fixups
author Windel Bouwman
date Fri, 06 Dec 2013 12:37:48 +0100
parents 1c7c1e619be8
children e609d5296ee9
rev   line source
303
be7f60545368 Final fixups
Windel Bouwman
parents: 287
diff changeset
1 #!/usr/bin/python
245
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
2
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
3 import cProfile
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
4 import unittest
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
5 import pstats
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
6
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
7 if __name__ == '__main__':
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
8 suite = unittest.TestLoader().discover('.')
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
9 def runtests():
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
10 unittest.TextTestRunner().run(suite)
261
444b9df2ed99 try to split up code generation
Windel Bouwman
parents: 245
diff changeset
11 #s = cProfile.run('runtests()',sort='cumtime')
444b9df2ed99 try to split up code generation
Windel Bouwman
parents: 245
diff changeset
12 s = cProfile.run('runtests()',sort='tottime')
245
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
13