Hello guys, looking forward to some help here!
I've been working on a Unit Test system setup with CMock + Unity for a BLE app. But when I try CMocking some headers in the nrf sdk(eg. nrf_erratas.h), I get a "Failed Parsing Declaration Prototype" Error from the cmock_header_parser.rb script.
From what I've seen so far, it seems as if CMock has issues with Macros and static inline functions. And I found this post:
Which explains quite well what to do. But I don't understand where should I put the newly created ".h" file? Because the file that was linked to nrf_erratas.h will still include it, unless I mess with the SDK directly. So a bit of a walkthrough for dummies would be great.
Also, I am trying to do this with Makefiles. In your example here:
https://github.com/nrfconnect/sdk-nrf/blob/master/tests/unity/CMakeLists.txt
I saw you did it with CMake. Is it your suggestion to switch over to the CMakeLists?
Anyway, thanks a lot for reading this. This seems like a great community and I hope we will have fun together in the future!