Added wrapper to run wine/wine64.

This commit is contained in:
Joachim Bauch
2016-09-20 00:14:56 +02:00
parent 6c2c3e2fee
commit 097403a8ad
3 changed files with 17 additions and 10 deletions
+1 -1
View File
@@ -85,5 +85,5 @@ clean:
$(RM) -rf LoadDll.exe $(TEST_DLLS) $(LOADDLL_OBJ) $(DLL_OBJ)
test: all
./TestSuite.exe
./runwine.sh $(PLATFORM) TestSuite.exe
./runtests.sh $(PLATFORM) "$(TEST_DLLS)"
+1 -9
View File
@@ -1,13 +1,5 @@
#!/bin/bash
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
@@ -15,7 +7,7 @@ for filename in "${TEST_DLLS[@]}"
do
:
echo "Testing $filename"
${WINE} ./LoadDll.exe $filename
./runwine.sh "${PLATFORM}" ./LoadDll.exe $filename
if [ "$?" != "0" ]; then
exit 1
fi
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
set -eu
PLATFORM=$1
shift
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/
exec ${WINE} $@