test_libopenmpt_args.cmd 676 B

12345678910111213141516171819202122232425262728293031323334353637
  1. @echo off
  2. set BATCH_DIR=%~dp0
  3. cd %BATCH_DIR%
  4. cd ..\..
  5. set MY_DIR=%CD%
  6. call "build\auto\setup_arguments.cmd" %1 %2 %3 %4 %5 %6
  7. call "build\auto\setup_%MPT_VS_VER%.cmd"
  8. if "%MPT_BIN_ARCH%" == "x86" (
  9. "bin\%MPT_BIN_CONF%\%MPT_VS_VER%-%MPT_BIN_TARGET32%-%MPT_BIN_RUNTIME%\%MPT_BIN_ARCH%\libopenmpt_test.exe" || goto error
  10. )
  11. if "%MPT_BIN_ARCH%" == "amd64" (
  12. if "%MPT_HOST_BITNESS%" == "64" (
  13. "bin\%MPT_BIN_CONF%\%MPT_VS_VER%-%MPT_BIN_TARGET64%-%MPT_BIN_RUNTIME%\%MPT_BIN_ARCH%\libopenmpt_test.exe" || goto error
  14. ) else (
  15. echo "Warning: Host is not 64 bit. Skipping 64 bit test suite."
  16. )
  17. )
  18. goto noerror
  19. :error
  20. cd "%MY_DIR%"
  21. exit 1
  22. :noerror
  23. cd "%MY_DIR%"
  24. exit 0