patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] test/crypto: fix return value for snow3g testcase
@ 2023-04-14 13:55 Saoirse O'Donovan
  2023-04-14 14:01 ` Power, Ciara
  0 siblings, 1 reply; 3+ messages in thread
From: Saoirse O'Donovan @ 2023-04-14 13:55 UTC (permalink / raw)
  To: Akhil Goyal, Fan Zhang; +Cc: dev, Saoirse O'Donovan, kai.ji, stable

Unit tests were failing due to the return value of the decryption and
authentication functions not being handled correctly. This has now been
modified to return the expected test status.

Fixes: e23eccfd281e ("test/crypto: fix bitwise operator in a SNOW3G case")
Cc: kai.ji@intel.com
Cc: stable@dpdk.org

Signed-off-by: Saoirse O'Donovan <saoirse.odonovan@intel.com>
---
 app/test/test_cryptodev.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index 9c670e9a35..0713187d14 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -6944,6 +6944,7 @@ snow3g_hash_test_vector_setup(const struct snow3g_test_data *pattern,
 static int
 test_snow3g_decryption_with_digest_test_case_1(void)
 {
+	int ret;
 	struct snow3g_hash_test_data snow3g_hash_data;
 	struct rte_cryptodev_info dev_info;
 	struct crypto_testsuite_params *ts_params = &testsuite_params;
@@ -6962,8 +6963,9 @@ test_snow3g_decryption_with_digest_test_case_1(void)
 	 */
 	snow3g_hash_test_vector_setup(&snow3g_test_case_7, &snow3g_hash_data);
 
-	if (test_snow3g_decryption(&snow3g_test_case_7))
-		return TEST_FAILED;
+	ret = test_snow3g_decryption(&snow3g_test_case_7);
+	if (ret != 0)
+		return ret;
 
 	return test_snow3g_authentication_verify(&snow3g_hash_data);
 }
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] test/crypto: fix return value for snow3g testcase
  2023-04-14 13:55 [PATCH] test/crypto: fix return value for snow3g testcase Saoirse O'Donovan
@ 2023-04-14 14:01 ` Power, Ciara
  2023-05-03  7:42   ` Akhil Goyal
  0 siblings, 1 reply; 3+ messages in thread
From: Power, Ciara @ 2023-04-14 14:01 UTC (permalink / raw)
  To: O'Donovan, Saoirse, Akhil Goyal, Fan Zhang
  Cc: dev, O'Donovan, Saoirse, Ji, Kai, stable

Hi Saoirse,

> -----Original Message-----
> From: Saoirse O'Donovan <saoirse.odonovan@intel.com>
> Sent: Friday 14 April 2023 14:55
> To: Akhil Goyal <gakhil@marvell.com>; Fan Zhang
> <fanzhang.oss@gmail.com>
> Cc: dev@dpdk.org; O'Donovan, Saoirse <saoirse.odonovan@intel.com>; Ji,
> Kai <kai.ji@intel.com>; stable@dpdk.org
> Subject: [PATCH] test/crypto: fix return value for snow3g testcase
> 
> Unit tests were failing due to the return value of the decryption and
> authentication functions not being handled correctly. This has now been
> modified to return the expected test status.
> 
> Fixes: e23eccfd281e ("test/crypto: fix bitwise operator in a SNOW3G case")
> Cc: kai.ji@intel.com
> Cc: stable@dpdk.org
> 
> Signed-off-by: Saoirse O'Donovan <saoirse.odonovan@intel.com>
> ---
>  app/test/test_cryptodev.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 

Acked-by: Ciara Power <ciara.power@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] test/crypto: fix return value for snow3g testcase
  2023-04-14 14:01 ` Power, Ciara
@ 2023-05-03  7:42   ` Akhil Goyal
  0 siblings, 0 replies; 3+ messages in thread
From: Akhil Goyal @ 2023-05-03  7:42 UTC (permalink / raw)
  To: Power, Ciara, O'Donovan, Saoirse, Fan Zhang
  Cc: dev, O'Donovan, Saoirse, Ji, Kai, stable

> 
> Acked-by: Ciara Power <ciara.power@intel.com>
Applied to dpdk-next-crypto
Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-03  7:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-14 13:55 [PATCH] test/crypto: fix return value for snow3g testcase Saoirse O'Donovan
2023-04-14 14:01 ` Power, Ciara
2023-05-03  7:42   ` Akhil Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).