Skip to content

runtests: support running tests under wine or qemu #16785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Mar 21, 2025

To run curl, tests and servers via wine:

export CURL_TEST_EXE_RUNNER=wine

runtests prefixes commands with the specified runner. For systems where
this isn't automatic or supported, e.g. macOS.

To run curl, tests and servers via `wine`:
```shell
export CURL_TEST_EXE_RUNNER=wine
```
@vszakats vszakats added the tests label Mar 21, 2025
@vszakats vszakats changed the title runtests: add basic support running tests under wine or qemu runtests: support running tests under wine or qemu Mar 21, 2025
@dfandrich
Copy link
Contributor

I've found this exact technique useful in other projects and used it to run them under valgrind and qemu as well (which isn't needed here). In CI, another approach would be to register wine as a binfmt to run exes automatically, which can be done on Ubuntu with update-binfmts if it doesn't happen automatically.

@testclutch

This comment was marked as outdated.

@vszakats vszakats closed this in 72b163c Mar 23, 2025
@vszakats vszakats deleted the runtests-wine branch March 23, 2025 19:29
vszakats added a commit that referenced this pull request Mar 29, 2025
Respect `CURL_TEST_EXE_RUNNER` env in server verifications using
the in-tree curl, in `tests/servers.pm`.

Follow-up to 72b163c #16785
Closes #16863
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants