Guido van Rossum | 0bf32e3 | 1992-01-27 16:57:38 +0000 | [diff] [blame] | 1 | # 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 Rossum | 217a5fa | 1990-12-26 15:40:07 +0000 | [diff] [blame] | 5 | |
Guido van Rossum | 0bf32e3 | 1992-01-27 16:57:38 +0000 | [diff] [blame] | 6 | from test_support import * |
Barry Warsaw | 3ab26b9 | 1996-12-09 22:34:15 +0000 | [diff] [blame] | 7 | |
Guido van Rossum | 0bf32e3 | 1992-01-27 16:57:38 +0000 | [diff] [blame] | 8 | print 'test_grammar' |
| 9 | forget('test_grammar') |
| 10 | import test_grammar |
Guido van Rossum | 217a5fa | 1990-12-26 15:40:07 +0000 | [diff] [blame] | 11 | |
Barry Warsaw | 3ab26b9 | 1996-12-09 22:34:15 +0000 | [diff] [blame] | 12 | for t in ['test_opcodes', 'test_operations', 'test_builtin', |
| 13 | 'test_exceptions', 'test_types', 'test_math', 'test_time', |
Roger E. Masse | b710357 | 1996-12-09 22:58:42 +0000 | [diff] [blame^] | 14 | 'test_array', 'test_strop', 'test_md5', 'test_cmath', |
Barry Warsaw | 3ab26b9 | 1996-12-09 22:34:15 +0000 | [diff] [blame] | 15 | ]: |
| 16 | print t |
| 17 | unload(t) |
| 18 | __import__(t, globals(), locals()) |
Barry Warsaw | 4985283 | 1996-12-09 21:49:55 +0000 | [diff] [blame] | 19 | |
Guido van Rossum | 217a5fa | 1990-12-26 15:40:07 +0000 | [diff] [blame] | 20 | print 'Passed all tests.' |