]> xenbits.xensource.com Git - libvirt.git/commit
tests: Add virnumamock
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 23 Mar 2017 16:01:41 +0000 (17:01 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 27 Mar 2017 11:13:29 +0000 (13:13 +0200)
commit9368095bb803856f6f5ac2cfca8b2841b62efe01
treedff928c88a66eedb4ea06cd7fcc00e47bcbb5c58
parenta0fdd2f6f9a0cc77ae285c289e2c16d314b6a907
tests: Add virnumamock

All mocked functions are related to numactl/virNuma and rely only on
virsysfs, so the paths they touch can be nicely controlled.  And
because it is so nicely self-contained NUMA mock, it is named
numamock (instead of naming it after the test that will use it first).

We need top level API mock because some APIs might call libnuma
directly, e.g. virNumaIsAvailable(), virNumaGetMaxNode().

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
tests/Makefile.am
tests/virnumamock.c [new file with mode: 0644]