@@ -747,14 +747,15 @@ $(LIBRARY_OBJS) $(MODOBJS) Modules/python.o: $(PYTHON_HEADERS)
747747
748748######################################################################
749749
750- # Run a basic set of regression tests.
751- # This excludes some tests that are particularly resource-intensive.
752750TESTOPTS= $(EXTRATESTOPTS)
753- TESTPROG = $(srcdir)/Lib/test/regrtest.py
754- TESTPYTHON = $(RUNSHARED) ./$(BUILDPYTHON) -Wd -E -bb $(TESTPYTHONOPTS)
751+ TESTPYTHON = $(RUNSHARED) ./$(BUILDPYTHON) $(TESTPYTHONOPTS)
752+ TESTRUNNER = $(TESTPYTHON) $(srcdir)/Tools/scripts/run_tests.py
755753TESTTIMEOUT= 3600
754+
755+ # Run a basic set of regression tests.
756+ # This excludes some tests that are particularly resource-intensive.
756757test: all platform
757- $(TESTPYTHON) $(TESTPROG) -j0 $(TESTOPTS)
758+ $(TESTRUNNER) $(TESTOPTS)
758759
759760# Run the full test suite twice - once without .pyc files, and once with.
760761# In the past, we've had problems where bugs in the marshalling or
@@ -765,10 +766,10 @@ test: all platform
765766# sample data.
766767testall: all platform
767768 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
768- $(TESTPYTHON) $(srcdir)/Lib/compileall.py
769+ $(TESTPYTHON) -E $(srcdir)/Lib/compileall.py
769770 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
770- -$(TESTPYTHON) $(TESTPROG) -j0 -uall $(TESTOPTS)
771- $(TESTPYTHON) $(TESTPROG) -j0 -uall $(TESTOPTS)
771+ -$(TESTRUNNER) -u all $(TESTOPTS)
772+ $(TESTRUNNER) -u all $(TESTOPTS)
772773
773774# Run the test suite for both architectures in a Universal build on OSX.
774775# Must be run on an Intel box.
@@ -777,25 +778,24 @@ testuniversal: all platform
777778 echo "This can only be used on OSX/i386" ;\
778779 exit 1 ;\
779780 fi
780- $(TESTPYTHON) $(TESTPROG) -j0 -uall $(TESTOPTS)
781- $(RUNSHARED) /usr/libexec/oah/translate ./$(BUILDPYTHON) -E $(TESTPROG) -j0 -uall $(TESTOPTS)
781+ $(TESTRUNNER) -u all $(TESTOPTS)
782+ $(RUNSHARED) /usr/libexec/oah/translate \
783+ ./$(BUILDPYTHON) -E -m test -j 0 -u all $(TESTOPTS)
782784
783- # Like testall, but with only one pass.
785+ # Like testall, but with only one pass and without multiple processes .
784786# Run an optional script to include information about the build environment.
785787buildbottest: all platform
786788 -@if which pybuildbot.identify >/dev/null 2>&1; then \
787789 pybuildbot.identify "CC='$(CC)'" "CXX='$(CXX)'"; \
788790 fi
789- $(TESTPYTHON) $(TESTPROG) -uall -rwW --timeout=$(TESTTIMEOUT) $(TESTOPTS)
791+ $(TESTRUNNER) -j 1 -u all -W --timeout=$(TESTTIMEOUT) $(TESTOPTS)
790792
791793QUICKTESTOPTS= $(TESTOPTS) -x test_subprocess test_io test_lib2to3 \
792794 test_multibytecodec test_urllib2_localnet test_itertools \
793795 test_multiprocessing test_mailbox test_socket test_poll \
794- test_select test_zipfile
796+ test_select test_zipfile test_concurrent_futures
795797quicktest: all platform
796- -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
797- -$(TESTPYTHON) $(TESTPROG) -j0 $(QUICKTESTOPTS)
798- $(TESTPYTHON) $(TESTPROG) -j0 $(QUICKTESTOPTS)
798+ $(TESTRUNNER) $(QUICKTESTOPTS)
799799
800800
801801install: altinstall bininstall
0 commit comments