]> granicus.if.org Git - python/commitdiff
Final fix for #1403
authorChristian Heimes <christian@cheimes.de>
Wed, 21 Nov 2007 02:51:50 +0000 (02:51 +0000)
committerChristian Heimes <christian@cheimes.de>
Wed, 21 Nov 2007 02:51:50 +0000 (02:51 +0000)
> 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.

Makefile.pre.in

index 2277a22cbdd916f35cadb9abb542ecfec6acbfd6..a5afe335a0ec42f0ab8fc3a636de1b775edee114 100644 (file)
@@ -613,13 +613,15 @@ $(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)
                $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
 
 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