run.tests.vs2010.bat (2329B)
1@echo off 2 3cd ..\VS2010\tests 4 5call :pass checkkeys 6call :pass loopwave 7call :pass testatomic 8call :pass testaudioinfo 9call :pass testautomation 10call :pass testdraw2 11call :pass testchessboard 12call :pass testerror 13call :pass testfile 14call :pass testfilesystem 15call :pass testgamecontroller 16call :pass testgesture 17call :pass testgl2 18call :pass testgles 19call :pass testhaptic 20call :pass testiconv 21call :pass testime 22call :pass testintersection 23call :pass testjoystick 24call :pass testkeys 25::call :pass testloadso 26call :pass testlock 27call :pass testmessage 28call :pass testmultiaudio 29call :pass testnative 30call :pass testoverlay2 31call :pass testplatform 32call :pass testpower 33call :pass testrelative 34call :pass testrendercopyex 35call :pass testrendertarget 36call :pass testresample sample.wav newsample.wav 44100 37call :pass testrumble 38call :pass testscale 39call :pass testsem 1 40call :pass testshader 41call :testspecial testshape .\shapes 42call :testspecial testshape .\shapes 43call :testspecial testshape .\shapes 44call :pass testsprite2 45call :pass testspriteminimal 46call :pass teststreaming 47call :pass testthread 48call :pass testtimer 49call :pass testver 50call :pass testwm2 51call :pass torturethread 52 53:: leave the tests directory 54cd .. 55 56:: exit batch 57goto :eof 58 59:testspecial 60if not exist %1\Win32\Debug goto :eof 61cd %1\Win32\Debug 62call :randomfile %2 63cd ..\..\.. 64call :pass %1 %RETURN% 65goto :eof 66 67:: pass label (similar to pass function in the Xcode tests command script) 68:pass 69setlocal enabledelayedexpansion 70set args= 71set /A count=0 72for %%x IN (%*) DO ( 73 if NOT !count! EQU 0 set args=!args! %%x 74 set /A count=%count% + 1 75) 76endlocal & set callargs=%args% 77:: if it does not exist, break procedure 78if not exist %1\Win32\Debug goto endfunc 79:: goto directory 80echo Testing: %1 81title Testing: %1 82cd %1\Win32\Debug 83:: execute test 84".\%1.exe"%callargs% 85cd ..\..\.. 86pause 87:endfunc 88goto :eof 89 90:randomfile 91setlocal enabledelayedexpansion 92set count=0 93if not exist %1 goto :eof 94for %%d in (%1\*.*) DO ( 95 set /A count=count + 1 96) 97set /A count=%RANDOM% %% %count% 98for %%d in (%1\*.*) DO ( 99 if !count! EQU 0 ( 100 set rfile=%%d 101 goto endrfile 102 ) 103 set /A count=count-1 104) 105:endrfile 106set tmprfile=!rfile! 107endlocal & set RETURN=%tmprfile% 108goto :eof