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:
@@ -19,13 +19,13 @@ echo "${count}..${total}"
|
|||||||
|
|
||||||
while read -r test; do
|
while read -r test; do
|
||||||
if [[ "${test}" = *'mac-'* ]]; then
|
if [[ "${test}" = *'mac-'* ]]; then
|
||||||
if FIXTURE_TEST_MAC="${test}" "${testbin}"; then
|
if FIXTURE_TEST_MAC="${test}" ${LIBSSH2_TEST_EXE_RUNNER:-} "${testbin}"; then
|
||||||
res='ok'
|
res='ok'
|
||||||
else
|
else
|
||||||
res='not ok'
|
res='not ok'
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if FIXTURE_TEST_CRYPT="${test}" "${testbin}"; then
|
if FIXTURE_TEST_CRYPT="${test}" ${LIBSSH2_TEST_EXE_RUNNER:-} "${testbin}"; then
|
||||||
res='ok'
|
res='ok'
|
||||||
else
|
else
|
||||||
res='not ok'
|
res='not ok'
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ echo "${count}..${total}"
|
|||||||
export OPENSSH_NO_DOCKER=1
|
export OPENSSH_NO_DOCKER=1
|
||||||
|
|
||||||
for test in ${tests}; do
|
for test in ${tests}; do
|
||||||
if "${test}"; then
|
if ${LIBSSH2_TEST_EXE_RUNNER:-} "${test}"; then
|
||||||
res='ok'
|
res='ok'
|
||||||
else
|
else
|
||||||
testerr=$?
|
testerr=$?
|
||||||
|
|||||||
Reference in New Issue
Block a user