blob: b48accc5e8d090907752f4861009ff7a62dd1470 [file] [log] [blame]
Guido van Rossum0bf32e31992-01-27 16:57:38 +00001# testall.py -- a regression test for the Python interpreter.
2# To run the tests, execute "import testall" in a clean interpreter.
3# It is a good idea to do this whenever you build a new interpreter.
4# Remember to add new tests when new features are added!
Guido van Rossum217a5fa1990-12-26 15:40:07 +00005
Barry Warsaw0f150e41996-12-10 16:27:16 +00006import sys
Guido van Rossum0bf32e31992-01-27 16:57:38 +00007from test_support import *
Barry Warsaw3ab26b91996-12-09 22:34:15 +00008
Guido van Rossum0bf32e31992-01-27 16:57:38 +00009print 'test_grammar'
10forget('test_grammar')
11import test_grammar
Guido van Rossum217a5fa1990-12-26 15:40:07 +000012
Barry Warsaw3ab26b91996-12-09 22:34:15 +000013for t in ['test_opcodes', 'test_operations', 'test_builtin',
14 'test_exceptions', 'test_types', 'test_math', 'test_time',
Roger E. Masseb7103571996-12-09 22:58:42 +000015 'test_array', 'test_strop', 'test_md5', 'test_cmath',
Barry Warsaw0f150e41996-12-10 16:27:16 +000016 'test_crypt', 'test_dbm', 'test_new',
Barry Warsaw3ab26b91996-12-09 22:34:15 +000017 ]:
18 print t
19 unload(t)
Barry Warsaw0f150e41996-12-10 16:27:16 +000020 try:
21 __import__(t, globals(), locals())
22 except ImportError, msg:
23 sys.stderr.write('%s. Uninstalled optional module?\n' % msg)
Barry Warsaw49852831996-12-09 21:49:55 +000024
Guido van Rossum217a5fa1990-12-26 15:40:07 +000025print 'Passed all tests.'