xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Jim Fehlig <jfehlig@suse.com>
To: libvir-list@redhat.com
Cc: xen-devel@lists.xen.org
Subject: [PATCH V3 0/5] Testing libvirt XML -> libxl_domain_config conversion
Date: Wed,  3 Sep 2014 21:07:34 -0600	[thread overview]
Message-ID: <1409800059-16884-1-git-send-email-jfehlig@suse.com> (raw)

This is version 3 of the work started by danpb:

  https://www.redhat.com/archives/libvir-list/2014-May/msg01102.html

This series tests the conversion of libvirt XML to libxl_domain_config
objects by the libvirt libxl driver.

Changed in v3:

 - Change virJSONStringCompare to accept a list of context paths to
   ignore

 - Report error in virJSONStringCompare in libyajl is not available

 - Fix a bug (4/5) exposed by the new tests

 - Add tests for conversion of both PV and HVM config

 - Define json context paths to ignore based on features defined
   in libxl.h

Daniel P. Berrange (4):
  util: Introduce virJSONStringCompare for JSON doc comparisons
  util: Allow port allocator to skip bind() check
  tests: Add more test suite mock helpers
  libxl: Add a test suite for libxl option generator

Jim Fehlig (1):
  libxl: fix mapping of libvirt and libxl lifecycle actions

 configure.ac                           |   2 +
 src/libvirt_private.syms               |   1 +
 src/libxl/libxl_conf.c                 |  62 +++++++-
 src/libxl/libxl_driver.c               |   5 +-
 src/qemu/qemu_driver.c                 |   9 +-
 src/util/virjson.c                     | 242 +++++++++++++++++++++++++++++++
 src/util/virjson.h                     |  16 +++
 src/util/virportallocator.c            |  14 +-
 src/util/virportallocator.h            |   7 +-
 tests/Makefile.am                      |  25 +++-
 tests/libxlxml2jsondata/basic-hvm.json | 217 ++++++++++++++++++++++++++++
 tests/libxlxml2jsondata/basic-hvm.xml  |  36 +++++
 tests/libxlxml2jsondata/basic-pv.json  | 163 +++++++++++++++++++++
 tests/libxlxml2jsondata/basic-pv.xml   |  28 ++++
 tests/libxlxml2jsontest.c              | 251 +++++++++++++++++++++++++++++++++
 tests/virfirewalltest.c                |   4 +-
 tests/virmock.h                        |  54 +++++--
 tests/virmocklibxl.c                   |  87 ++++++++++++
 tests/virportallocatortest.c           |   4 +-
 tests/virsystemdtest.c                 |   4 +-
 20 files changed, 1198 insertions(+), 33 deletions(-)
 create mode 100644 tests/libxlxml2jsondata/basic-hvm.json
 create mode 100644 tests/libxlxml2jsondata/basic-hvm.xml
 create mode 100644 tests/libxlxml2jsondata/basic-pv.json
 create mode 100644 tests/libxlxml2jsondata/basic-pv.xml
 create mode 100644 tests/libxlxml2jsontest.c
 create mode 100644 tests/virmocklibxl.c

-- 
1.8.4.5

             reply	other threads:[~2014-09-04  3:07 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-04  3:07 Jim Fehlig [this message]
2014-09-04  3:07 ` [PATCH V3 1/5] util: Introduce virJSONStringCompare for JSON doc comparisons Jim Fehlig
2014-09-04  3:07 ` [PATCH V3 2/5] util: Allow port allocator to skip bind() check Jim Fehlig
2014-09-11 10:46   ` Daniel P. Berrange
2014-09-04  3:07 ` [PATCH V3 3/5] tests: Add more test suite mock helpers Jim Fehlig
2014-09-11 10:46   ` Daniel P. Berrange
2014-09-04  3:07 ` [PATCH V3 4/5] libxl: fix mapping of lifecycle actions Jim Fehlig
2014-09-04  3:07 ` [PATCH V3 5/5] libxl: Add a test suite for libxl option generator Jim Fehlig
2014-09-11 10:58   ` Daniel P. Berrange
     [not found]   ` <20140911105842.GE7035@redhat.com>
2014-09-11 22:01     ` Jim Fehlig
     [not found] ` <1409800059-16884-2-git-send-email-jfehlig@suse.com>
2014-09-11 10:45   ` [PATCH V3 1/5] util: Introduce virJSONStringCompare for JSON doc comparisons Daniel P. Berrange
     [not found]   ` <20140911104519.GA7035@redhat.com>
2014-09-11 21:57     ` Jim Fehlig
     [not found] ` <1409800059-16884-5-git-send-email-jfehlig@suse.com>
2014-09-11 10:47   ` [libvirt] [PATCH V3 4/5] libxl: fix mapping of lifecycle actions Daniel P. Berrange
     [not found]   ` <20140911104716.GD7035@redhat.com>
2014-09-11 21:56     ` Jim Fehlig
2014-09-11 21:59   ` Jim Fehlig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1409800059-16884-1-git-send-email-jfehlig@suse.com \
    --to=jfehlig@suse.com \
    --cc=libvir-list@redhat.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).