mirror of
https://github.com/reactos/ahk_tests.git
synced 2024-11-26 21:10:40 +00:00
[AHK]
After patching changes on the bots, the long paths made the AHK compiler crash. A virtual drive with the compiler's directory avoids the problem. As a bonus, introducing a batch allows optimisation and error checking. svn path=/trunk/ahk_tests/; revision=2316
This commit is contained in:
parent
5811d5abfe
commit
7efacf441a
10
compile.sh
10
compile.sh
@ -9,7 +9,15 @@ TESTSLIST=$( find . -name zz\*.ahk -exec $WINE winepath -w {} \; )
|
||||
# avoids being bothered by spaces in file names
|
||||
IFS=$(echo -en "\n\b")
|
||||
# build all the tests and copy them to Tests/ directory
|
||||
rm -f ${HOME}/.wine/dosdevices/a:
|
||||
ln -s ${PWD} ${HOME}/.wine/dosdevices/a:
|
||||
echo "@echo off"> /tmp/build$$.bat
|
||||
for TEST in $TESTSLIST ; do
|
||||
"$WINE" Compiler/Ahk2Exe.exe /in "$TEST" /out "${TEST%.ahk}.exe"
|
||||
"$WINE" cmd /c echo Compiler\\Ahk2Exe.exe /in "$TEST" /out "${TEST%.ahk}.exe" \>\> Z:\\tmp\\build$$.bat
|
||||
"$WINE" cmd /c echo if errorlevel 1 exit \>\>Z:\\tmp\\build$$.bat
|
||||
done
|
||||
"$WINE" cmd /c Z:\\tmp\\build$$.bat
|
||||
GetLastError=$?
|
||||
rm -f /tmp/build$$.bat
|
||||
if [ $GetLastError -ne 0 ] ; then exit $GetLastError ; fi
|
||||
find . -wholename ./Tests -prune -o -name zz_*test.exe -exec mv {} Tests/ \;
|
||||
|
Loading…
Reference in New Issue
Block a user