41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
continue
fi
rm -f "${file}"
done
# Disable WINE debugging
WINEPREFIX="${TESTDIR}/.wine"
export WINEPREFIX
rm -rf "${WINEPREFIX}"
mkdir "${WINEPREFIX}"
cat << \_EOF_ > "${WINEPREFIX}/update-reg"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AeDebug]
"Auto"=dword:00000001
"Debugger"="false"
_EOF_
regedit "${WINEPREFIX}/update-reg" >/dev/null 2>/dev/null
# Start Xvfb for X11-based tests
XVFB_PID="$(
Xvfb :31 -screen 0 800x600x24 -nolisten tcp >/dev/null 2>/dev/null &
echo "$!"
)"
DISPLAY=:31
|
|
>
|
|
|
|
>
|
>
|
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
continue
fi
rm -f "${file}"
done
# Disable WINE debugging
WINEPREFIX32="${TESTDIR}/.wine"
WINEPREFIX64="${TESTDIR}/.wine64"
export WINEPREFIX32 WINEPREFIX64
rm -rf "${WINEPREFIX32}" "${WINEPREFIX64}"
mkdir "${WINEPREFIX32}" "${WINEPREFIX64}"
cat << \_EOF_ > "${WINEPREFIX32}/update-reg"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AeDebug]
"Auto"=dword:00000001
"Debugger"="false"
_EOF_
cp "${WINEPREFIX32}/update-reg" "${WINEPREFIX64}/update-reg"
regedit "${WINEPREFIX32}/update-reg" >/dev/null 2>/dev/null
regedit "${WINEPREFIX64}/update-reg" >/dev/null 2>/dev/null
# Start Xvfb for X11-based tests
XVFB_PID="$(
Xvfb :31 -screen 0 800x600x24 -nolisten tcp >/dev/null 2>/dev/null &
echo "$!"
)"
DISPLAY=:31
|
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
iszip="0"
if echo "${kit}" | egrep -- '-(hppa64|amd64|sparc64)-' >/dev/null; then
args="${args} --enable-64bit"
fi
;;
esac
if [ "${xcompile}" != "0" ]; then
kit="${kit}-xcompile"
fi
# Handle additional configuration
tempkit="-${kit}-"
|
>
>
>
>
>
>
>
>
>
>
>
|
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
iszip="0"
if echo "${kit}" | egrep -- '-(hppa64|amd64|sparc64)-' >/dev/null; then
args="${args} --enable-64bit"
fi
;;
esac
case "${kitruncmd}" in
wine)
WINEPREFIX="${WINEPREFIX32}"
export WINEPREFIX
;;
wine64)
WINEPREFIX="${WINEPREFIX64}"
export WINEPREFIX
;;
esac
if [ "${xcompile}" != "0" ]; then
kit="${kit}-xcompile"
fi
# Handle additional configuration
tempkit="-${kit}-"
|
516
517
518
519
520
521
522
523
524
525
526
|
fi
# Cleanup
## Terminate Xvfb
kill -9 "${XVFB_PID}"
## Remove wine
rm -rf "${WINEPREFIX}"
./kitcreator clean
rm -f tclsh
|
|
|
530
531
532
533
534
535
536
537
538
539
540
|
fi
# Cleanup
## Terminate Xvfb
kill -9 "${XVFB_PID}"
## Remove wine
rm -rf "${WINEPREFIX32}" "${WINEPREFIX64}"
./kitcreator clean
rm -f tclsh
|