From patchwork Mon Feb 22 11:19:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: skalal@marvell.com X-Patchwork-Id: 90356 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 B8E49A09E4; Thu, 1 Apr 2021 13:21:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A531314108C; Thu, 1 Apr 2021 13:21:57 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id A06BC4003C for ; Mon, 22 Feb 2021 12:19:35 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11MBJWiv027619 for ; Mon, 22 Feb 2021 03:19:34 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=HYI59iz7TrfOCaGRgVEZagqvJ/jn8ejPeNojxAqxll0=; b=T3tLg2rbkMTZCuOlldaEoe8CLKWGr84tC+kr2SrLbdNmCUCo2k30Zf7auQIr9JCTwJDt BJ/X9vkgNR5tZ1T+K9t7jmGO8oOKO6MH2YaP1LztP0BZv2XnYfSKocm4ZmQmUiXgmQIi I8dRIn8BqDk6gWk0eG6DzItQ4vlIoifqpyzglL89SicLRGvG14h71fbbC+hT8A/qp8Zx tEeJywIMKHxDKClZMqZgFyIpvyQmMwJj5h9oqjj639yBDOn5DeOMMUaPWbfmIdwAGs1r Wr8Xt/6RF/DeqPJPckdXxfCalrDduN7lAqlju4+ZJRYVnJIAbC0lEBUmjXHsLDaOm2lB gQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 36u2tu3pc0-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 22 Feb 2021 03:19:33 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 22 Feb 2021 03:19:32 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 22 Feb 2021 03:19:32 -0800 Received: from localhost.marvell.com (unknown [10.28.8.29]) by maili.marvell.com (Postfix) with ESMTP id 888023F703F; Mon, 22 Feb 2021 03:19:31 -0800 (PST) From: To: CC: , , skalal Date: Mon, 22 Feb 2021 16:49:28 +0530 Message-ID: <20210222111928.21243-1-skalal@marvell.com> X-Mailer: git-send-email 2.9.5 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-02-22_02:2021-02-18, 2021-02-22 signatures=0 X-Mailman-Approved-At: Thu, 01 Apr 2021 13:21:56 +0200 Subject: [dts] [PATCH] tests/TestSuite_unit_tests_event_timer.py: Added an identifier for the "test" app. X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: skalal Signed-off-by: skalal --- tests/TestSuite_unit_tests_event_timer.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_unit_tests_event_timer.py b/tests/TestSuite_unit_tests_event_timer.py index fcb54cf..22c316e 100644 --- a/tests/TestSuite_unit_tests_event_timer.py +++ b/tests/TestSuite_unit_tests_event_timer.py @@ -52,10 +52,11 @@ class TestUnitTestEventTimer(TestCase): self.coremask = utils.create_mask(cores) # Based on h/w type, choose how many ports to use self.dut_ports = self.dut.get_ports() + self.app_name = self.dut.apps_name['test'] if self.nic == "cavium_a063" or self.nic == "cavium_a064": self.eventdev_device_bus_id = "0002:0e:00.0" - self.eventdev_device_id = "a0f9" + self.eventdev_device_id = "a0f9" #### Bind evendev device #### self.dut.bind_eventdev_port(port_to_bind=self.eventdev_device_bus_id) @@ -65,7 +66,6 @@ class TestUnitTestEventTimer(TestCase): self.eventdev_timer_device_bus_id = "0000:0a:01.0" self.dut.bind_eventdev_port(port_to_bind=self.eventdev_timer_device_bus_id) - def set_up(self): """ Run before each test case. @@ -78,15 +78,14 @@ class TestUnitTestEventTimer(TestCase): """ if self.nic == "cavium_a063" or self.nic == "cavium_a064": - self.dut.send_expect("./%s/app/test -n 1 -c %s -w %s,single_ws=1,tim_stats_ena=1" % (self.target, self.coremask, self.eventdev_device_bus_id), "R.*T.*E.*>.*>", 60) + self.dut.send_expect("./%s -n 1 -c %s -w %s,single_ws=1,tim_stats_ena=1" % (self.app_name, self.coremask, self.eventdev_device_bus_id), "R.*T.*E.*>.*>", 60) elif self.nic == "cavium_a034": - self.dut.send_expect("./%s/app/test -n 1 -c %s -w %s,timvf_stats=1" % (self.target, self.coremask, self.eventdev_timer_device_bus_id), "R.*T.*E.*>.*>", 60) + self.dut.send_expect("./%s -n 1 -c %s -w %s,timvf_stats=1" % (self.app_name, self.coremask, self.eventdev_timer_device_bus_id), "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("event_timer_adapter_test", "RTE>>", 300) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") return 'SUCCESS' - def tear_down(self): """ Run after each test case.