From d9dc0b02709ae1fff65e7d0183a7d8fe17965272 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Sun, 1 Mar 2015 01:16:33 +0100 Subject: [PATCH] Setup additional environment flags for wine. --- tests/runtests.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/runtests.sh b/tests/runtests.sh index f998f13..57d70c6 100755 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -1,9 +1,13 @@ #!/bin/bash -if [ "$1" = "x86_64" ]; then +PLATFORM=$1 +if [ "${PLATFORM}" = "x86_64" ]; then export WINEPREFIX=${HOME}/.wine64/ + WINE=wine64 else export WINEPREFIX=${HOME}/.wine/ + WINE=wine fi +export WINEPATH=/usr/lib/gcc/${PLATFORM}-w64-mingw32/4.6/ read -a TEST_DLLS <<< $2 @@ -11,7 +15,7 @@ for filename in "${TEST_DLLS[@]}" do : echo "Testing $filename" - ./LoadDll.exe $filename + ${WINE} ./LoadDll.exe $filename if [ "$?" != "0" ]; then exit 1 fi