[libvirt] [PATCH] tests: Handle networkxml2argvtest being configure --localstatedir dependant

Eric Blake eblake at redhat.com
Sat Jun 25 15:58:46 UTC 2011


On 06/25/2011 06:41 AM, Matthias Bolte wrote:
> networkxml2argvtest indirectly calls networkDnsmasqLeaseFileName
> that depends on configure --localstatedir. Therefore, the .argv
> files used in the test have to be created with this localstatedir.
> 
> Move the .argv to .argv.in files with a @localstatedir@ placeholder.

Will this work in VPATH builds?  Previously, we have done hacks where
the test directory can provide an override string; if the override is
NULL (the default, for use in libvirtd), then use @localstatedir@, but
if the override is provided (from the test case), then use that instead.
 That is, by changing networkDnsmasqLeaseFileName to honor an override,
we can avoid having to use all these .argv.in test files, and avoid
having to worry about VPATH builds generating the .argv in a different
location than the .argv.in files.

-- 
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/20110625/c48a36c7/attachment-0001.sig>


More information about the libvir-list mailing list