vendredi 20 février 2015

Is there a kernel module mocking tool for unit testing?

As per the question, I'm doing some linux kernel development and we have a kernel module doing some memory manual memory management. Coming from user land development, I've been doing object mocking so that I can isolate code configurations and conditions down to single tests, and also use fixtures. The same concept should apply to the linux kernel; I want to configure, without creating derivations of precondition data to produce some output, the result of linux kernel calls, so that I can just specify what value a certain interface returns... basically, I want to contrive data to give to the kernel module.


Is there something like google mocking that can be used in kernel development?


Aucun commentaire:

Enregistrer un commentaire