[libvirt] [PATCH 04/11] tests: Add lib- prefix to all mocks

Daniel P. Berrangé berrange at redhat.com
Wed Aug 21 17:01:53 UTC 2019


On Wed, Aug 21, 2019 at 07:13:16PM +0300, Roman Bolshakov wrote:
> In preparation libtool "-module" flag removal, add lib prefix to all
> mock shared objects.
> 
> While at it, introduce VIR_TEST_MOCK macros that makes path out of mock
> name to be used with VIR_TEST_PRELOAD or VIR_TEST_MAIN_PRELOAD.  That,
> hopefully, improves readability, reduces line length and allows to
> tailor VIR_TEST_MOCK for specific platform if it has shared library
> suffix different from ".so".
> 
> Signed-off-by: Roman Bolshakov <r.bolshakov at yadro.com>
> ---
>  tests/Makefile.am              | 194 ++++++++++++++++-----------------
>  tests/bhyveargv2xmltest.c      |   2 +-
>  tests/bhyvexml2argvtest.c      |   2 +-
>  tests/bhyvexml2xmltest.c       |   2 +-
>  tests/domaincapstest.c         |   6 +-
>  tests/fchosttest.c             |   2 +-
>  tests/libxlxml2domconfigtest.c |   2 +-
>  tests/nsstest.c                |   2 +-
>  tests/qemucaps2xmltest.c       |   2 +-
>  tests/qemucapsprobe.c          |   2 +-
>  tests/qemumemlocktest.c        |   3 +-
>  tests/qemumonitorjsontest.c    |   2 +-
>  tests/qemuxml2argvtest.c       |   8 +-
>  tests/qemuxml2xmltest.c        |   6 +-
>  tests/testutils.c              |   4 +-
>  tests/testutils.h              |   4 +
>  tests/vircaps2xmltest.c        |   2 +-
>  tests/vircgrouptest.c          |   2 +-
>  tests/vircryptotest.c          |   2 +-
>  tests/virfilecachetest.c       |   2 +-
>  tests/virfiletest.c            |   2 +-
>  tests/virfirewalltest.c        |   2 +-
>  tests/virhostcputest.c         |   2 +-
>  tests/virhostdevtest.c         |   2 +-
>  tests/viriscsitest.c           |   3 +-
>  tests/virmacmaptest.c          |   2 +-
>  tests/virnetdaemontest.c       |   2 +-
>  tests/virnetdevbandwidthtest.c |   2 +-
>  tests/virnetdevtest.c          |   2 +-
>  tests/virnetserverclienttest.c |   2 +-
>  tests/virnettlscontexttest.c   |   2 +-
>  tests/virnettlssessiontest.c   |   2 +-
>  tests/virpcitest.c             |   2 +-
>  tests/virpolkittest.c          |   2 +-
>  tests/virportallocatortest.c   |   2 +-
>  tests/virsystemdtest.c         |   2 +-
>  tests/virusbtest.c             |   2 +-
>  37 files changed, 143 insertions(+), 143 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list