Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

wip

About

The Fake function framework (FFF) is a way to make mocks to test a newly written driver or application. It is meant to mock the supplementary drivers and/or applications using their header files. FFF was integrated into the Controls codebase to give an alternate option to test on software besides Renode. It was also meant to be tested in isolation from other drivers and applications by making them into mocks.

FFF was used because it is lightweight. Even though it does not have auto-generate mocks, a third party alternative generator was found. It is not integrated, but that is a pending issue.

Other testing frameworks were proposed, such as Google's cmockery and cmock. Google's cmokery is very similar to how FFF is structured. However, it has not been updated in a while and may have deprecated libraries being used. On the other hand, cmock has its advantages; it can auto generate the mocks. However, it uses ruby for the final scripts which make it a bit more convoluted. 


  • No labels