[Libvir] PATCH: Use macros to remove duplicate test code
Daniel Veillard
veillard at redhat.com
Mon Apr 21 13:05:48 UTC 2008
On Fri, Apr 18, 2008 at 01:32:49AM +0100, Daniel P. Berrange wrote:
> The test suite files contain alot of boilerplate duplicated code. With a
> few more macros I can significantly cut down the size of the test code.
>
> I also change abs_top_srcdir to abs_srcdir, and automatically initialize
> it to 'getcwd' if the env variable is missing. This lets me run the test
> cases directly, rather than having to go via 'make check'.
Looks quite cleaner to me, +1
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard at redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
More information about the libvir-list
mailing list