[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 05/26] crypto: skip testing of unsupported cipher
From: |
Daniel P. Berrange |
Subject: |
[Qemu-devel] [PATCH v3 05/26] crypto: skip testing of unsupported cipher algorithms |
Date: |
Mon, 15 Feb 2016 16:10:38 +0000 |
We don't guarantee that all crypto backends will support
all cipher algorithms, so we should skip tests unless
the crypto backend indicates support.
Signed-off-by: Daniel P. Berrange <address@hidden>
---
tests/test-crypto-cipher.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/test-crypto-cipher.c b/tests/test-crypto-cipher.c
index c687307..3747efa 100644
--- a/tests/test-crypto-cipher.c
+++ b/tests/test-crypto-cipher.c
@@ -379,7 +379,9 @@ int main(int argc, char **argv)
g_assert(qcrypto_init(NULL) == 0);
for (i = 0; i < G_N_ELEMENTS(test_data); i++) {
- g_test_add_data_func(test_data[i].path, &test_data[i], test_cipher);
+ if (qcrypto_cipher_supports(test_data[i].alg)) {
+ g_test_add_data_func(test_data[i].path, &test_data[i],
test_cipher);
+ }
}
g_test_add_func("/crypto/cipher/null-iv",
--
2.5.0
- [Qemu-devel] [PATCH v3 00/26] Support LUKS encryption in block devices, Daniel P. Berrange, 2016/02/15
- [Qemu-devel] [PATCH v3 02/26] crypto: add support for PBKDF2 algorithm, Daniel P. Berrange, 2016/02/15
- [Qemu-devel] [PATCH v3 06/26] crypto: add support for the cast5-128 cipher algorithm, Daniel P. Berrange, 2016/02/15
- [Qemu-devel] [PATCH v3 01/26] crypto: add cryptographic random byte source, Daniel P. Berrange, 2016/02/15
- [Qemu-devel] [PATCH v3 05/26] crypto: skip testing of unsupported cipher algorithms,
Daniel P. Berrange <=
- [Qemu-devel] [PATCH v3 04/26] crypto: add support for anti-forensic split algorithm, Daniel P. Berrange, 2016/02/15
- [Qemu-devel] [PATCH v3 03/26] crypto: add support for generating initialization vectors, Daniel P. Berrange, 2016/02/15
- [Qemu-devel] [PATCH v3 07/26] crypto: add support for the serpent cipher algorithm, Daniel P. Berrange, 2016/02/15
- [Qemu-devel] [PATCH v3 08/26] crypto: add support for the twofish cipher algorithm, Daniel P. Berrange, 2016/02/15
- [Qemu-devel] [PATCH v3 10/26] crypto: refactor code for dealing with AES cipher, Daniel P. Berrange, 2016/02/15
- [Qemu-devel] [PATCH v3 15/26] qemu-img/qemu-io: don't prompt for passwords if not required, Daniel P. Berrange, 2016/02/15
- [Qemu-devel] [PATCH v3 14/26] block: add flag to indicate that no I/O will be performed, Daniel P. Berrange, 2016/02/15
- [Qemu-devel] [PATCH v3 09/26] crypto: import an implementation of the XTS cipher mode, Daniel P. Berrange, 2016/02/15
- [Qemu-devel] [PATCH v3 12/26] crypto: add block encryption framework, Daniel P. Berrange, 2016/02/15
- [Qemu-devel] [PATCH v3 17/26] tests: refactor python I/O tests helper main method, Daniel P. Berrange, 2016/02/15