[libvirt] [PATCH 3/4] tests: Add virtTestCompareToFile

Laine Stump laine at laine.org
Thu Apr 23 19:37:18 UTC 2015


On 04/23/2015 02:19 PM, Cole Robinson wrote:
> Replaces a common pattern used in many test files
> ---
>  tests/bhyvexml2argvtest.c        | 41 ++++++----------------------------------
>  tests/bhyvexml2xmltest.c         |  9 +--------
>  tests/cputest.c                  | 11 +----------
>  tests/domaincapstest.c           |  9 +--------
>  tests/lxcxml2xmltest.c           |  9 +--------
>  tests/networkxml2conftest.c      |  9 +--------
>  tests/networkxml2firewalltest.c  |  9 +--------
>  tests/networkxml2xmltest.c       |  9 +--------
>  tests/networkxml2xmlupdatetest.c |  9 +--------
>  tests/nodeinfotest.c             | 18 ++----------------
>  tests/nwfilterxml2firewalltest.c | 11 +----------
>  tests/nwfilterxml2xmltest.c      |  9 +--------
>  tests/qemucaps2xmltest.c         | 27 ++++----------------------
>  tests/qemumonitorjsontest.c      |  9 ++-------
>  tests/qemuxml2argvtest.c         | 13 +------------
>  tests/qemuxmlnstest.c            | 13 +------------
>  tests/secretxml2xmltest.c        |  9 +--------
>  tests/sexpr2xmltest.c            |  9 +--------
>  tests/storagepoolxml2xmltest.c   |  9 +--------
>  tests/storagevolxml2argvtest.c   | 14 +-------------
>  tests/storagevolxml2xmltest.c    |  9 +--------
>  tests/sysinfotest.c              | 10 ++--------
>  tests/testutils.c                | 33 ++++++++++++++++++++++++++++++++
>  tests/testutils.h                |  2 ++
>  tests/vircaps2xmltest.c          | 10 +---------
>  tests/vircgrouptest.c            |  9 +--------
>  tests/vmx2xmltest.c              |  9 +--------
>  tests/xencapstest.c              |  9 +--------
>  tests/xlconfigtest.c             | 18 ++----------------
>  tests/xmconfigtest.c             | 18 ++----------------
>  tests/xml2sexprtest.c            |  9 +--------
>  tests/xml2vmxtest.c              | 10 +---------
>  32 files changed, 78 insertions(+), 324 deletions(-)
>
>

Nice! ACK.




More information about the libvir-list mailing list