cpython/Lib/test/libregrtest
Victor Stinner 477ef9015c
[3.12] gh-83434: Sync libregrtest and test_regrtest with the main branch (#117250)
* gh-115122: Add --bisect option to regrtest (#115123)

* test.bisect_cmd now exit with code 0 on success, and code 1 on
  failure. Before, it was the opposite.
* test.bisect_cmd now runs the test worker process with
  -X faulthandler.
* regrtest RunTests: Add create_python_cmd() and bisect_cmd()
  methods.

(cherry picked from commit 1e5719a663)

* gh-115720: Show number of leaks in huntrleaks progress reports (GH-115726)

Instead of showing a dot for each iteration, show:
- '.' for zero (on negative) leaks
- number of leaks for 1-9
- 'X' if there are more leaks

This allows more rapid iteration: when bisecting, I don't need
to wait for the final report to see if the test still leaks.

Also, show the full result if there are any non-zero entries.
This shows negative entries, for the unfortunate cases where
a reference is created and cleaned up in different runs.

Test *failure* is still determined by the existing heuristic.

(cherry picked from commit af5f9d682c)

* gh-83434: Disable XML in regrtest when -R option is used (#117232)

(cherry picked from commit d52bdfb19f)

---------

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2024-03-26 08:04:28 +00:00
..
__init__.py [3.12] gh-110756: Sync regrtest with main branch (#110758) 2023-10-12 22:03:07 +02:00
cmdline.py [3.12] gh-83434: Sync libregrtest and test_regrtest with the main branch (#117250) 2024-03-26 08:04:28 +00:00
filter.py [3.12] gh-110918: Fix side effects of regrtest test_match_tests() (GH-116718) (#116726) 2024-03-13 14:16:23 +00:00
findtests.py [3.12] gh-108303: Move all pydoc related files to test_pydoc (GH-114506) (#115502) 2024-02-15 16:35:56 +03:00
logger.py [3.12] gh-110756: Sync regrtest with main branch (#110758) 2023-10-12 22:03:07 +02:00
main.py [3.12] gh-83434: Sync libregrtest and test_regrtest with the main branch (#117250) 2024-03-26 08:04:28 +00:00
mypy.ini [3.12] gh-109413: libregrtest: enable mypy's --strict-optional check on most files (#112586) (#112602) 2023-12-01 17:13:22 +00:00
pgo.py gh-111929: Fix regrtest --pgo: test_str => test_unicode (#111938) 2023-11-10 09:32:06 +00:00
refleak.py [3.12] gh-83434: Sync libregrtest and test_regrtest with the main branch (#117250) 2024-03-26 08:04:28 +00:00
result.py [3.12] gh-111165: Move test running code from test.support to libregrtest (GH-111166) (GH-111316) 2023-10-25 14:56:27 +03:00
results.py [3.12] gh-83434: Sync libregrtest and test_regrtest with the main branch (#117250) 2024-03-26 08:04:28 +00:00
run_workers.py [3.12] chore: fix typos (#116345) (#116370) 2024-03-05 18:51:17 +00:00
runtests.py [3.12] gh-83434: Sync libregrtest and test_regrtest with the main branch (#117250) 2024-03-26 08:04:28 +00:00
save_env.py [3.12] gh-110756: Sync regrtest with main branch (#110758) 2023-10-12 22:03:07 +02:00
setup.py [3.12] gh-109413: libregrtest: Backport .py-file changes from #112558 (#112605) 2023-12-01 18:54:38 +00:00
single.py [3.12] gh-108927: Fix removing testing modules from sys.modules (GH-108952) (ПР-112711) 2023-12-04 16:17:38 +00:00
testresult.py [3.12] gh-111165: Move test running code from test.support to libregrtest (GH-111166) (GH-111316) 2023-10-25 14:56:27 +03:00
tsan.py [3.12] gh-112536: Add --tsan test for reasonable TSAN execution times. (gh-116601) (#116929) 2024-03-18 10:22:19 +01:00
utils.py [3.12] gh-112536: Add support for thread sanitizer (TSAN) (gh-112648) (#116924) 2024-03-17 16:33:35 +01:00
win_utils.py [3.12] gh-116103: Prevent error in WindowsLoadTracker.__del__ on permission error (GH-116105) (GH-116120) 2024-02-29 14:43:05 +00:00
worker.py [3.12] gh-83434: Sync libregrtest and test_regrtest with the main branch (#117250) 2024-03-26 08:04:28 +00:00