test(tools): register SELF cases independently #14558
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14558"
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 Queuse on 2026-11-01T15:40:26Z.
What
Register each existing SELF unittest case as a separate CTest with the existing 30-second timeout. The aggregate suite exceeds that timeout on Windows even though its individual cases finish within it. Preserve the existing
unwrap_selftest name for one explicitly selected case, and track the test source as a configure dependency so new cases are registered automatically.Tested
Head
69750caed2ef28e48d6bd2455d1737302b03a1b9, refreshed against mainf2d874c1fdccf781c0fa5d86619bb5dd8894b958.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T01:20:37Z.
Review: APPROVED
Windows 11, WinLibs GCC 15.2.0 r7, relinker-only Release configure (
-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON). Head69750caed2merged into upstream/main93dbd0f82a:ctest -N -R '^unwrap_self'lists 80 tests.unittestloads exactly 80 cases fromtest_unwrap_self.py, so every case is registered once.unwrap_selfname carriesUNWRAP_SELF_TEST=<class>.<case>.ctest -R '^unwrap_self' -j8: 80/80 passed in 7.2 s.This follows the existing per-case pattern used for
trace_digest, and nothing later in the rootCMakeLists.txtsetsENVIRONMENTonunwrap_self. WithCMAKE_CONFIGURE_DEPENDSon the test source, cases added by other open PRs (#14534 adds one) are picked up at the next configure.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T04:51:58Z.
Review: COMMENTED
Reviewed — no blocking findings
The CMake change registers each
test_unwrap_self.pycase as its own CTest entry: the first case is attached to the existingunwrap_selftest through an environment variable, and the others are added withadd_test. The Pythonmainreads that variable and runs only the named case. I read the CMake logic and the test'smainchange. The hosted Windows run included only one of the new per-case entries, so most of them did not run hosted.What I ran
69750caed2ef28e48d6bd2455d1737302b03a1b9; basef2d874c1fdccf781c0fa5d86619bb5dd8894b958. 2 files, +22/-1:CMakeLists.txt(per-case registration) andtools/tests/test_unwrap_self.py(environment-selectedmain).mainchange. The baseunwrap_selftest is defined atCMakeLists.txtline 257 at this head, so the first case has a test to attach to.class UnwrapTestand itstest_*methods, lines 94-193 at head).unwrap_self_UnwrapTest_test_phdr_mapping_other_load_bytes_preserves_input_and_output(Test #314). The other per-case entries do not appear in that log.Results
unwrap_self, the others useadd_testmainselects the named caseunittest.main(argv=[...])with the environment valueRead-only check output
Precheck was not run: this session does not run code from PR heads. Hosted:
gh api repos/boykopovar/AnyPS5/commits/69750caed2ef28e48d6bd2455d1737302b03a1b9/check-runs.Negative control
Not run here. A negative control needs a build and running the Python tests, which is not done for code from PR heads in this session.
Findings
Blocking
None.
Non-blocking
Sources
github.com/boykopovar/AnyPS5@69750caed2/CMakeLists.txtmain:github.com/boykopovar/AnyPS5@69750caed2/tools/tests/test_unwrap_self.pygithub.com/boykopovar/AnyPS5@69750caed2/CMakeLists.txt (L257)Not verified
To get this to a good state