File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 85
85
$(RM ) -rf LoadDll.exe $(TEST_DLLS ) $(LOADDLL_OBJ ) $(DLL_OBJ )
86
86
87
87
test : all
88
- ./TestSuite.exe
88
+ ./runwine.sh $( PLATFORM ) TestSuite.exe
89
89
./runtests.sh $(PLATFORM ) " $( TEST_DLLS) "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
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/
11
3
12
4
read -a TEST_DLLS <<< $2
13
5
14
6
for filename in " ${TEST_DLLS[@]} "
15
7
do
16
8
:
17
9
echo " Testing $filename "
18
- ${WINE} ./LoadDll.exe $filename
10
+ ./runwine.sh " ${PLATFORM} " ./LoadDll.exe $filename
19
11
if [ " $? " != " 0" ]; then
20
12
exit 1
21
13
fi
Original file line number Diff line number Diff line change
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} $@
You can’t perform that action at this time.
0 commit comments