8000 Added wrapper to run wine/wine64. · fancycode/MemoryModule@097403a · GitHub
[go: up one dir, main page]

Skip to content

Commit 097403a

Browse files
committed
Added wrapper to run wine/wine64.
1 parent 6c2c3e2 commit 097403a

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

tests/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ clean:
8585
$(RM) -rf LoadDll.exe $(TEST_DLLS) $(LOADDLL_OBJ) $(DLL_OBJ)
8686

8787
test: all
88-
./TestSuite.exe
88+
./runwine.sh $(PLATFORM) TestSuite.exe
8989
./runtests.sh $(PLATFORM) "$(TEST_DLLS)"

tests/runtests.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
#!/bin/bash
22
PLATFORM=$1
3-
if [ "${PLATFORM}" = "x86_64" ]; then
4-
export WINEPREFIX=${HOME}/.wine64/
5-
WINE=wine64
6-
else
7-
export WINEPREFIX=${HOME}/.wine/
8-
WINE=wine
9-
fi
10-
export WINEPATH=/usr/lib/gcc/${PLATFORM}-w64-mingw32/4.6/
113

124
read -a TEST_DLLS <<< $2
135

146
for filename in "${TEST_DLLS[@]}"
157
do
168
:
179
echo "Testing $filename"
18-
${WINE} ./LoadDll.exe $filename
10+
./runwine.sh "${PLATFORM}" ./LoadDll.exe $filename
1911
if [ "$?" != "0" ]; then
2012
exit 1
2113
fi

tests/runwine.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -eu
3+
PLATFORM=$1
4+
shift
5+
6+
if [ "${PLATFORM}" = "x86_64" ]; then
7+
export WINEPREFIX=${HOME}/.wine64/
8+
WINE=wine64
9+
else
10+
export WINEPREFIX=${HOME}/.wine/
11+
WINE=wine
12+
fi
13+
export WINEPATH=/usr/lib/gcc/${PLATFORM}-w64-mingw32/4.6/
14+
15+
exec ${WINE} $@

0 commit comments

Comments
 (0)
0