From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH v2 4/8] eventdev/opdl: opdl eventdev pmd unit test function Date: Sat, 16 Dec 2017 17:42:16 +0530 Message-ID: <20171216121215.GB15284@jerin> References: <1513337189-137661-1-git-send-email-liang.j.ma@intel.com> <1513337189-137661-5-git-send-email-liang.j.ma@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, harry.van.haaren@intel.com, bruce.richardson@intel.com, deepak.k.jain@intel.com, john.geary@intel.com, peter.mccarthy@intel.com, seanbh@gmail.com To: Liang Ma Return-path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0044.outbound.protection.outlook.com [104.47.34.44]) by dpdk.org (Postfix) with ESMTP id 2A599107A for ; Sat, 16 Dec 2017 13:12:48 +0100 (CET) Content-Disposition: inline In-Reply-To: <1513337189-137661-5-git-send-email-liang.j.ma@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" -----Original Message----- > Date: Fri, 15 Dec 2017 11:26:25 +0000 > From: Liang Ma > To: jerin.jacob@caviumnetworks.com > CC: dev@dpdk.org, harry.van.haaren@intel.com, bruce.richardson@intel.com, > deepak.k.jain@intel.com, john.geary@intel.com, peter.mccarthy@intel.com, > seanbh@gmail.com > Subject: [PATCH v2 4/8] eventdev/opdl: opdl eventdev pmd unit test function > X-Mailer: git-send-email 2.7.5 > > This commit adds unit test inside the OPDL PMD. There is a PMd parameter > "self_test" can be used to triger the test when vdev bus probe opdl device > > e.g. > > sudo ./app/test --vdev="event_opdl0,self_test=1" > > Signed-off-by: Liang Ma > Signed-off-by: Peter, Mccarthy > --- > drivers/event/opdl/opdl_test.c | 1079 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 1079 insertions(+) > create mode 100644 drivers/event/opdl/opdl_test.c > > + > + > +/* destruction */ > +static inline int > +cleanup(struct test *t __rte_unused) > +{ > + rte_event_dev_stop(evdev); > + rte_event_dev_close(evdev); > + printf("cleanup for test done\n\n"); Replace printf with driver specific logging function across the files in the driver.