Patched to compile.
8 call :pass testaudioinfo
9 call :pass testautomation
11 call :pass testdrawchessboard
14 call :pass testfilesystem
15 call :pass testgamecontroller
16 call :pass testgesture
22 call :pass testintersection
23 call :pass testjoystick
25 ::call :pass testloadso
27 call :pass testmessage
28 call :pass testmultiaudio
30 call :pass testoverlay2
31 call :pass testplatform
33 call :pass testrelative
34 call :pass testrendercopyex
35 call :pass testrendertarget
36 call :pass testresample sample.wav newsample.wav 44100
41 call :testspecial testshape .\shapes
42 call :testspecial testshape .\shapes
43 call :testspecial testshape .\shapes
44 call :pass testsprite2
45 call :pass testspriteminimal
46 call :pass teststreaming
51 call :pass torturethread
53 :: leave the tests directory
60 if not exist %1\Win32\Debug goto :eof
64 call :pass testshape %RETURN%
67 :: pass label (similar to pass function in the Xcode tests command script)
69 setlocal enabledelayedexpansion
73 if NOT !count! EQU 0 set args=!args! %%x
74 set /A count=%count% + 1
76 endlocal & set callargs=%args%
77 :: if it does not exist, break procedure
78 if not exist %1\Win32\Debug goto endfunc
91 setlocal enabledelayedexpansion
93 if not exist %1 goto :eof
94 for %%d in (%1\*.*) DO (
95 set /A count=count + 1
97 set /A count=%RANDOM% %% %count%
98 for %%d in (%1\*.*) DO (
107 endlocal & set RETURN=%tmprfile%