Barry Warsaw | 272c00b | 1996-12-10 19:51:10 +0000 | [diff] [blame] | 1 | # This file now contains only the list of separate regression tests. |
| 2 | # All of the testing harness is now contained in autotest.py. |
Guido van Rossum | 217a5fa | 1990-12-26 15:40:07 +0000 | [diff] [blame] | 3 | |
Barry Warsaw | 272c00b | 1996-12-10 19:51:10 +0000 | [diff] [blame] | 4 | tests = ['test_grammar', |
| 5 | 'test_opcodes', |
| 6 | 'test_operations', |
| 7 | 'test_builtin', |
| 8 | 'test_exceptions', |
| 9 | 'test_types', |
| 10 | 'test_math', |
| 11 | 'test_time', |
| 12 | 'test_array', |
| 13 | 'test_strop', |
| 14 | 'test_md5', |
| 15 | 'test_cmath', |
| 16 | 'test_crypt', |
| 17 | 'test_dbm', |
| 18 | 'test_new', |
Barry Warsaw | 7822681 | 1996-12-11 01:01:09 +0000 | [diff] [blame] | 19 | 'test_nis', |
Barry Warsaw | ebfa2c4 | 1996-12-11 16:52:56 +0000 | [diff] [blame] | 20 | 'test_pwd', |
Barry Warsaw | 8bc74ce | 1996-12-11 21:41:42 +0000 | [diff] [blame] | 21 | 'test_rgbimg', |
Barry Warsaw | 792c94a | 1996-12-11 23:58:46 +0000 | [diff] [blame^] | 22 | 'test_select', |
Barry Warsaw | 272c00b | 1996-12-10 19:51:10 +0000 | [diff] [blame] | 23 | ] |
Barry Warsaw | 2e644a0 | 1996-12-10 23:10:39 +0000 | [diff] [blame] | 24 | |
| 25 | if __name__ == '__main__': |
| 26 | # low-overhead testing, for cases where autotest.py harness |
| 27 | # doesn't even work! |
| 28 | import sys |
| 29 | from test_support import * |
| 30 | |
| 31 | for t in tests: |
| 32 | print t |
| 33 | unload(t) |
| 34 | try: |
| 35 | __import__(t, globals(), locals()) |
| 36 | except ImportError, msg: |
| 37 | ## sys.stderr.write('%s. Uninstalled optional module?\n' % msg) |
| 38 | pass |
| 39 | |
| 40 | print 'Passed all tests.' |