build.bat 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. @echo off
  2. set COMMON=-no-bounds-check -vet -strict-style
  3. set COLLECTION=-collection:tests=..
  4. set PATH_TO_ODIN==..\..\odin
  5. python3 download_assets.py
  6. echo ---
  7. echo Running core:image tests
  8. echo ---
  9. %PATH_TO_ODIN% run image %COMMON% -out:test_core_image.exe || exit /b
  10. echo ---
  11. echo Running core:compress tests
  12. echo ---
  13. %PATH_TO_ODIN% run compress %COMMON% -out:test_core_compress.exe || exit /b
  14. echo ---
  15. echo Running core:strings tests
  16. echo ---
  17. %PATH_TO_ODIN% run strings %COMMON% -out:test_core_strings.exe || exit /b
  18. echo ---
  19. echo Running core:hash tests
  20. echo ---
  21. %PATH_TO_ODIN% run hash %COMMON% -o:size -out:test_core_hash.exe || exit /b
  22. echo ---
  23. echo Running core:odin tests
  24. echo ---
  25. %PATH_TO_ODIN% run odin %COMMON% -o:size -out:test_core_odin.exe || exit /b
  26. echo ---
  27. echo Running core:crypto hash tests
  28. echo ---
  29. %PATH_TO_ODIN% run crypto %COMMON% -out:test_crypto_hash.exe || exit /b
  30. echo ---
  31. echo Running core:encoding tests
  32. echo ---
  33. rem %PATH_TO_ODIN% run encoding/hxa %COMMON% %COLLECTION% -out:test_hxa.exe || exit /b
  34. %PATH_TO_ODIN% run encoding/json %COMMON% -out:test_json.exe || exit /b
  35. %PATH_TO_ODIN% run encoding/varint %COMMON% -out:test_varint.exe || exit /b
  36. %PATH_TO_ODIN% run encoding/xml %COMMON% -out:test_xml.exe || exit /b
  37. echo ---
  38. echo Running core:math/noise tests
  39. echo ---
  40. %PATH_TO_ODIN% run math/noise %COMMON% -out:test_noise.exe || exit /b
  41. echo ---
  42. echo Running core:math tests
  43. echo ---
  44. %PATH_TO_ODIN% run math %COMMON% %COLLECTION% -out:test_core_math.exe || exit /b
  45. echo ---
  46. echo Running core:math/linalg/glsl tests
  47. echo ---
  48. %PATH_TO_ODIN% run math/linalg/glsl %COMMON% %COLLECTION% -out:test_linalg_glsl.exe || exit /b
  49. echo ---
  50. echo Running core:path/filepath tests
  51. echo ---
  52. %PATH_TO_ODIN% run path/filepath %COMMON% %COLLECTION% -out:test_core_filepath.exe || exit /b
  53. echo ---
  54. echo Running core:reflect tests
  55. echo ---
  56. %PATH_TO_ODIN% run reflect %COMMON% %COLLECTION% -out:test_core_reflect.exe || exit /b
  57. echo ---
  58. echo Running core:slice tests
  59. echo ---
  60. %PATH_TO_ODIN% run slice %COMMON% -out:test_core_slice.exe || exit /b
  61. echo ---
  62. echo Running core:text/i18n tests
  63. echo ---
  64. %PATH_TO_ODIN% run text\i18n %COMMON% -out:test_core_i18n.exe || exit /b
  65. echo ---
  66. echo Running core:net
  67. echo ---
  68. %PATH_TO_ODIN% run net %COMMON% -out:test_core_net.exe || exit /b
  69. echo ---
  70. echo Running core:slice tests
  71. echo ---
  72. %PATH_TO_ODIN% run slice %COMMON% -out:test_core_slice.exe || exit /b
  73. echo ---
  74. echo Running core:container tests
  75. echo ---
  76. %PATH_TO_ODIN% run container %COMMON% %COLLECTION% -out:test_core_container.exe || exit /b
  77. echo ---
  78. echo Running core:thread tests
  79. echo ---
  80. %PATH_TO_ODIN% run thread %COMMON% %COLLECTION% -out:test_core_thread.exe || exit /b
  81. echo ---
  82. echo Running core:runtime tests
  83. echo ---
  84. %PATH_TO_ODIN% run runtime %COMMON% %COLLECTION% -out:test_core_runtime.exe || exit /b