annotate test/grind.py @ 318:e84047f29c78

Add burg and yacc initial attempts
author Windel Bouwman
date Tue, 31 Dec 2013 12:38:15 +0100
parents ff665880a6b0
children e9fe6988497c
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
307
e609d5296ee9 Massive rewrite of codegenerator
Windel Bouwman
parents: 303
diff changeset
6 import sys
e609d5296ee9 Massive rewrite of codegenerator
Windel Bouwman
parents: 303
diff changeset
7 import os
e609d5296ee9 Massive rewrite of codegenerator
Windel Bouwman
parents: 303
diff changeset
8
245
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
9 if __name__ == '__main__':
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
10 suite = unittest.TestLoader().discover('.')
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
11 def runtests():
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
12 unittest.TextTestRunner().run(suite)
261
444b9df2ed99 try to split up code generation
Windel Bouwman
parents: 245
diff changeset
13 #s = cProfile.run('runtests()',sort='cumtime')
444b9df2ed99 try to split up code generation
Windel Bouwman
parents: 245
diff changeset
14 s = cProfile.run('runtests()',sort='tottime')