mbox series

[OpenWrt-Devel,fwtool,0/8] fwtool improvements

Message ID 20191023105339.16326-1-ynezz@true.cz
Headers show
Series fwtool improvements | expand

Message

Petr Štetiar Oct. 23, 2019, 10:53 a.m. UTC
Hi,

this patches moves fwtool out of tree into separate project, adds bunch of
fixes, GitLab CI support and some unit tests as a bonus.

Cheers,

Petr

Petr Štetiar (8):
  refactor into separate Git project
  convert into CMake project
  iron out extra compiler warnings
  add initial GitLab CI support
  add cram based unit tests
  crc32: add missing stdint.h dependency
  fix possible copy of null buffer and validation of unitialized header
  fix possible garbage in unitialized char* struct members

 .gitignore                      |   3 ++
 .gitlab-ci.yml                  |  14 +++++
 CMakeLists.txt                  |  14 +++++
 Makefile                        |  47 -----------------
 src/crc32.h => crc32.h          |   2 +
 src/fwimage.h => fwimage.h      |   0
 src/fwtool.c => fwtool.c        |  39 ++++++++++----
 tests/CMakeLists.txt            |   4 ++
 tests/artifacts/key-build.ucert | Bin 0 -> 516 bytes
 tests/artifacts/metadata.json   |   1 +
 tests/cram/CMakeLists.txt       |  22 ++++++++
 tests/cram/test_crc32.t         |  12 +++++
 tests/cram/test_fwtool.t        |  90 ++++++++++++++++++++++++++++++++
 tests/test-crc32.c              |  26 +++++++++
 src/utils.h => utils.h          |   0
 15 files changed, 216 insertions(+), 58 deletions(-)
 create mode 100644 .gitignore
 create mode 100644 .gitlab-ci.yml
 create mode 100644 CMakeLists.txt
 delete mode 100644 Makefile
 rename src/crc32.h => crc32.h (98%)
 rename src/fwimage.h => fwimage.h (100%)
 rename src/fwtool.c => fwtool.c (92%)
 create mode 100644 tests/CMakeLists.txt
 create mode 100644 tests/artifacts/key-build.ucert
 create mode 100644 tests/artifacts/metadata.json
 create mode 100644 tests/cram/CMakeLists.txt
 create mode 100644 tests/cram/test_crc32.t
 create mode 100644 tests/cram/test_fwtool.t
 create mode 100644 tests/test-crc32.c
 rename src/utils.h => utils.h (100%)