Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ODIN=../../odin
  2. PYTHON=$(shell which python3)
  3. all: c_libc_test \
  4. compress_test \
  5. crypto_test \
  6. download_test_assets \
  7. encoding_test \
  8. filepath_test \
  9. fmt_test \
  10. hash_test \
  11. i18n_test \
  12. image_test \
  13. linalg_glsl_math_test \
  14. match_test \
  15. math_test \
  16. net_test \
  17. noise_test \
  18. os_exit_test \
  19. reflect_test \
  20. slice_test \
  21. strings_test \
  22. thread_test \
  23. runtime_test
  24. download_test_assets:
  25. $(PYTHON) download_assets.py
  26. image_test:
  27. $(ODIN) run image/test_core_image.odin -file -out:test_core_image
  28. compress_test:
  29. $(ODIN) run compress/test_core_compress.odin -file -out:test_core_compress
  30. strings_test:
  31. $(ODIN) run strings/test_core_strings.odin -file -out:test_core_strings
  32. hash_test:
  33. $(ODIN) run hash -o:speed -no-bounds-check -out:test_hash
  34. crypto_test:
  35. $(ODIN) run crypto -o:speed -no-bounds-check -out:test_crypto_hash
  36. noise_test:
  37. $(ODIN) run math/noise -out:test_noise
  38. encoding_test:
  39. $(ODIN) run encoding/hxa -out:test_hxa -collection:tests=..
  40. $(ODIN) run encoding/json -out:test_json
  41. $(ODIN) run encoding/varint -out:test_varint
  42. $(ODIN) run encoding/xml -out:test_xml
  43. math_test:
  44. $(ODIN) run math/test_core_math.odin -file -collection:tests=.. -out:test_core_math
  45. linalg_glsl_math_test:
  46. $(ODIN) run math/linalg/glsl/test_linalg_glsl_math.odin -file -collection:tests=.. -out:test_linalg_glsl_math
  47. filepath_test:
  48. $(ODIN) run path/filepath/test_core_filepath.odin -file -collection:tests=.. -out:test_core_filepath
  49. reflect_test:
  50. $(ODIN) run reflect/test_core_reflect.odin -file -collection:tests=.. -out:test_core_reflect
  51. slice_test:
  52. $(ODIN) run slice/test_core_slice.odin -file -out:test_core_slice
  53. os_exit_test:
  54. $(ODIN) run os/test_core_os_exit.odin -file -out:test_core_os_exit && exit 1 || exit 0
  55. i18n_test:
  56. $(ODIN) run text/i18n -out:test_core_i18n
  57. match_test:
  58. $(ODIN) run text/match -out:test_core_match
  59. c_libc_test:
  60. $(ODIN) run c/libc -out:test_core_libc
  61. net_test:
  62. $(ODIN) run net -out:test_core_net
  63. fmt_test:
  64. $(ODIN) run fmt -out:test_core_fmt
  65. thread_test:
  66. $(ODIN) run thread -out:test_core_thread
  67. runtime_test:
  68. $(ODIN) run runtime -out:test_core_runtime