examples/fips_validation: bypass the unsupported test vectors

Message ID 1600252911-20295-1-git-send-email-marchana@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers
Series examples/fips_validation: bypass the unsupported test vectors |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-testing success Testing PASS
ci/travis-robot success Travis build: passed
ci/Intel-compilation success Compilation OK

Commit Message

Archana Muniganti Sept. 16, 2020, 10:41 a.m. UTC
  Bypass the test vectors of unsupported crypto transform
for SHA.

Signed-off-by: Archana Muniganti <marchana@marvell.com>
---
 examples/fips_validation/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Akhil Goyal Oct. 9, 2020, 6:21 p.m. UTC | #1
> Bypass the test vectors of unsupported crypto transform
> for SHA.
> 
> Signed-off-by: Archana Muniganti <marchana@marvell.com>
> ---
Applied to dpdk-next-crypto

Thanks.
  

Patch

diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c
index efd32a8..bde779c 100644
--- a/examples/fips_validation/main.c
+++ b/examples/fips_validation/main.c
@@ -1022,7 +1022,7 @@  struct fips_test_ops {
 
 	ret = fips_run_test();
 	if (ret < 0) {
-		if (ret == -EPERM) {
+		if (ret == -EPERM || ret == -ENOTSUP) {
 			fprintf(info.fp_wr, "Bypass\n\n");
 			return 0;
 		}
@@ -1443,7 +1443,7 @@  struct fips_test_ops {
 
 			ret = fips_run_test();
 			if (ret < 0) {
-				if (ret == -EPERM) {
+				if (ret == -EPERM || ret == -ENOTSUP) {
 					fprintf(info.fp_wr, "Bypass\n\n");
 					return 0;
 				}