Use the configured emulator for probe CTest scripts #29

Open
github-bot wants to merge 1 commit from github-bot/gh-29 into main AGit
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-26 04:33 UTC · original
RavenCurseBurg:test/probe-cross-emulator → main · +11 −6 · 3 files · 1 commits · open

In a cross build, CTest launches gtavi_tests through the target’s CROSSCOMPILING_EMULATOR. The Unicode and mount tests launch gtavi_probe from separate CMake scripts. Those scripts called the foreign executable directly, so both tests failed even though the toolchain had a working emulator.

Pass the probe target’s emulator and its argument list to both scripts, and use it for all four probe invocations when cross-compiling.

I cross-compiled Release binaries for Linux AArch64 on an x86-64 Ubuntu runner and ran them with QEMU. The parent passed 1 of 3 CTests and made zero probe calls through the configured launcher. This branch passed all 3 and made four probe calls through it. The launcher path and one argument each contained spaces. The native Windows Release build also passed all 3 CTests. AArch64 before/after verification

AI-assisted with Codex + GPT-6.2 Astra (xhigh).

**@⁠RavenCurseBurg** on GitHub · 2026-11-26 04:33 UTC · [original](https://github.com/JamesCicada/GTAVI-Recomp/pull/29) `RavenCurseBurg:test/probe-cross-emulator` → `main` · +11 −6 · 3 files · 1 commits · open In a cross build, CTest launches `gtavi_tests` through the target’s `CROSSCOMPILING_EMULATOR`. The Unicode and mount tests launch `gtavi_probe` from separate CMake scripts. Those scripts called the foreign executable directly, so both tests failed even though the toolchain had a working emulator. Pass the probe target’s emulator and its argument list to both scripts, and use it for all four probe invocations when cross-compiling. I cross-compiled Release binaries for Linux AArch64 on an x86-64 Ubuntu runner and ran them with QEMU. The parent passed 1 of 3 CTests and made zero probe calls through the configured launcher. This branch passed all 3 and made four probe calls through it. The launcher path and one argument each contained spaces. The native Windows Release build also passed all 3 CTests. [AArch64 before/after verification](https://github.com/RavenCurseBurg/GTAVI-Recomp/actions/runs/45755760437/job/139693877980) AI-assisted with Codex + GPT-6.2 Astra (xhigh).
AI-assisted with Codex + GPT-6.2 Astra (xhigh).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:44:44 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/29/head:github-bot/gh-29'
git switch 'github-bot/gh-29'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-29'
git switch 'github-bot/gh-29'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-29'
git switch 'github-bot/gh-29'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-29'
git switch 'main'
git merge --squash 'github-bot/gh-29'
git switch 'main'
git merge --ff-only 'github-bot/gh-29'
git switch 'main'
git merge 'github-bot/gh-29'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.