]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test: Introduce virnetdevopenvswitchtest
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 16 Jul 2019 07:33:38 +0000 (09:33 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 16 Jul 2019 11:42:39 +0000 (13:42 +0200)
commitcc34260f5a8715d208ee45a6ebaa79e5264cbe68
tree02f60e37a71a2de053c376c44cf83d01506120e0
parentc297eab52599c91a4cb26b66dbdfe9d07c3142d3
test: Introduce virnetdevopenvswitchtest

Test if our parsing of interface stats as returned by ovs-vsctl
works as expected. To achieve this without having to mock
virCommand* I'm separating parsing of stats into a separate
function.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virnetdevopenvswitch.c
src/util/virnetdevopenvswitch.h
tests/Makefile.am
tests/virnetdevopenvswitchdata/stats1.json [new file with mode: 0644]
tests/virnetdevopenvswitchdata/stats2.json [new file with mode: 0644]
tests/virnetdevopenvswitchtest.c [new file with mode: 0644]