summaryrefslogtreecommitdiffstats
path: root/Lib/test/testall.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1996-12-10 19:51:10 (GMT)
committerBarry Warsaw <barry@python.org>1996-12-10 19:51:10 (GMT)
commit272c00b634d08fe7813a994f8ba78077c6b7094c (patch)
treef8d7ba8f2e58fe75a3f5ccebab1971c53c0e1259 /Lib/test/testall.py
parent0aa9ee65ab66627c2d065d213090aec93e634ee9 (diff)
downloadcpython-272c00b634d08fe7813a994f8ba78077c6b7094c.zip
cpython-272c00b634d08fe7813a994f8ba78077c6b7094c.tar.gz
cpython-272c00b634d08fe7813a994f8ba78077c6b7094c.tar.bz2
New regression testing harness.
(testall.out): obsolete. see individual test output files in the Output directory. (testall.py): now contains only the list of all tests (autotest.py): The new testing harness. Supports -g option to generate output files instead of verifying; -w option to warn about non-tested optional modules; additional command line arguments to generate or test individual tests (useful for generating output file of new tests).
Diffstat (limited to 'Lib/test/testall.py')
-rw-r--r--Lib/test/testall.py42
1 files changed, 18 insertions, 24 deletions
diff --git a/Lib/test/testall.py b/Lib/test/testall.py
index b48accc..a132bfe 100644
--- a/Lib/test/testall.py
+++ b/Lib/test/testall.py
@@ -1,25 +1,19 @@
-# testall.py -- a regression test for the Python interpreter.
-# To run the tests, execute "import testall" in a clean interpreter.
-# It is a good idea to do this whenever you build a new interpreter.
-# Remember to add new tests when new features are added!
+# This file now contains only the list of separate regression tests.
+# All of the testing harness is now contained in autotest.py.
-import sys
-from test_support import *
-
-print 'test_grammar'
-forget('test_grammar')
-import test_grammar
-
-for t in ['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',
- ]:
- print t
- unload(t)
- try:
- __import__(t, globals(), locals())
- except ImportError, msg:
- sys.stderr.write('%s. Uninstalled optional module?\n' % msg)
-
-print 'Passed all tests.'
+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',
+ ]