launch_tests.bat 985 B

123456789101112131415161718192021222324252627282930313233343536
  1. set PYTHONPATH=%cd%
  2. set azslc_binary=..\bin\win_x64\Release\azslc.exe
  3. set atom_dev_path=%1
  4. @if not exist %azslc_binary% (
  5. echo Please build the release version of azslc
  6. @pause
  7. @goto :eof
  8. )
  9. @if "%~1"=="" goto NoArgs
  10. @if not exist %atom_dev_path%"\Gems\Atom\Asset\Shader\External" goto QuickTest
  11. SHIFT
  12. goto FullTest
  13. :NoArgs
  14. py testapp.py --silent --compiler %azslc_binary% --path Syntax Semantic Advanced Samples
  15. @pause
  16. @goto :eof
  17. :FullTest
  18. @echo Found the dev path
  19. @if "%~1"=="" (
  20. py testapp.py --silent --compiler %azslc_binary% --az3rdParty %atom_dev_path%"\Gems\Atom\Asset\Shader\External" --path Syntax Semantic Advanced Samples
  21. ) else (
  22. py testapp.py --compiler %azslc_binary% --az3rdParty %atom_dev_path%"\Gems\Atom\Asset\Shader\External" --path %1 %2 %3 %4 %5
  23. )
  24. @pause
  25. @goto :eof
  26. :QuickTest
  27. @echo not found dev path
  28. py testapp.py --compiler %azslc_binary% --path %1 %2 %3 %4 %5
  29. @pause
  30. @goto :eof