From patchwork Sun May 28 17:35:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Kusztal X-Patchwork-Id: 127642 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 1A8AE42BC4; Sun, 28 May 2023 19:35:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF79A40DFB; Sun, 28 May 2023 19:35:39 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 4673340A81 for ; Sun, 28 May 2023 19:35:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685295338; x=1716831338; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=hr/fMbIuFTcR+kzXmgEqG27TFViC3Ns1amNI0JqpDN0=; b=IGWkIp+NheAI+TLz1BdfpH2naFV8WiighX0I3lmhDXWGxjWOj1W/hsOO qDFedoOqiWRe61BzhCACmuxo4LzsboMJbvC0ECoQODKSNZaYWQfgKQxcd IKXuEDI/WptQcN2v2rkLtb2cFNAV+kZaKuphJpLTwI/kM/r7s7406ff3c yd4AZFUOTMZIBmgGSPJb0GIv2QFD1GBhfkRKF8SMelWYPQpWg2qHuM07t Jl6yYAxyhDy07fa6LRFm18LxdTq4wfKmhsGHc0BKtiHZTB/fIb3YweRfF +C+3hfL5LbCWXShDrunyh5Cfaj4VBDR8+kzFa0qBUnU4sF0ovgLCK5aS7 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10724"; a="344041607" X-IronPort-AV: E=Sophos;i="6.00,198,1681196400"; d="scan'208";a="344041607" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2023 10:35:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10724"; a="738892631" X-IronPort-AV: E=Sophos;i="6.00,198,1681196400"; d="scan'208";a="738892631" Received: from silpixa00401012.ir.intel.com ([10.243.22.82]) by orsmga001.jf.intel.com with ESMTP; 28 May 2023 10:35:35 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, kai.ji@intel.com, ciara.power@intel.com, Arek Kusztal Subject: [PATCH v2 0/4] Replace obsolote test cases. Date: Sun, 28 May 2023 17:35:27 +0000 Message-Id: <20230528173531.263548-1-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 This patchset removes obsolete test cases for RSA, MOD EXP, MOD INV. Doing that, new way of handling ut_setup and ut_teardown was proposed. Now both behave like constructor/desctuctor to the unit tests. It frees particular alghorithm functions from any kind of responsibility to free resources. The functionality of the tests was extended, but the number of lines of code was reduced by ~600 lines. v2: - fixed build problem with non compile-time constant Arkadiusz Kusztal (4): app/test: remove testsuite calls from ut setup app/test: refactor mod exp test case app/test: refactor mod inv tests app/test: add rsa kat and pwct tests app/test/test_cryptodev_asym.c | 1610 +++++++------------- app/test/test_cryptodev_asym_util.h | 28 - app/test/test_cryptodev_mod_test_vectors.h | 631 +------- app/test/test_cryptodev_rsa_test_vectors.h | 600 ++++---- 4 files changed, 852 insertions(+), 2017 deletions(-)