[libvirt] [PATCH v2 3/5] test: Introduce testing of virStorageUtilGlusterExtractPoolSources
Peter Krempa
pkrempa at redhat.com
Tue Apr 4 11:50:36 UTC 2017
On Mon, Apr 03, 2017 at 17:03:43 +0200, Andrea Bolognani wrote:
> On Thu, 2017-03-30 at 17:12 +0200, Peter Krempa wrote:
[...]
> > +virstorageutiltest_LDADD = \
> > + ../src/libvirt_driver_storage_impl.la \
> > + $(LDADDS) \
> > + $(NULL)
> > +
[...]
> You should also be able to use $(qemu_LDADDS) instead of
> spelling out ../src/libvirt_driver_storage_impl.la above.
Yes, but that pulls in all the qemu driver crap, which has no place in a
test testing only the storage driver.
[...]
> > +#undef DO_TEST_GLUSTER_LOOKUP_NATIVE
> > +#undef DO_TEST_GLUSTER_LOOKUP_NETFS
> > +#undef DO_TEST_GLUSTER_LOOKUP_FULL
>
> The #undefs are a bit unnecessary in this context, I'd leave
> them out.
It's true that it would be hard to use these somewhere else (since they
are in a .c file) but ad-hoc macros should be undefined. Otherwise they
are not ad-hoc and should bear the VIR_ prefix.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170404/0bcc8f54/attachment-0001.sig>
More information about the libvir-list
mailing list