From patchwork Mon Jun 19 19:27:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Kusztal X-Patchwork-Id: 128798 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 7864B42CFD; Mon, 19 Jun 2023 21:27:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2DE4640E0F; Mon, 19 Jun 2023 21:27:38 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 30B4840DF8 for ; Mon, 19 Jun 2023 21:27:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687202857; x=1718738857; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=h/NvmElWyQsWXEjWyCGfcPyZc+j1zPJ6E77F6+0NCpk=; b=ceQxVNP9Amm9gx3FVqaKd+e1UZXVOQraVEmiwPrs1REOJRiudJ6WdeUg iut9hSQEd7gDk5FTV+CSRb4o2wvOhgz8mB/bMO+Bl+rILxGpCiWqP7/tY IpveHzhLbHhCVsV2SILKxKWJ11Pz/cdil4fte1F0dqiNhPY4LlY90TmJF GnOnQ3o7sW9QkCSO/4S8iZeiv0OFD+w+4KJlT0+YxV9ydFVF7DJ714PZ/ KoZ3CXJ1hxo2i0yLO2TCaiTu9Nqwe5KZLLIIE6qb0iPTqpmGOBWXaB2b1 6aHeUPTG4sX7a98UhbZpM3sQ67T7XLUz7Z+AYhu5OS1yOM229JKWFKYrm A==; X-IronPort-AV: E=McAfee;i="6600,9927,10746"; a="423365939" X-IronPort-AV: E=Sophos;i="6.00,255,1681196400"; d="scan'208";a="423365939" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jun 2023 12:27:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10746"; a="960508914" X-IronPort-AV: E=Sophos;i="6.00,255,1681196400"; d="scan'208";a="960508914" Received: from silpixa00401012.ir.intel.com ([10.243.23.125]) by fmsmga006.fm.intel.com with ESMTP; 19 Jun 2023 12:27:33 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, kai.ji@intel.com, ciara.power@intel.com, Arek Kusztal Subject: [PATCH v3 0/3] Replace obsolote test cases. Date: Mon, 19 Jun 2023 19:27:14 +0000 Message-Id: <20230619192717.351336-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 in the unit tests. It frees particular alghorithm functions from any kind of responsibility to free resources for the new functions. v2: - fixed build problem with non compile-time constant v3: - rebased - left old pwct tests intact Arkadiusz Kusztal (3): app/test: remove obsolete test function app/test: add modexp and modinv functions app/test: add rsa none padding tests app/test/test_cryptodev_asym.c | 761 +++++++++---------- app/test/test_cryptodev_mod_test_vectors.h | 814 +-------------------- app/test/test_cryptodev_rsa_test_vectors.h | 322 ++++---- 3 files changed, 510 insertions(+), 1387 deletions(-)