test(videoout): make SDL video driver configurable #3810

Merged
MiniRML merged 4 commits from upstream-pr/3810 into main 2026-10-11 22:05:41 +00:00
MiniRML commented 2026-10-11 16:57:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MiniRML on 2026-10-11T16:57:59Z.


What

The VideoOut flip tests hardcode SDL_VIDEODRIVER=offscreen. On this Windows 11 machine, that makes lifetime, reopen, controls, and overlay return the skip code instead of exercising their assertions.

Add the CMake cache string ANYPS5_VIDEO_OUT_TEST_DRIVER, defaulting to offscreen, and use it for the five flip tests. Configuring with -DANYPS5_VIDEO_OUT_TEST_DRIVER=windows lets those tests run with SDL's Windows backend. The existing default, timeouts, skip code, resource lock, and Windows library path setup are preserved. Only the test configuration changes; the diff is one CMake file, four additions and one deletion.

Tested

Windows 11, MinGW-w64 GCC 15.2.0, CMake 4.3.1, Ninja, Release, BUILD_TESTING=ON. Tested commit 7a82dd4879734daf0e8b553d089439a07f3b46c9, incorporating upstream a11c8f7f70a0ed4e71504a89de69e8cdae687817.

  • Full build of all and libs passed.
  • With ANYPS5_VIDEO_OUT_TEST_DRIVER=offscreen: one flip test passed and four skipped (3.25 seconds).
  • With ANYPS5_VIDEO_OUT_TEST_DRIVER=windows: all five flip tests passed (6.69 seconds). Generated CTest properties confirmed the driver setting, 30-second timeout, and skip code 77 for every mode.
  • Full CTest run exercised 836 tests. After disabling Smart App Control and rerunning the 29 failures, the combined result was 830 passed, one skipped, and five remaining failures. The skip was guest_video_out_wqhd_detection_no_vulkan.
  • Four remaining failures reproduced on an unchanged checkout of upstream a11c8f7f: guest_kernel_sys, windows_exceptions, guest_filesystem, and agc_driver_emulated_color_compare. They are outside the five test environments changed by this PR. The graphics test reports unsupported sRGB image sampling on an NVIDIA GeForce RTX 5080 Laptop GPU.
  • guest_needed_modules remained blocked by Microsoft Defender (WinError 225). Its generated temporary executable was quarantined; Defender was kept enabled. This test has not been validated successfully in this run.
  • Conventions and whitespace checks passed. Linux runtime testing and PS5 hardware testing were not performed.

To reproduce the Windows flip test configuration:

cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_VIDEO_OUT_TEST_DRIVER=windows
cmake --build build --target all libs
ctest --test-dir build -R "^video_out_flip_" --output-on-failure

Checklist

  • Based on current main; no other open PR implements this driver option
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt (no code comments added)
  • Unimplemented paths and silent stubs are unchanged
  • No notes, investigation .md files, images, or logs added to the repository
  • New third-party code is a submodule built from source (no third-party code added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes (Codex)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4820742151 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3810). Originally posted by [MiniRML](https://github.com/MiniRML) on 2026-10-11T16:57:59Z. --- ### What The VideoOut flip tests hardcode `SDL_VIDEODRIVER=offscreen`. On this Windows 11 machine, that makes lifetime, reopen, controls, and overlay return the skip code instead of exercising their assertions. Add the CMake cache string `ANYPS5_VIDEO_OUT_TEST_DRIVER`, defaulting to `offscreen`, and use it for the five flip tests. Configuring with `-DANYPS5_VIDEO_OUT_TEST_DRIVER=windows` lets those tests run with SDL's Windows backend. The existing default, timeouts, skip code, resource lock, and Windows library path setup are preserved. Only the test configuration changes; the diff is one CMake file, four additions and one deletion. ### Tested Windows 11, MinGW-w64 GCC 15.2.0, CMake 4.3.1, Ninja, Release, `BUILD_TESTING=ON`. Tested commit `7a82dd4879734daf0e8b553d089439a07f3b46c9`, incorporating upstream `a11c8f7f70a0ed4e71504a89de69e8cdae687817`. - Full build of `all` and `libs` passed. - With `ANYPS5_VIDEO_OUT_TEST_DRIVER=offscreen`: one flip test passed and four skipped (3.25 seconds). - With `ANYPS5_VIDEO_OUT_TEST_DRIVER=windows`: all five flip tests passed (6.69 seconds). Generated CTest properties confirmed the driver setting, 30-second timeout, and skip code 77 for every mode. - Full CTest run exercised 836 tests. After disabling Smart App Control and rerunning the 29 failures, the combined result was 830 passed, one skipped, and five remaining failures. The skip was `guest_video_out_wqhd_detection_no_vulkan`. - Four remaining failures reproduced on an unchanged checkout of upstream `a11c8f7f`: `guest_kernel_sys`, `windows_exceptions`, `guest_filesystem`, and `agc_driver_emulated_color_compare`. They are outside the five test environments changed by this PR. The graphics test reports unsupported sRGB image sampling on an NVIDIA GeForce RTX 5080 Laptop GPU. - `guest_needed_modules` remained blocked by Microsoft Defender (`WinError 225`). Its generated temporary executable was quarantined; Defender was kept enabled. This test has not been validated successfully in this run. - Conventions and whitespace checks passed. Linux runtime testing and PS5 hardware testing were not performed. To reproduce the Windows flip test configuration: ```powershell cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_VIDEO_OUT_TEST_DRIVER=windows cmake --build build --target all libs ctest --test-dir build -R "^video_out_flip_" --output-on-failure ``` ### Checklist - [x] Based on current `main`; no other open PR implements this driver option - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt (no code comments added) - [x] Unimplemented paths and silent stubs are unchanged - [x] No notes, investigation `.md` files, images, or logs added to the repository - [x] New third-party code is a submodule built from source (no third-party code added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes (Codex)
github-actions[bot] commented 2026-10-11 19:30:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T19:30:17Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#3886 core/libs/prx/libSceVideoOut/CMakeLists.txt L35
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6112848769 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3810#issuecomment-6112848769). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T19:30:17Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #3886 | `core/libs/prx/libSceVideoOut/CMakeLists.txt` [L35](https://github.com/boykopovar/AnyPS5/blob/1be2ca2028f1caf4640a765941bfca2fae7d53f2/core/libs/prx/libSceVideoOut/CMakeLists.txt#L35) | | |
adriadam10 commented 2026-10-11 22:05:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T22:05:38Z.


Checked the diff and the generated CTest properties: with the default offscreen all five video_out_flip_* tests keep SDL_VIDEODRIVER=offscreen, timeout 30, skip code 77 and the videoout_app0 lock, so default behaviour is unchanged; the new cache string only overrides the driver. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114354358 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3810#issuecomment-6114354358). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T22:05:38Z. --- Checked the diff and the generated CTest properties: with the default `offscreen` all five `video_out_flip_*` tests keep `SDL_VIDEODRIVER=offscreen`, timeout 30, skip code 77 and the `videoout_app0` lock, so default behaviour is unchanged; the new cache string only overrides the driver. Merging.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!3810
No description provided.