Skip to content

Commit 2f1d137

Browse files
docs: describe testing an installed build
1 parent dce8cdf commit 2f1d137

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎testing/run-write-tests.rst‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,18 @@ using several Python processes so as to speed up things:
160160
161161
.\python.bat -m test -j0
162162
163+
To check that the test suite is included in an installed build, install Python
164+
to a fresh prefix and run the test suite with that installation. For example,
165+
on Unix::
166+
167+
./configure --prefix=/tmp/cpython-install
168+
make -j3
169+
make install
170+
/tmp/cpython-install/bin/python3 -m test -j3
171+
172+
Using the installed interpreter is important: running ``./python -m test`` from
173+
the checkout tests the build tree, not the installed files.
174+
163175
.. _strenuous_testing:
164176

165177
Finally, if you want to run tests under a more strenuous set of settings, you

0 commit comments

Comments
 (0)