Test the probe’s native host report and unsupported-host exit status #36

Open
github-bot wants to merge 2 commits from github-bot/gh-36 into main AGit
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-26 08:27 UTC · original
RavenCurseBurg:test/native-probe-diagnostics → main · +61 −0 · 3 files · 2 commits · open

The library tests accept any nonempty OS release. These native CLI tests compare the release printed to users with cmd /d /c ver on Windows and uname -r on Linux, and check the complete platform field. A cross-compiled probe is excluded from that comparison because it describes a different environment.

On hosts without a version backend, the test checks the default, help and mount-only exit status. It also checks that a valid translation survives the host warning and that a failed translation still sets the error status when another input succeeds.

Verification

  • Windows x64, MinGW-w64 GCC 15.2, Release with warnings as errors: 4/4 CTests passed. Controlled reports with a wrong release, a wrong platform, and a platform with a matching prefix were rejected. A correct report passed.
  • Cross-build configuration retains the three portable tests. Disabling the probe registers only the core test.
  • All four CTests passed on each of ARM64 Windows, ARM64 Linux and Intel macOS at this revision. The macOS job also rebuilt the older revision and reproduced the incorrect exit status for a successful translation. Three-host run and historical control

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

**@⁠RavenCurseBurg** on GitHub · 2026-11-26 08:27 UTC · [original](https://github.com/JamesCicada/GTAVI-Recomp/pull/36) `RavenCurseBurg:test/native-probe-diagnostics` → `main` · +61 −0 · 3 files · 2 commits · open The library tests accept any nonempty OS release. These native CLI tests compare the release printed to users with `cmd /d /c ver` on Windows and `uname -r` on Linux, and check the complete platform field. A cross-compiled probe is excluded from that comparison because it describes a different environment. On hosts without a version backend, the test checks the default, help and mount-only exit status. It also checks that a valid translation survives the host warning and that a failed translation still sets the error status when another input succeeds. ### Verification - Windows x64, MinGW-w64 GCC 15.2, Release with warnings as errors: 4/4 CTests passed. Controlled reports with a wrong release, a wrong platform, and a platform with a matching prefix were rejected. A correct report passed. - Cross-build configuration retains the three portable tests. Disabling the probe registers only the core test. - All four CTests passed on each of ARM64 Windows, ARM64 Linux and Intel macOS at this revision. The macOS job also rebuilt the older revision and reproduced the incorrect exit status for a successful translation. [Three-host run and historical control](https://github.com/RavenCurseBurg/GTAVI-Recomp/actions/runs/45783300409) AI-assisted with Codex + GPT-6.2 Astra (xhigh).
Compare the reported OS release with the native system on Windows and Linux. On other native hosts, check host-only queries and the results of successful, failed and mixed path translations.

AI-assisted with Codex + GPT-6.2 Astra (xhigh).
Match the complete platform field. Register native report tests separately from portable translation tests so cross builds retain their own emulator configuration.

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:54 +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/36/head:github-bot/gh-36'
git switch 'github-bot/gh-36'

Merge

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