mock for libnl
Thomas Graf
tgraf at suug.ch
Tue Apr 8 23:55:26 PDT 2014
On 04/08/14 at 12:47pm, Michael Richardson wrote:
>
> Hi, there are unit test cases in tests/
> "make check" doesn't seem to run them though.
>
> Reading them, I think that check.h is not part of the libnl: is it part of
> another package?
Yes, <check.h> comes from [0]
[0] http://check.sourceforge.net/
> While my real goal is to mock libnl as part of unit testing of another
> daemon, I was also looking at whether there is any kernel mocks in libnl
> itself. What I want is to pretend to my daemon that it is running with
> a specific number of number of network interfaces with particular addresses.
>
> I did this before libnl using a fake netlink socket that really just read
> messages crafted from elsewhere. I'm trying now to do this by just
> populating the libnl caches.
We would definitely be interested in any code that is produced
towards such an effort.
More information about the libnl
mailing list