check.bin.compatibility.vs2010.bat 1.9 KB

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