From patchwork Tue Sep 27 07:26:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gowrishankar Muthukrishnan X-Patchwork-Id: 116939 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BEB90A00C2; Tue, 27 Sep 2022 09:26:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BCEEB427F3; Tue, 27 Sep 2022 09:26:27 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 7C6F742685 for ; Tue, 27 Sep 2022 09:26:25 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28R4ITdH031969; Tue, 27 Sep 2022 00:26:24 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=H9cBTgTV2+d2jsnAhjH8mjG3QcPxDI49+wmc6LHVvEY=; b=W4CLHufNCVYwyCbMfoRAteU7Z/qUVeKU1MjeJjSYXJv+/JmLm+ltbSKIH+JC5YYLVsLm +BS9hyi5tU4inc4oN65vqyWQLj4DNZzlDGxJEmmaahHwXKYtNKcZZmjM0soNcighnq3V GG8BPqZigTgGSC1/+1Hg/lAUEJTzN4mgbo7qmCp5sGlraAD+hAFEP3+ySEygk7I7YK15 ULHZsI/1SwrwnVsjI5vFAQX8YKTunq22y0wT09LiiLKutIIHcdV7QyKcLau4a0/S891D 83SB6qCHjvxsFSULXSfmCD3hpvq+CT0Bwclv8HM9RMmteL/yL1NsMb82eS+IgxZWjowU Fg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3jucsq36b6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 27 Sep 2022 00:26:24 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 27 Sep 2022 00:26:22 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Tue, 27 Sep 2022 00:26:22 -0700 Received: from localhost.localdomain (unknown [10.28.34.38]) by maili.marvell.com (Postfix) with ESMTP id 98BE35B695E; Tue, 27 Sep 2022 00:26:20 -0700 (PDT) From: Gowrishankar Muthukrishnan To: CC: Anoob Joseph , Fan Zhang , Brian Dooley , Akhil Goyal , , Gowrishankar Muthukrishnan Subject: [v2 2/7] examples/fips_validation: add interim parse writeback Date: Tue, 27 Sep 2022 12:56:07 +0530 Message-ID: <071dba01d7551cbab59f9d20cfb75fe6dec0541c.1664263264.git.gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-Proofpoint-GUID: o6yCEGnx5ibHvmwPbla2cxvd3f-AewM1 X-Proofpoint-ORIG-GUID: o6yCEGnx5ibHvmwPbla2cxvd3f-AewM1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-27_02,2022-09-22_02,2022-06-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Asym tests need a callback to write interim info in expected output. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Brian Dooley --- examples/fips_validation/fips_validation.c | 6 ++++++ examples/fips_validation/fips_validation.h | 1 + 2 files changed, 7 insertions(+) diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c index 06aeffe495..e755654cd0 100644 --- a/examples/fips_validation/fips_validation.c +++ b/examples/fips_validation/fips_validation.c @@ -512,6 +512,12 @@ fips_test_parse_one_json_group(void) if (ret < 0) return ret; } + + if (info.parse_interim_writeback) { + ret = info.parse_interim_writeback(NULL); + if (ret < 0) + return ret; + } } return 0; diff --git a/examples/fips_validation/fips_validation.h b/examples/fips_validation/fips_validation.h index f42040f460..a6288e17e5 100644 --- a/examples/fips_validation/fips_validation.h +++ b/examples/fips_validation/fips_validation.h @@ -228,6 +228,7 @@ struct fips_test_interim_info { const struct fips_test_callback *interim_callbacks; const struct fips_test_callback *writeback_callbacks; + post_prcess_t parse_interim_writeback; post_prcess_t parse_writeback; post_prcess_t kat_check; };