mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-05 08:23:48 +00:00
Skip vircryptotest and virfilecachetest without gnutls
Fix make check without gnutls. Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
c25fbbec68
commit
698af20af2
@ -20,11 +20,12 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "testutils.h"
|
||||
|
||||
#if WITH_GNUTLS
|
||||
# include "vircrypto.h"
|
||||
# include "virrandom.h"
|
||||
|
||||
#include "testutils.h"
|
||||
|
||||
# define VIR_FROM_THIS VIR_FROM_NONE
|
||||
|
||||
struct testCryptoHashData {
|
||||
@ -180,3 +181,12 @@ mymain(void)
|
||||
|
||||
/* Forces usage of not so random virRandomBytes */
|
||||
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virrandommock.so")
|
||||
#else
|
||||
static int
|
||||
mymain(void)
|
||||
{
|
||||
return EXIT_AM_SKIP;
|
||||
}
|
||||
|
||||
VIR_TEST_MAIN(mymain);
|
||||
#endif /* WITH_GNUTLS */
|
||||
|
@ -20,6 +20,8 @@
|
||||
#include <config.h>
|
||||
|
||||
#include "testutils.h"
|
||||
|
||||
#if WITH_GNUTLS
|
||||
# include "virfile.h"
|
||||
# include "virfilecache.h"
|
||||
|
||||
@ -233,3 +235,12 @@ mymain(void)
|
||||
}
|
||||
|
||||
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virfilecachemock.so")
|
||||
#else
|
||||
static int
|
||||
mymain(void)
|
||||
{
|
||||
return EXIT_AM_SKIP;
|
||||
}
|
||||
|
||||
VIR_TEST_MAIN(mymain);
|
||||
#endif /* WITH_GNUTLS */
|
||||
|
Loading…
Reference in New Issue
Block a user