4 ms·
Cool, I really like this! I wrote a popular C function faking framework in a single header file for exactly the same reasons: all bets are off in embedded targ
by meekrosoft 13y ago
Cool, I really like this! I wrote a popular C function faking framework in a single header file for exactly the same reasons: all bets are off in embedded targets.
https://github.com/meekrosoft/fff https://github.com/meekrosoft/fff
The test C test framework in the project is 4 lines long, but does require the standard library.
https://github.com/meekrosoft/fff/blob/master/test/c_test_framework.h https://github.com/meekrosoft/fff/blob/master/test/c_test_fr...
- silentbicycle 13y agofff looks cool, too. Thanks! I'll check it out. :) I've tended to use CMock (https://github.com/ThrowTheSwitch/CMock https://github.com/ThrowTheSwitch/CMock) for mocking, though it depends on some Ruby-based tooling. The last time I looked into replacing CMock I wound up hip-deep in the binutils. (It was fun when I stopped getting google results from StackOverflow and started getting them from Phrack, though. ;) )
- justinmk 13y agoDid you try cmocka? http://cmocka.org/ http://cmocka.org/ It was the most featureful that I found when I was looking last year.
- silentbicycle 13y agoI have not, but I'll check it out, thanks.