premake/VisualC/build-scripts/check.bin.compatibility.vs2010.bat
author Ryan C. Gordon
Fri, 05 Aug 2016 04:23:32 -0400
changeset 10259 457d9c7868ec
parent 7925 f090a47eb7f7
permissions -rwxr-xr-x
nas: initial shot at audio capture support. Compiles, but not tested.
     1 @echo off
     2 title Building Premake VS2010 Environment...
     3 call build.all.vs2010.bat
     4 
     5 title Building SDL VS2010 Environment...
     6 cd %~dp0
     7 cd ..\..\..\VisualC
     8 msbuild /m SDL_VS2010.sln /t:Clean,Build /property:Configuration=Debug
     9 pause
    10 
    11 title Running SDL VS2010 tests with premake SDL2.dll...
    12 cd tests
    13 
    14 call :pass checkkeys
    15 call :pass loopwave
    16 call :pass testatomic
    17 call :pass testaudioinfo
    18 call :pass testautomation
    19 call :pass testdraw2
    20 call :pass testerror
    21 call :pass testfile
    22 call :pass testgamecontroller
    23 call :pass testgesture
    24 call :pass testgl2
    25 call :pass testgles
    26 call :pass testhaptic
    27 call :pass testiconv
    28 call :pass testime
    29 call :pass testintersection
    30 call :pass testjoystick
    31 call :pass testkeys
    32 ::call :pass testloadso
    33 call :pass testlock
    34 call :pass testmessage
    35 call :pass testmultiaudio
    36 call :pass testnative
    37 call :pass testoverlay2
    38 call :pass testplatform
    39 call :pass testpower
    40 call :pass testrelative
    41 call :pass testrendercopyex
    42 call :pass testrendertarget
    43 ::call :pass testresample
    44 call :pass testrumble
    45 call :pass testscale
    46 call :pass testsem 0
    47 call :pass testshader
    48 call :pass testshape "../../../../../../test/sample.bmp"
    49 call :pass testsprite2
    50 call :pass testspriteminimal
    51 call :pass teststreaming
    52 call :pass testthread
    53 call :pass testtimer
    54 call :pass testver
    55 call :pass testwm2
    56 call :pass torturethread
    57 
    58 :: leave the tests directory
    59 cd ..
    60 
    61 :: exit batch
    62 goto :eof
    63 
    64 :: pass label (similar to pass function in the Xcode tests command script)
    65 :pass
    66 :: if it does not exist, break procedure
    67 if not exist %1\Win32\Debug goto endfunc
    68 :: goto directory
    69 echo Running SDL VS2010 %1 with premake SDL2.dll...
    70 title Running SDL VS2010 %1 with premake SDL2.dll...
    71 cd %1\Win32\Debug
    72 :: remove old SDL2.dll
    73 rm SDL2.dll
    74 :: copy new SDL2.dll (~dp0 is get directory of current location of batch file)
    75 copy %~dp0\..\SDL2\Win32\Debug\SDL2.dll .\SDL2.dll
    76 :: execute test
    77 ".\%1.exe" %2
    78 cd ..\..\..
    79 pause
    80 :endfunc
    81 goto :eof