[libvirt] [PATCH] openvz: Add simple test for openvzReadNetworkConf

Eric Blake eblake at redhat.com
Tue May 31 21:38:46 UTC 2011


On 05/31/2011 07:11 AM, Matthias Bolte wrote:
> Convert openvzLocateConfFile to a replaceable callback to allow
> testing the config file parsing without rewriting the whole OpenVZ
> config parsing to a more testable structure.
> 
> Also ignore the openvzutilstest binary.

Serves me right for pushing that .gitignore fix before finishing reading
my inbox...

> ---
>  src/openvz/openvz_conf.c   |   28 +++++++++++----
>  src/openvz/openvz_conf.h   |    6 +++
>  tests/.gitignore           |    1 +
>  tests/openvzutilstest.c    |   78 ++++++++++++++++++++++++++++++++++++++++++++
>  tests/openvzutilstest.conf |    1 +
>  5 files changed, 106 insertions(+), 8 deletions(-)
> 
> +++ b/tests/.gitignore
> @@ -16,6 +16,7 @@ object-locking
>  object-locking-files.txt
>  object-locking.cmi
>  object-locking.cmx
> +openvzutilstest

I'd rather move towards having more exceptions in the top-level
.gitignore, and fewer lines here in the directory-specific
tests/.gitignore (for that matter, since .gitignore is hierarchical, I
would eventually like to get rid of all the child .gitignore files and
put everything in the top level).  But that's a cleanup for another day.
 Meanwhile, this hunk is no longer necessary, thanks to commit ad962bc.

ACK to the rest of the patch; more testsuite exposure is always okay,
even after feature freeze.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110531/c0bf7967/attachment-0001.sig>


More information about the libvir-list mailing list