Re: [PATCH 08/10] Add test case for loading driver modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/21/2012 01:59 PM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> To ensure all symbols used by loadable driver modules are
> exported in libvirt.so, add a test suite that simply loads
> each driver in turn
> 
> * tests/Makefile.am, tests/virdrivermoduletest.c: Add
>   a test case for loading drivers
> 
> Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
> ---
>  tests/Makefile.am           |   11 +++++
>  tests/virdrivermoduletest.c |  104 +++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 115 insertions(+), 0 deletions(-)
>  create mode 100644 tests/virdrivermoduletest.c

ACK.


> +static int testDriverModule(const void *args)
> +{
> +    const struct testDriverData *data = args;
> +
> +    if (data->dep1 &&
> +        !virDriverLoadModule(data->dep1))
> +        return -1;
> +
> +    if (!virDriverLoadModule(data->name))
> +        return -1;
> +
> +    return 0;
> +}

Any reason why we don't have a virDriverUnloadModule?

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]