summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-21 02:51:50 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-11-21 02:51:50 (GMT)
commit905a904723abadc627be60bf944e2ca76329b06e (patch)
treeb0d86d0e7e58e280355c86b3cd12e110ed266140
parent81c951c6f28ccd2af01a7bb764a424731dcf4398 (diff)
downloadcpython-905a904723abadc627be60bf944e2ca76329b06e.zip
cpython-905a904723abadc627be60bf944e2ca76329b06e.tar.gz
cpython-905a904723abadc627be60bf944e2ca76329b06e.tar.bz2
Final fix for #1403
> The Windows installer and some Linux distros are using compileall to compile all py files in the Lib/ directory. However no test exists to check if all py files can be compiled. I figured out that make testall is the easiest way to test compileall. For py3k unit tests do some extra checks with -bb.
-rw-r--r--Makefile.pre.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 2277a22..a5afe33 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -613,7 +613,7 @@ $(LIBRARY_OBJS) $(MODOBJS) Modules/python.o: $(PYTHON_HEADERS)
TESTOPTS= -l $(EXTRATESTOPTS)
TESTPROG= $(srcdir)/Lib/test/regrtest.py
-TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -E -tt
+TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -E -tt -bb
test: all platform
-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
-$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
@@ -621,6 +621,8 @@ test: all platform
testall: all platform
-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
+ $(TESTPYTHON) Lib/compileall.py
+ -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
-$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall
$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall