[PATCH v3 0/2] bhyve: add xml2args unittest

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

 



Changes from v2:
 - Make virBhyveTapGetRealDeviceName a stub on non-FreeBSD
 - Add bhyvexml2argvdata and bhyvexml2argvmock.c to EXTRA_DIST
 - Include bhyve headers in tests only if WITH_BHYVE is defined
 - Don't use 'util/' for #include when not needed

Changes from v1:
 - Chase MAC address support by adding virMacAddrGenerate() mock, so
   we can get a constant MAC address
 - Add a test for the case when MAC address is specified in the
   domain xml

Roman Bogorodskiy (2):
  Move virBhyveTapGetRealDeviceName to virnetdevtap
  bhyve: add xml2args unittest

 src/bhyve/bhyve_command.c                          |  74 +---------
 src/libvirt_private.syms                           |   1 +
 src/util/virnetdevtap.c                            |  87 ++++++++++++
 src/util/virnetdevtap.h                            |   3 +
 tests/Makefile.am                                  |  26 ++++
 .../bhyvexml2argvdata/bhyvexml2argv-acpiapic.args  |   3 +
 tests/bhyvexml2argvdata/bhyvexml2argv-acpiapic.xml |  24 ++++
 tests/bhyvexml2argvdata/bhyvexml2argv-base.args    |   3 +
 tests/bhyvexml2argvdata/bhyvexml2argv-base.xml     |  20 +++
 .../bhyvexml2argv-disk-virtio.args                 |   3 +
 .../bhyvexml2argv-disk-virtio.xml                  |  20 +++
 tests/bhyvexml2argvdata/bhyvexml2argv-macaddr.args |   3 +
 tests/bhyvexml2argvdata/bhyvexml2argv-macaddr.xml  |  21 +++
 tests/bhyvexml2argvmock.c                          |  49 +++++++
 tests/bhyvexml2argvtest.c                          | 153 +++++++++++++++++++++
 15 files changed, 417 insertions(+), 73 deletions(-)
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-acpiapic.args
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-acpiapic.xml
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-base.args
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-base.xml
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-disk-virtio.args
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-disk-virtio.xml
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-macaddr.args
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-macaddr.xml
 create mode 100644 tests/bhyvexml2argvmock.c
 create mode 100644 tests/bhyvexml2argvtest.c

-- 
1.8.4.2

--
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]