summary refs log tree commit diff stats
path: root/tests/unit/test-crypto-block.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2022-09-05 14:37:05 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2022-10-27 13:06:11 +0100
commit741c314a337ff4c79b8a86fbd5891054b0191d44 (patch)
tree5bdb3cb9e1cc40f286a09808cd8ae697cd010d2d /tests/unit/test-crypto-block.c
parent6c1989321eb95d5d2e29d3537484836bf0f21744 (diff)
downloadfocaccia-qemu-741c314a337ff4c79b8a86fbd5891054b0191d44.tar.gz
focaccia-qemu-741c314a337ff4c79b8a86fbd5891054b0191d44.zip
crypto: ensure LUKS tests run with GNUTLS crypto provider
GNUTLS is supported as a crypto provider since

  commit cc4c7c738297958b3d1d16269f57d71d22f5a9ff
  Author: Daniel P. Berrangé <berrange@redhat.com>
  Date:   Wed Jun 30 17:20:02 2021 +0100

    crypto: introduce build system for gnutls crypto backend

So enable the LUKS tests in this config.

Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'tests/unit/test-crypto-block.c')
-rw-r--r--tests/unit/test-crypto-block.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/test-crypto-block.c b/tests/unit/test-crypto-block.c
index 3417b67be5..3d50eb4b6e 100644
--- a/tests/unit/test-crypto-block.c
+++ b/tests/unit/test-crypto-block.c
@@ -30,7 +30,8 @@
 #endif
 
 #if (defined(_WIN32) || defined RUSAGE_THREAD) && \
-    (defined(CONFIG_NETTLE) || defined(CONFIG_GCRYPT))
+    (defined(CONFIG_NETTLE) || defined(CONFIG_GCRYPT) || \
+     defined(CONFIG_GNUTLS_CRYPTO))
 #define TEST_LUKS
 #else
 #undef TEST_LUKS