summaryrefslogtreecommitdiff
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-21 02:51:50 +0000
committerChristian Heimes <christian@cheimes.de>2007-11-21 02:51:50 +0000
commit7c8a0fb40dc11a0ac328c5a73da5884b4b68a06b (patch)
tree1c2b05cd4bed562443ff6f5782c10d256728ca5e /Makefile.pre.in
parent7cfdbf5380fc75975cc8f2de48fbd43ab2d6d2ed (diff)
downloadcpython-7c8a0fb40dc11a0ac328c5a73da5884b4b68a06b.tar.gz
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.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 2277a22cbd..a5afe335a0 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