]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109566: Remove make testall (#110122)
authorVictor Stinner <vstinner@python.org>
Fri, 29 Sep 2023 19:36:03 +0000 (21:36 +0200)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 19:36:03 +0000 (21:36 +0200)
Remove "make testall" target: use "make buildbottest" instead.

Makefile.pre.in
Misc/NEWS.d/next/Build/2023-09-29-21-01-48.gh-issue-109566._enldb.rst [new file with mode: 0644]
README.rst

index d62b4d24b3e1839a6308afab7043c89de4c7290f..fa5b9e6654c26c4a8be2b01623640cd9cff62f76 100644 (file)
@@ -1853,21 +1853,6 @@ cleantest: all
 test: all
        $(TESTRUNNER) --fast-ci --timeout=$(TESTTIMEOUT) $(TESTOPTS)
 
-# Run the full test suite twice - once without .pyc files, and once with.
-# In the past, we've had problems where bugs in the marshalling or
-# elsewhere caused bytecode read from .pyc files to behave differently
-# than bytecode generated directly from a .py source file.  Sometimes
-# the bytecode read from a .pyc file had the bug, sometimes the directly
-# generated bytecode.  This is sometimes a very shy bug needing a lot of
-# sample data.
-.PHONY: testall
-testall: all
-       -find $(srcdir)/Lib -name '*.py[co]' -exec rm -f {} ';' || true
-       $(TESTPYTHON) -E $(srcdir)/Lib/compileall.py
-       -find $(srcdir)/Lib -name '*.py[co]' -exec rm -f {} ';' || true
-       $(TESTRUNNER) --slow-ci --timeout=$(TESTTIMEOUT) $(TESTOPTS)
-       $(TESTRUNNER) --slow-ci --timeout=$(TESTTIMEOUT) $(TESTOPTS)
-
 # Run the test suite for both architectures in a Universal build on OSX.
 # Must be run on an Intel box.
 .PHONY: testuniversal
@@ -1880,8 +1865,9 @@ testuniversal: all
        $(RUNSHARED) /usr/libexec/oah/translate \
                ./$(BUILDPYTHON) -E -m test -j 0 -u all $(TESTOPTS)
 
-# Like testall, but with only one pass and without multiple processes.
-# Run an optional script to include information about the build environment.
+# Like test, but using --slow-ci which enables all test resources and use
+# longer timeout. Run an optional pybuildbot.identify script to include
+# information about the build environment.
 .PHONY: buildbottest
 buildbottest: all
        -@if which pybuildbot.identify >/dev/null 2>&1; then \
@@ -1889,7 +1875,7 @@ buildbottest: all
        fi
        $(TESTRUNNER) --slow-ci --timeout=$(TESTTIMEOUT) $(TESTOPTS)
 
-# Like testall, but run Python tests with HOSTRUNNER directly.
+# Like buildbottest, but run Python tests with HOSTRUNNER directly.
 .PHONY: hostrunnertest
 hostrunnertest: all
        $(RUNSHARED) $(HOSTRUNNER) ./$(BUILDPYTHON) -m test --slow-ci --timeout=$(TESTTIMEOUT) $(TESTOPTS)
diff --git a/Misc/NEWS.d/next/Build/2023-09-29-21-01-48.gh-issue-109566._enldb.rst b/Misc/NEWS.d/next/Build/2023-09-29-21-01-48.gh-issue-109566._enldb.rst
new file mode 100644 (file)
index 0000000..1141a47
--- /dev/null
@@ -0,0 +1,2 @@
+Remove ``make testall`` target: use ``make buildbottest`` instead. Patch by
+Victor Stinner.
index 208bf8cec444a370e763abda39400bac07aee9f8..921da30a920168b4b0bbde1ecfd16f92c47955db 100644 (file)
@@ -177,7 +177,7 @@ is printed about a failed test or a traceback or core dump is produced,
 something is wrong.
 
 By default, tests are prevented from overusing resources like disk space and
-memory.  To enable these tests, run ``make testall``.
+memory.  To enable these tests, run ``make buildbottest``.
 
 If any tests fail, you can re-run the failing test(s) in verbose mode.  For
 example, if ``test_os`` and ``test_gdb`` failed, you can run::