From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 637D4A04B5; Thu, 10 Sep 2020 18:47:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4278F1C0B9; Thu, 10 Sep 2020 18:47:27 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6AE711BFA2 for ; Thu, 10 Sep 2020 18:47:25 +0200 (CEST) IronPort-SDR: sODKhiyIrUW5CBYRV+KzH+E9FpywUx7FMHV8L/OT2OCJY+2xGlKYzNSSgMh6xo8NzpWGlYSpgC LS22EqZDlH6Q== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="159530481" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="159530481" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 09:47:23 -0700 IronPort-SDR: jrWYXSCCzdRUcVZrxyI29Aim/sXWn+3TcAfrWff5WJVlh9jcj1ffPwptQiI9cGtkoLfjsA8qtT 0qcnLLFKnH5w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="304939225" Received: from silpixa00399126.ir.intel.com ([10.237.222.27]) by orsmga006.jf.intel.com with ESMTP; 10 Sep 2020 09:47:22 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Date: Thu, 10 Sep 2020 17:47:13 +0100 Message-Id: <20200910164716.1011901-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200821155945.29415-1-bruce.richardson@intel.com> References: <20200821155945.29415-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 0/3] simplify unit-testing of rawdevs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" At present the "rawdev_autotest" command creates a skeleton rawdev and runs a series of tests on the rawdev API and on that rawdev. While the rawdev API set includes a "selftest" function, it is not hooked up to this test so to test an individual rawdev driver, e.g. ioat, requires that a new test command be added. This patchset improves the situation by changing the UT to first run the existing API tests, but then call selftest on all rawdevs on the system. This removes the need for any new test commands for new drivers. If there are multiple rawdevs on a system, the sub-set to be tested can be limited via existing means such as using the device block/allow EAL parameters or similarly via vdev args, etc. As part of this change, the ioat rawdev autotest is fixed to allow calling on multiple instances inside the one test run, and thereafter the custom test command for it is removed as it is no longer necessary. Depends-on: series-12105 ("Enhance rawdev APIs") V2: - dropped patch 2, which had ioat-only changes to debug prints, and wasn't relevant to the rest of the set - improved the naming of the test functions in test_rawdev.c - added release note entry for these changes Bruce Richardson (3): raw/ioat: support multiple devices being tested app/test: change rawdev autotest to run selftest on all devs app/test: remove ioat-specific autotest app/test/test_rawdev.c | 34 +++++++++++++++++--------- doc/guides/rel_notes/release_20_11.rst | 7 ++++++ drivers/raw/ioat/ioat_rawdev_test.c | 17 ++++++++++--- 3 files changed, 42 insertions(+), 16 deletions(-) -- 2.25.1