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