[ovs-dev] [kmod-test V2 2/3] autotest: add autotest framework for adding kernel module unit tests

Thomas Graf tgraf at noironetworks.com
Fri Jan 16 10:48:30 UTC 2015


On 01/15/15 at 06:12pm, Andy Zhou wrote:
> This patch adds a basic infrastructure for developing and running
> kernel module unit tests. Currently OVS contains thousands
> of useful unit tests for user space programs. It is desirable to
> have corresponding kernel module unit tests.
> 
> This commit adds basic framework for adding kernel module tests. Like
> user space unit tests, Kmod tests are based autotest framework, thus
> are similar to existing unit tests. For references, kmod-traffic.at
> contains a simple ping test.
> 
> "make check-kmod" can be invoked on any build machine as a root
> user. Since kernel testing can potentially crash the kernel, it is
> not recommended to run those tests directly on a development machine,
> but rather a testing VM, such as ones can be launched by vagrant.
> 
> Signed-off-by: Andy Zhou <azhou at nicira.com>

Thanks for incorporating all the feedback. LGTM from here.
I'll play with the various modprobe scenarios a bit and will
follow-up if needed.

Acked-by: Thomas Graf <tgraf at noironetworks.com>



More information about the dev mailing list