antmicro / zynq-mkbootimage

An open source replacement of the Xilinx bootgen application.
BSD 2-Clause "Simplified" License
93 stars 47 forks source link

Automate code formatting and use it in tests #17

Closed kiryk closed 2 years ago

kiryk commented 2 years ago

New Makefile targets have been added:

  1. format - to run clang-format on all the C source files in repo
  2. test - to perform tests

Both targets are also used by automatic tests now. The tester script uses clang-format version 12 for formatting check.