cpython/Lib/test/testall.py

54 lines
1.0 KiB
Python
Raw Normal View History

# This file now contains only the list of separate regression tests.
# All of the testing harness is now contained in autotest.py.
1990-12-26 11:40:07 -04:00
tests = ['test_grammar',
'test_opcodes',
'test_operations',
'test_builtin',
'test_exceptions',
'test_types',
'test_math',
'test_time',
'test_array',
'test_strop',
'test_md5',
'test_cmath',
'test_crypt',
'test_dbm',
'test_new',
1996-12-10 21:01:09 -04:00
'test_nis',
1996-12-11 12:52:56 -04:00
'test_pwd',
1996-12-11 17:41:42 -04:00
'test_rgbimg',
'test_select',
1996-12-12 15:03:11 -04:00
'test_strftime',
1996-12-12 19:34:06 -04:00
'test_struct',
1996-12-16 16:20:33 -04:00
'test_errno',
1996-12-16 16:34:43 -04:00
'test_dl',
'test_thread',
1996-12-16 20:00:17 -04:00
'test_xdr',
'test_fcntl',
'test_gdbm',
'test_grp',
1996-12-18 15:56:22 -04:00
'test_operator',
'test_imageop',
'test_imgfile',
'test_regex',
]
if __name__ == '__main__':
# low-overhead testing, for cases where autotest.py harness
# doesn't even work!
import sys
from test_support import *
for t in tests:
print t
unload(t)
try:
__import__(t, globals(), locals())
except ImportError, msg:
## sys.stderr.write('%s. Uninstalled optional module?\n' % msg)
pass
print 'Passed all tests.'