source: trunk/essentials/dev-lang/python/Tools/compiler/regrtest.py@ 3506

Last change on this file since 3506 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 2.1 KB
Line 
1"""Run the Python regression test using the compiler
2
3This test runs the standard Python test suite using bytecode generated
4by this compiler instead of by the builtin compiler.
5
6The regression test is run with the interpreter in verbose mode so
7that import problems can be observed easily.
8"""
9
10from compiler import compileFile
11
12import os
13import sys
14import test
15import tempfile
16
17def copy_test_suite():
18 dest = tempfile.mkdtemp()
19 os.system("cp -r %s/* %s" % (test.__path__[0], dest))
20 print "Creating copy of test suite in", dest
21 return dest
22
23def copy_library():
24 dest = tempfile.mkdtemp()
25 libdir = os.path.split(test.__path__[0])[0]
26 print "Found standard library in", libdir
27 print "Creating copy of standard library in", dest
28 os.system("cp -r %s/* %s" % (libdir, dest))
29 return dest