1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-01-27 00:18:12 +03:00

tests: add support for wine/qemu

To run test program via `wine`:
```shell
export LIBSSH2_TEST_EXE_RUNNER=wine
```

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

Closes #1562
This commit is contained in:
Viktor Szakats
2025-03-22 09:57:04 +01:00
parent 6746b78970
commit 5930dc3c71
2 changed files with 3 additions and 3 deletions

View File

@@ -19,13 +19,13 @@ echo "${count}..${total}"
while read -r test; do
if [[ "${test}" = *'mac-'* ]]; then
if FIXTURE_TEST_MAC="${test}" "${testbin}"; then
if FIXTURE_TEST_MAC="${test}" ${LIBSSH2_TEST_EXE_RUNNER:-} "${testbin}"; then
res='ok'
else
res='not ok'
fi
else
if FIXTURE_TEST_CRYPT="${test}" "${testbin}"; then
if FIXTURE_TEST_CRYPT="${test}" ${LIBSSH2_TEST_EXE_RUNNER:-} "${testbin}"; then
res='ok'
else
res='not ok'

View File

@@ -146,7 +146,7 @@ echo "${count}..${total}"
export OPENSSH_NO_DOCKER=1
for test in ${tests}; do
if "${test}"; then
if ${LIBSSH2_TEST_EXE_RUNNER:-} "${test}"; then
res='ok'
else
testerr=$?