Re: [PATCH v2 2/4] test: Introduce virnetdevopenvswitchtest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 16, 2019 at 10:54:34AM +0200, Michal Privoznik wrote:
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@xxxxxxxxxx>
---
src/libvirt_private.syms                   |   1 +
src/util/virnetdevopenvswitch.c            |  93 ++++++++++++-------
src/util/virnetdevopenvswitch.h            |   4 +
tests/Makefile.am                          |  13 ++-
tests/virnetdevopenvswitchdata/stats1.json |   1 +
tests/virnetdevopenvswitchdata/stats2.json |   1 +
tests/virnetdevopenvswitchtest.c           | 101 +++++++++++++++++++++
7 files changed, 177 insertions(+), 37 deletions(-)
create mode 100644 tests/virnetdevopenvswitchdata/stats1.json
create mode 100644 tests/virnetdevopenvswitchdata/stats2.json
create mode 100644 tests/virnetdevopenvswitchtest.c


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux