[PATCH 0/4] tests: Cleanups and improvements

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

 



First 3 patches are uninteresting cleanups, removing a bunch of
boiler plate code.

The last patch adds a way to easily regenerate test output, like when
adding a new test case (plop in the qemu XML, use the env var and the test
suite will create foo.args for you), or when a code changes causes test
suite output to expectedly change.

Cole Robinson (4):
  tests: Add VIR_TEST_DEBUG and VIR_TEST_VERBOSE
  tests: Use *DefParseFile more
  tests: Add virtTestCompareToFile
  tests: Add VIR_TEST_REGENERATE_OUTPUT

 HACKING                            |   7 ++
 docs/hacking.html.in               |  12 +++
 tests/bhyvexml2argvtest.c          |  41 ++--------
 tests/bhyvexml2xmltest.c           |  18 +----
 tests/cputest.c                    |  45 ++++-------
 tests/domaincapstest.c             |   9 +--
 tests/domainconftest.c             |   7 +-
 tests/jsontest.c                   |  48 +++++-------
 tests/lxcxml2xmltest.c             |  17 +----
 tests/networkxml2conftest.c        |  16 +---
 tests/networkxml2firewalltest.c    |   9 +--
 tests/networkxml2xmltest.c         |  15 +---
 tests/networkxml2xmlupdatetest.c   |  15 +---
 tests/nodeinfotest.c               |  20 +----
 tests/nwfilterxml2firewalltest.c   |  11 +--
 tests/nwfilterxml2xmltest.c        |  15 +---
 tests/qemuagenttest.c              |   9 +--
 tests/qemuargv2xmltest.c           |  15 ++--
 tests/qemucaps2xmltest.c           |  27 +------
 tests/qemuhelptest.c               |   6 +-
 tests/qemuhotplugtest.c            |  19 ++---
 tests/qemumonitorjsontest.c        |   9 +--
 tests/qemumonitortest.c            |  24 +++---
 tests/qemuxml2argvtest.c           |  27 ++-----
 tests/qemuxmlnstest.c              |  19 +----
 tests/secretxml2xmltest.c          |  15 +---
 tests/securityselinuxlabeltest.c   |  13 +---
 tests/sexpr2xmltest.c              |   9 +--
 tests/statstest.c                  |   3 +-
 tests/storagebackendsheepdogtest.c |  20 +----
 tests/storagepoolxml2xmltest.c     |  15 +---
 tests/storagevolxml2argvtest.c     |  40 ++--------
 tests/storagevolxml2xmltest.c      |  21 +----
 tests/sysinfotest.c                |  10 +--
 tests/testutils.c                  |  74 ++++++++++++++----
 tests/testutils.h                  |  14 ++++
 tests/testutilslxc.c               |   2 +-
 tests/testutilsqemu.c              |   2 +-
 tests/utiltest.c                   |  30 +++-----
 tests/virbuftest.c                 |  60 +++++++--------
 tests/vircaps2xmltest.c            |  10 +--
 tests/vircgrouptest.c              |   9 +--
 tests/virhashtest.c                | 152 ++++++++++++-------------------------
 tests/virpcitest.c                 |   4 +-
 tests/virportallocatortest.c       |  35 +++------
 tests/vmx2xmltest.c                |   9 +--
 tests/xencapstest.c                |   9 +--
 tests/xlconfigtest.c               |  27 +------
 tests/xmconfigtest.c               |  27 +------
 tests/xml2sexprtest.c              |  18 +----
 tests/xml2vmxtest.c                |  19 +----
 51 files changed, 340 insertions(+), 767 deletions(-)

-- 
2.3.5

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