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:
Ján Tomko 2018-05-15 13:01:58 +02:00
parent c25fbbec68
commit 698af20af2
2 changed files with 33 additions and 12 deletions

View File

@ -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 */

View File

@ -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 */