Skip to content

Commit 9c91141

Browse files
authored
gh-109566: Remove make testall (#110122)
Remove "make testall" target: use "make buildbottest" instead.
1 parent 6351842 commit 9c91141

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

Makefile.pre.in

+4-18
Original file line numberDiff line numberDiff line change
@@ -1853,21 +1853,6 @@ cleantest: all
18531853
test: all
18541854
$(TESTRUNNER) --fast-ci --timeout=$(TESTTIMEOUT) $(TESTOPTS)
18551855

1856-
# Run the full test suite twice - once without .pyc files, and once with.
1857-
# In the past, we've had problems where bugs in the marshalling or
1858-
# elsewhere caused bytecode read from .pyc files to behave differently
1859-
# than bytecode generated directly from a .py source file. Sometimes
1860-
# the bytecode read from a .pyc file had the bug, sometimes the directly
1861-
# generated bytecode. This is sometimes a very shy bug needing a lot of
1862-
# sample data.
1863-
.PHONY: testall
1864-
testall: all
1865-
-find $(srcdir)/Lib -name '*.py[co]' -exec rm -f {} ';' || true
1866-
$(TESTPYTHON) -E $(srcdir)/Lib/compileall.py
1867-
-find $(srcdir)/Lib -name '*.py[co]' -exec rm -f {} ';' || true
1868-
$(TESTRUNNER) --slow-ci --timeout=$(TESTTIMEOUT) $(TESTOPTS)
1869-
$(TESTRUNNER) --slow-ci --timeout=$(TESTTIMEOUT) $(TESTOPTS)
1870-
18711856
# Run the test suite for both architectures in a Universal build on OSX.
18721857
# Must be run on an Intel box.
18731858
.PHONY: testuniversal
@@ -1880,16 +1865,17 @@ testuniversal: all
18801865
$(RUNSHARED) /usr/libexec/oah/translate \
18811866
./$(BUILDPYTHON) -E -m test -j 0 -u all $(TESTOPTS)
18821867

1883-
# Like testall, but with only one pass and without multiple processes.
1884-
# Run an optional script to include information about the build environment.
1868+
# Like test, but using --slow-ci which enables all test resources and use
1869+
# longer timeout. Run an optional pybuildbot.identify script to include
1870+
# information about the build environment.
18851871
.PHONY: buildbottest
18861872
buildbottest: all
18871873
-@if which pybuildbot.identify >/dev/null 2>&1; then \
18881874
pybuildbot.identify "CC='$(CC)'" "CXX='$(CXX)'"; \
18891875
fi
18901876
$(TESTRUNNER) --slow-ci --timeout=$(TESTTIMEOUT) $(TESTOPTS)
18911877

1892-
# Like testall, but run Python tests with HOSTRUNNER directly.
1878+
# Like buildbottest, but run Python tests with HOSTRUNNER directly.
18931879
.PHONY: hostrunnertest
18941880
hostrunnertest: all
18951881
$(RUNSHARED) $(HOSTRUNNER) ./$(BUILDPYTHON) -m test --slow-ci --timeout=$(TESTTIMEOUT) $(TESTOPTS)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Remove ``make testall`` target: use ``make buildbottest`` instead. Patch by
2+
Victor Stinner.

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ is printed about a failed test or a traceback or core dump is produced,
177177
something is wrong.
178178

179179
By default, tests are prevented from overusing resources like disk space and
180-
memory. To enable these tests, run ``make testall``.
180+
memory. To enable these tests, run ``make buildbottest``.
181181

182182
If any tests fail, you can re-run the failing test(s) in verbose mode. For
183183
example, if ``test_os`` and ``test_gdb`` failed, you can run::

0 commit comments

Comments
 (0)