1992-01-27 12:57:38 -04:00
|
|
|
# testall.py -- a regression test for the Python interpreter.
|
|
|
|
# To run the tests, execute "import testall" in a clean interpreter.
|
|
|
|
# It is a good idea to do this whenever you build a new interpreter.
|
|
|
|
# Remember to add new tests when new features are added!
|
1990-12-26 11:40:07 -04:00
|
|
|
|
1992-01-27 12:57:38 -04:00
|
|
|
from test_support import *
|
1996-12-09 18:34:15 -04:00
|
|
|
|
1992-01-27 12:57:38 -04:00
|
|
|
print 'test_grammar'
|
|
|
|
forget('test_grammar')
|
|
|
|
import test_grammar
|
1990-12-26 11:40:07 -04:00
|
|
|
|
1996-12-09 18:34:15 -04:00
|
|
|
for t in ['test_opcodes', 'test_operations', 'test_builtin',
|
|
|
|
'test_exceptions', 'test_types', 'test_math', 'test_time',
|
1996-12-09 18:58:42 -04:00
|
|
|
'test_array', 'test_strop', 'test_md5', 'test_cmath',
|
1996-12-09 19:13:07 -04:00
|
|
|
'test_crypt',
|
1996-12-09 18:34:15 -04:00
|
|
|
]:
|
|
|
|
print t
|
|
|
|
unload(t)
|
|
|
|
__import__(t, globals(), locals())
|
1996-12-09 17:49:55 -04:00
|
|
|
|
1990-12-26 11:40:07 -04:00
|
|
|
print 'Passed all tests.'
|