docs: explain relinker Python test discovery #1945
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1945"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by TacoCat055 on 2026-10-09T01:35:51Z.
What
Explain that Python must be found during CMake configuration for Python tests to be registered. Add guidance for checking test discovery with
ctest -N, usinginput_magicas an example, and settingPython3_EXECUTABLEwhen automatic discovery fails.Tested
On Windows with MinGW GCC 15.2 and Python 3.13:
Checklist
main; checked open PRs for duplicate Python test discovery guidanceImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T01:43:55Z.
Review: APPROVED
Reviewed the full diff and the related CMake registration logic. The documentation accurately explains that the Python interpreter is discovered at configure time,
ctest -Nconfirms registration, andPython3_EXECUTABLEcan be supplied explicitly. The example test exists in the relinker-only test list. No blocking issue found. Upstream currently has no check results for this fork head (action_requiredstill needs maintainer approval); the reported local validation is useful but does not replace upstream CI.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T01:47:18Z.
I reviewed and approved the current head. Upstream still shows no checks for this fork PR; the Conventions workflow appears to need maintainer approval under CONTRIBUTING. Could an authorized maintainer approve its queued workflow run so the upstream PR gets its required check result?
Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-09T03:01:26Z.
Review: COMMENTED
Verified on Linux — every claim in the addition matches this tree.
core/relinker/CMakeLists.txt:191-192isfind_package(Python3 QUIET COMPONENTS Interpreter)followed byif(Python3_Interpreter_FOUND), and theadd_testentries inside use${Python3_EXECUTABLE}. So "Python must be found during CMake configuration for Python tests to be registered", andPython3_EXECUTABLEas the override, are both accurate.ctest --test-dir build -N | grep input_magic→ one hit, so a reader who follows the instruction finds what the sentence promises.build-relinkeris what the lines immediately above configure (BUILD.md:8-10).python3 tools/check_conventions.py --base upstream/main→ "All conventions checks passed";python3 tools/check_test_registration.py build→ "439 test executable(s), 3 built and not run as recorded, none new".Not verified: the Windows numbers in the body (36 tests in a relinker-only configuration, 35 passing / 1 failing) — that count is configuration-specific and I did not reproduce the relinker-only configuration here.
Written with AI assistance.