Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

94 řádky
3.6 KiB

  1. rem ------------------------------------------------------------------------------
  2. rem Tiny script to execute Assimp's fully unit test suite for all configurations
  3. rem
  4. rem Usage: call RunUnitTestSuite
  5. rem ------------------------------------------------------------------------------
  6. rem Setup the console environment
  7. set errorlevel=0
  8. color 4e
  9. cls
  10. @echo off
  11. rem Setup target architecture
  12. SET ARCHEXT=x64
  13. IF %PROCESSOR_ARCHITECTURE% == x86 (
  14. SET ARCHEXT=win32
  15. )
  16. rem Setup standard paths from here
  17. SET OUTDIR=results\
  18. SET BINDIR=..\bin\
  19. SET FIRSTUTFAILURE=nil
  20. SET FIRSTUTNA=nil
  21. echo #=====================================================================
  22. echo # Open Asset Import Library - Unittests
  23. echo #=====================================================================
  24. echo #
  25. echo # Executes the Assimp library unit test suite for the following
  26. echo # build configurations (if available):
  27. echo #
  28. echo # Release
  29. echo # Release -st
  30. echo # Release -noboost
  31. echo # Release -dll
  32. echo #
  33. echo # Debug
  34. echo # Debug -st
  35. echo # Debug -noboost
  36. echo # Debug -dll
  37. echo ======================================================================
  38. echo.
  39. echo.
  40. echo assimp-core release
  41. echo **********************************************************************
  42. call RunSingleUnitTestSuite unit_release_%ARCHEXT% release.txt
  43. echo assimp-core release -st
  44. echo **********************************************************************
  45. call RunSingleUnitTestSuite unit_release-st_%ARCHEXT% release-st.txt
  46. echo assimp-core release -noboost
  47. echo **********************************************************************
  48. call RunSingleUnitTestSuite unit_release-noboost-st_%ARCHEXT% release-st-noboost.txt
  49. echo assimp-core release -dll
  50. echo **********************************************************************
  51. call RunSingleUnitTestSuite unit_release-dll_%ARCHEXT% release-dll.txt
  52. echo assimp-core debug
  53. echo **********************************************************************
  54. call RunSingleUnitTestSuite unit_debug_%ARCHEXT% debug.txt
  55. echo assimp-core debug -st
  56. echo **********************************************************************
  57. call RunSingleUnitTestSuite unit_debug-st_%ARCHEXT% debug-st.txt
  58. echo assimp-core debug -noboost
  59. echo **********************************************************************
  60. call RunSingleUnitTestSuite unit_debug-noboost-st_%ARCHEXT% debug-st-noboost.txt
  61. echo assimp-core debug -dll
  62. echo **********************************************************************
  63. call RunSingleUnitTestSuite unit_debug-dll_%ARCHEXT% debug-dll.txt
  64. echo ======================================================================
  65. IF %FIRSTUTNA% == nil (
  66. echo All test configs have been found.
  67. ) ELSE (
  68. echo One or more test configs are not available.
  69. )
  70. IF %FIRSTUTFAILURE% == nil (
  71. echo All tests have been successful.
  72. ) ELSE (
  73. echo One or more tests failed.
  74. )
  75. echo.
  76. pause