build.bat 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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:compress tests
  8. echo ---
  9. %PATH_TO_ODIN% run compress %COMMON% -out:test_core_compress.exe || exit /b
  10. echo ---
  11. echo Running core:container tests
  12. echo ---
  13. %PATH_TO_ODIN% run container %COMMON% %COLLECTION% -out:test_core_container.exe || exit /b
  14. echo ---
  15. echo Running core:crypto tests
  16. echo ---
  17. %PATH_TO_ODIN% run crypto %COMMON% %COLLECTION% -out:test_crypto.exe || exit /b
  18. echo ---
  19. echo Running core:encoding tests
  20. echo ---
  21. rem %PATH_TO_ODIN% run encoding/hxa %COMMON% %COLLECTION% -out:test_hxa.exe || exit /b
  22. %PATH_TO_ODIN% run encoding/json %COMMON% -out:test_json.exe || exit /b
  23. %PATH_TO_ODIN% run encoding/varint %COMMON% -out:test_varint.exe || exit /b
  24. %PATH_TO_ODIN% run encoding/xml %COMMON% -out:test_xml.exe || exit /b
  25. %PATH_TO_ODIN% test encoding/cbor %COMMON% -out:test_cbor.exe || exit /b
  26. %PATH_TO_ODIN% run encoding/hex %COMMON% -out:test_hex.exe || exit /b
  27. %PATH_TO_ODIN% run encoding/base64 %COMMON% -out:test_base64.exe || exit /b
  28. echo ---
  29. echo Running core:fmt tests
  30. echo ---
  31. %PATH_TO_ODIN% run fmt %COMMON% %COLLECTION% -out:test_core_fmt.exe || exit /b
  32. echo ---
  33. echo Running core:hash tests
  34. echo ---
  35. %PATH_TO_ODIN% run hash %COMMON% -o:size -out:test_core_hash.exe || exit /b
  36. echo ---
  37. echo Running core:image tests
  38. echo ---
  39. %PATH_TO_ODIN% run image %COMMON% -out:test_core_image.exe || exit /b
  40. echo ---
  41. echo Running core:math tests
  42. echo ---
  43. %PATH_TO_ODIN% run math %COMMON% %COLLECTION% -out:test_core_math.exe || exit /b
  44. echo ---
  45. echo Running core:math/linalg/glsl tests
  46. echo ---
  47. %PATH_TO_ODIN% run math/linalg/glsl %COMMON% %COLLECTION% -out:test_linalg_glsl.exe || exit /b
  48. echo ---
  49. echo Running core:math/noise tests
  50. echo ---
  51. %PATH_TO_ODIN% run math/noise %COMMON% -out:test_noise.exe || exit /b
  52. echo ---
  53. echo Running core:net
  54. echo ---
  55. %PATH_TO_ODIN% run net %COMMON% -out:test_core_net.exe || exit /b
  56. echo ---
  57. echo Running core:odin tests
  58. echo ---
  59. %PATH_TO_ODIN% run odin %COMMON% -o:size -out:test_core_odin.exe || exit /b
  60. echo ---
  61. echo Running core:path/filepath tests
  62. echo ---
  63. %PATH_TO_ODIN% run path/filepath %COMMON% %COLLECTION% -out:test_core_filepath.exe || exit /b
  64. echo ---
  65. echo Running core:reflect tests
  66. echo ---
  67. %PATH_TO_ODIN% run reflect %COMMON% %COLLECTION% -out:test_core_reflect.exe || exit /b
  68. echo ---
  69. echo Running core:runtime tests
  70. echo ---
  71. %PATH_TO_ODIN% run runtime %COMMON% %COLLECTION% -out:test_core_runtime.exe || exit /b
  72. echo ---
  73. echo Running core:slice tests
  74. echo ---
  75. %PATH_TO_ODIN% run slice %COMMON% -out:test_core_slice.exe || exit /b
  76. echo ---
  77. echo Running core:strings tests
  78. echo ---
  79. %PATH_TO_ODIN% run strings %COMMON% -out:test_core_strings.exe || exit /b
  80. echo ---
  81. echo Running core:text/i18n tests
  82. echo ---
  83. %PATH_TO_ODIN% run text\i18n %COMMON% -out:test_core_i18n.exe || exit /b
  84. echo ---
  85. echo Running core:thread tests
  86. echo ---
  87. %PATH_TO_ODIN% run thread %COMMON% %COLLECTION% -out:test_core_thread.exe || exit /b
  88. echo ---
  89. echo Running core:time tests
  90. echo ---
  91. %PATH_TO_ODIN% run time %COMMON% %COLLECTION% -out:test_core_time.exe || exit /b