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 22D19A04AF; Fri, 21 Aug 2020 17:59:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5EE112BEA; Fri, 21 Aug 2020 17:59:54 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 7AFE22BE2 for ; Fri, 21 Aug 2020 17:59:52 +0200 (CEST) IronPort-SDR: daCZUdOFLOe1I7TCJZ00oY0CgJTGJgUOIIODlwZYTPDuYsIxO//RflU0lBVqBA40/zzQIIamNT evBYl/u/e7Mg== X-IronPort-AV: E=McAfee;i="6000,8403,9719"; a="135626422" X-IronPort-AV: E=Sophos;i="5.76,337,1592895600"; d="scan'208";a="135626422" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2020 08:59:51 -0700 IronPort-SDR: cCg3X+I6obFQlgzYZeTt+EpfQgYIlZD3NQRg67oB9PcXJYlN5BP9dmS8rNWSNj454RG0UoMizk bv+IDOCrwBDA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,337,1592895600"; d="scan'208";a="473094197" Received: from silpixa00399126.ir.intel.com ([10.237.222.56]) by orsmga005.jf.intel.com with ESMTP; 21 Aug 2020 08:59:49 -0700 From: Bruce Richardson To: Hemant Agrawal , Nipun Gupta Cc: dev@dpdk.org, Bruce Richardson Date: Fri, 21 Aug 2020 16:59:41 +0100 Message-Id: <20200821155945.29415-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/4] 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. Bruce Richardson (4): raw/ioat: support multiple devices being tested raw/ioat: include extra info in error messages app/test: change rawdev autotest to run selftest on all devs app/test: remove ioat-specific autotest app/test/test_rawdev.c | 38 +++++++++------- drivers/raw/ioat/ioat_rawdev_test.c | 69 ++++++++++++++++++++--------- 2 files changed, 68 insertions(+), 39 deletions(-) -- 2.25.1