Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ODIN=../../odin
  2. PYTHON=$(shell which python3)
  3. all: download_test_assets image_test compress_test strings_test hash_test crypto_test noise_test encoding_test \
  4. math_test linalg_glsl_math_test filepath_test reflect_test os_exit_test i18n_test match_test c_libc_test
  5. download_test_assets:
  6. $(PYTHON) download_assets.py
  7. image_test:
  8. $(ODIN) run image/test_core_image.odin -file -out:test_core_image
  9. compress_test:
  10. $(ODIN) run compress/test_core_compress.odin -file -out:test_core_compress
  11. strings_test:
  12. $(ODIN) run strings/test_core_strings.odin -file -out:test_core_strings
  13. hash_test:
  14. $(ODIN) run hash -o:speed -no-bounds-check -out:test_hash
  15. crypto_test:
  16. $(ODIN) run crypto -o:speed -no-bounds-check -out:test_crypto_hash
  17. noise_test:
  18. $(ODIN) run math/noise -out:test_noise
  19. encoding_test:
  20. $(ODIN) run encoding/hxa -out:test_hxa -collection:tests=..
  21. $(ODIN) run encoding/json -out:test_json
  22. $(ODIN) run encoding/varint -out:test_varint
  23. $(ODIN) run encoding/xml -out:test_xml
  24. math_test:
  25. $(ODIN) run math/test_core_math.odin -file -collection:tests=.. -out:test_core_math
  26. linalg_glsl_math_test:
  27. $(ODIN) run math/linalg/glsl/test_linalg_glsl_math.odin -file -collection:tests=.. -out:test_linalg_glsl_math
  28. filepath_test:
  29. $(ODIN) run path/filepath/test_core_filepath.odin -file -collection:tests=.. -out:test_core_filepath
  30. reflect_test:
  31. $(ODIN) run reflect/test_core_reflect.odin -file -collection:tests=.. -out:test_core_reflect
  32. os_exit_test:
  33. $(ODIN) run os/test_core_os_exit.odin -file -out:test_core_os_exit && exit 1 || exit 0
  34. i18n_test:
  35. $(ODIN) run text/i18n -out:test_core_i18n
  36. match_test:
  37. $(ODIN) run text/match -out:test_core_match
  38. c_libc_test:
  39. $(ODIN) run c/libc -out:test_core_libc