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', |
Guido van Rossum | 483705c | 1996-12-12 19:03:11 +0000 | [diff] [blame] | 23 | 'test_strftime', |
Barry Warsaw | 07a0eec | 1996-12-12 23:34:06 +0000 | [diff] [blame] | 24 | 'test_struct', |
Roger E. Masse | 8ba76d3 | 1996-12-16 20:20:33 +0000 | [diff] [blame] | 25 | 'test_errno', |
Roger E. Masse | e00d4da | 1996-12-16 20:34:43 +0000 | [diff] [blame] | 26 | 'test_dl', |
Barry Warsaw | af0a1a6 | 1996-12-16 23:42:35 +0000 | [diff] [blame] | 27 | 'test_thread', |
Barry Warsaw | 237efc5 | 1996-12-17 00:00:17 +0000 | [diff] [blame] | 28 | 'test_xdr', |
Roger E. Masse | fb01d4b | 1996-12-17 17:41:09 +0000 | [diff] [blame] | 29 | 'test_fcntl', |
Roger E. Masse | 62a017c | 1996-12-17 19:54:27 +0000 | [diff] [blame^] | 30 | 'test_gdbm', |
Barry Warsaw | 272c00b | 1996-12-10 19:51:10 +0000 | [diff] [blame] | 31 | ] |
Barry Warsaw | 2e644a0 | 1996-12-10 23:10:39 +0000 | [diff] [blame] | 32 | |
| 33 | if __name__ == '__main__': |
| 34 | # low-overhead testing, for cases where autotest.py harness |
| 35 | # doesn't even work! |
| 36 | import sys |
| 37 | from test_support import * |
| 38 | |
| 39 | for t in tests: |
| 40 | print t |
| 41 | unload(t) |
| 42 | try: |
| 43 | __import__(t, globals(), locals()) |
| 44 | except ImportError, msg: |
| 45 | ## sys.stderr.write('%s. Uninstalled optional module?\n' % msg) |
| 46 | pass |
| 47 | |
| 48 | print 'Passed all tests.' |