From patchwork Wed Aug 26 10:15:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 75956 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1B367A04B1; Wed, 26 Aug 2020 04:17:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 08402AAB7; Wed, 26 Aug 2020 04:17:54 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 468B31F1C for ; Wed, 26 Aug 2020 04:17:52 +0200 (CEST) IronPort-SDR: c8V68hnMAh6K3veEDkOIoWLi9cHEIIdJvktOeh8vaia7aQdLbov692FXpRQvbYk697zcF6lAfC 9K2nU4bCXMHg== X-IronPort-AV: E=McAfee;i="6000,8403,9724"; a="135776301" X-IronPort-AV: E=Sophos;i="5.76,354,1592895600"; d="scan'208";a="135776301" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2020 19:17:51 -0700 IronPort-SDR: Xc27DrYUJn+p0H2GPeCn59QMxe1ruYy/5vUM55euvzstWH4FV8QEdeAo/Sdy9/P1WGPS1Q1KUc cVZ5c7JS/jeg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,354,1592895600"; d="scan'208";a="402925674" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga001.fm.intel.com with ESMTP; 25 Aug 2020 19:17:50 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Wed, 26 Aug 2020 10:15:17 +0000 Message-Id: <20200826101522.110423-2-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200826101522.110423-1-weix.ling@intel.com> References: <20200826101522.110423-1-weix.ling@intel.com> Subject: [dts] [dts 1/6] tests/TestSuite_metrics:support meson build X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" Signed-off-by: lingwei --- tests/TestSuite_metrics.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tests/TestSuite_metrics.py b/tests/TestSuite_metrics.py index 7fef17d..d1b7fe9 100644 --- a/tests/TestSuite_metrics.py +++ b/tests/TestSuite_metrics.py @@ -75,14 +75,6 @@ class TestMetrics(TestCase): output2 = self.dut.alt_session.session.get_session_before(2) return output + os.linesep + output2 - @property - def target_dir(self): - # get absolute directory of target source code - target_dir = '/root' + self.dut.base_dir[1:] \ - if self.dut.base_dir.startswith('~') else \ - self.dut.base_dir - return target_dir - def get_pkt_len(self, pkt_type, frame_size=64): headers_size = sum( [HEADER_SIZE[x] for x in ['eth', 'ip', pkt_type]]) @@ -188,8 +180,8 @@ class TestMetrics(TestCase): def init_proc_info_tool(self): option = f' -v --file-prefix={self.prefix} -- --metrics' - self.dpdk_proc = os.path.join( - self.target_dir, self.target, "app", "dpdk-procinfo" + option) + app_name = self.dut.apps_name['proc-info'] + self.dpdk_proc = os.path.join(app_name + option) self.metrics_stat = [] def proc_info_query(self, flag=None): From patchwork Wed Aug 26 10:15:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 75957 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3DA42A04B1; Wed, 26 Aug 2020 04:17:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 345571B94F; Wed, 26 Aug 2020 04:17:56 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 5C49D1F1C for ; Wed, 26 Aug 2020 04:17:55 +0200 (CEST) IronPort-SDR: bOWgiQGFZgXWfgXpAj//5dVuIyHfflTsIjDkV92HPtruoeuGU3Jz3iNpcOpgL02UHGoz23Q72U KhIW0sd59PRQ== X-IronPort-AV: E=McAfee;i="6000,8403,9724"; a="135776305" X-IronPort-AV: E=Sophos;i="5.76,354,1592895600"; d="scan'208";a="135776305" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2020 19:17:55 -0700 IronPort-SDR: YJewcJbvNfaNvVljMoXodBRUvkw3w22xMCbpwUmcZJ0joSYmlYddswmpDuN0/WvsmN8FH7q2zV P9i3vRIk2oDg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,354,1592895600"; d="scan'208";a="402925681" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga001.fm.intel.com with ESMTP; 25 Aug 2020 19:17:53 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Wed, 26 Aug 2020 10:15:18 +0000 Message-Id: <20200826101522.110423-3-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200826101522.110423-1-weix.ling@intel.com> References: <20200826101522.110423-1-weix.ling@intel.com> Subject: [dts] [dts 2/6] tests/TestSuite_af_xdp_2:support meson build X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" Signed-off-by: lingwei --- tests/TestSuite_af_xdp_2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_af_xdp_2.py b/tests/TestSuite_af_xdp_2.py index 4397597..f1d495f 100644 --- a/tests/TestSuite_af_xdp_2.py +++ b/tests/TestSuite_af_xdp_2.py @@ -188,9 +188,9 @@ class TestAfXdp(TestCase): eal_params = self.dut.create_eal_parameters(cores=self.core_list[:-max(self.port_num, self.vdev_num) * self.queue_number], vdevs=vdev, no_pci=True) - command_line = "./%s/app/testpmd %s --log-level=pmd.net.af_xdp:8 -- -i %s %s --auto-start --nb-cores=%d --rxq=%d --txq=%d %s" - command = command_line % (self.dut.target, eal_params, fwd_mode, rss_ip, - self.nb_cores, self.queue_number, self.queue_number, topology) + app_name = self.dut.apps_name['test-pmd'] + command = app_name + " %s --log-level=pmd.net.af_xdp:8 -- -i %s %s --auto-start --nb-cores=%d --rxq=%d " \ + "--txq=%d %s" % (eal_params, fwd_mode, rss_ip, self.nb_cores, self.queue_number, self.queue_number, topology) self.logger.info('start testpmd') self.dut.send_expect(command, "testpmd> ", 120) From patchwork Wed Aug 26 10:15:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 75958 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6460AA04B1; Wed, 26 Aug 2020 04:17:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5705058C4; Wed, 26 Aug 2020 04:17:58 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 4AC801F1C for ; Wed, 26 Aug 2020 04:17:57 +0200 (CEST) IronPort-SDR: 4JcThOO6+0usE96eTJ4OBeKvDqa7r5NKzsBroiT3UmCeEf+FZ3zdS5KASmoRaTPSp3BI80BuU9 TL7WQBsXymZw== X-IronPort-AV: E=McAfee;i="6000,8403,9724"; a="135776307" X-IronPort-AV: E=Sophos;i="5.76,354,1592895600"; d="scan'208";a="135776307" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2020 19:17:56 -0700 IronPort-SDR: +k63xw58dBLAMyz43DsaxayPcfv3efOHUDYDffYmTQhyYrbgbuFCZg5flZ7MfBIyRTKEytx0Fy CtkzC9/n/gFw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,354,1592895600"; d="scan'208";a="402925687" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga001.fm.intel.com with ESMTP; 25 Aug 2020 19:17:56 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Wed, 26 Aug 2020 10:15:19 +0000 Message-Id: <20200826101522.110423-4-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200826101522.110423-1-weix.ling@intel.com> References: <20200826101522.110423-1-weix.ling@intel.com> Subject: [dts] [dts 3/6] tests/TestSuite_macsec_for_ixgbe.py:support meson build X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" Signed-off-by: lingwei --- tests/TestSuite_macsec_for_ixgbe.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_macsec_for_ixgbe.py b/tests/TestSuite_macsec_for_ixgbe.py index a50173a..4b010d0 100644 --- a/tests/TestSuite_macsec_for_ixgbe.py +++ b/tests/TestSuite_macsec_for_ixgbe.py @@ -70,17 +70,20 @@ class TestMacsecForIxgbe(TestCase): def start_testpmd_rx(self): eal_params = self.dut.create_eal_parameters(cores=self.core_list[0:2], ports=[self.pci_rx], prefix='rx') - cmd_rx = self.target + '/app/testpmd ' + eal_params + '-- -i --port-topology=chained' + app_name = self.dut.apps_name['test-pmd'] + cmd_rx = app_name + eal_params + '-- -i --port-topology=chained' return self.dut.send_expect(cmd_rx, "testpmd", 120) def start_testpmd_tx(self): eal_params = self.dut.create_eal_parameters(cores=self.core_list[2:4], ports=[self.pci_tx], prefix='tx') - cmd_tx = self.target + '/app/testpmd ' + eal_params + '-- -i --port-topology=chained' + app_name = self.dut.apps_name['test-pmd'] + cmd_tx = app_name + eal_params + '-- -i --port-topology=chained' return self.session_sec.send_expect(cmd_tx, "testpmd", 120) def start_testpmd_perf(self): eal_params = self.dut.create_eal_parameters(cores=self.core_list[0:2]) - cmd = self.target + '/app/testpmd ' + eal_params + '-- -i --port-topology=chained' + app_name = self.dut.apps_name['test-pmd'] + cmd = app_name + eal_params + '-- -i --port-topology=chained' self.dut.send_expect(cmd, "testpmd", 120) self.rx_set_macsec_offload('on', 'on') self.dut.send_expect("set fwd mac", "testpmd>", 2) From patchwork Wed Aug 26 10:15:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 75959 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 898DBA04B1; Wed, 26 Aug 2020 04:18:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 80CED4F9C; Wed, 26 Aug 2020 04:18:00 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 3BB521F1C for ; Wed, 26 Aug 2020 04:17:59 +0200 (CEST) IronPort-SDR: SBus1CPIo/nrWxXT3sufEftrrkAQkUEIZkhsWNDLJZ0r+pozkqBgY1bhFCSOJDSNarB/vjxj+L 6JQyf1e+CSlg== X-IronPort-AV: E=McAfee;i="6000,8403,9724"; a="135776309" X-IronPort-AV: E=Sophos;i="5.76,354,1592895600"; d="scan'208";a="135776309" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2020 19:17:58 -0700 IronPort-SDR: 0Pi/D3C99kFQY8qjzPMXJErVbYghBkwk8ow39b3K50bBzrwzvEGse6N29mV0Y6+bAsRyJzutqB CRQy3o9pvfDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,354,1592895600"; d="scan'208";a="402925693" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga001.fm.intel.com with ESMTP; 25 Aug 2020 19:17:57 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Wed, 26 Aug 2020 10:15:20 +0000 Message-Id: <20200826101522.110423-5-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200826101522.110423-1-weix.ling@intel.com> References: <20200826101522.110423-1-weix.ling@intel.com> Subject: [dts] [dts 4/6] tests/TestSuite_packet_ordering:support meson build X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" Signed-off-by: lingwei --- tests/TestSuite_packet_ordering.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_packet_ordering.py b/tests/TestSuite_packet_ordering.py index ac6b930..067e886 100644 --- a/tests/TestSuite_packet_ordering.py +++ b/tests/TestSuite_packet_ordering.py @@ -66,7 +66,8 @@ class TestPacketOrdering(TestCase): self.port_mask = utils.create_mask(valports) # Builds the packet ordering example app and checks for errors. - out = self.dut.send_expect("make -C examples/packet_ordering", "#") + # out = self.dut.send_expect("make -C examples/packet_ordering", "#") + out = self.dut.build_dpdk_apps("./examples/packet_ordering") self.verify("Error" not in out and "No such file" not in out, "Compilation error") @@ -78,7 +79,8 @@ class TestPacketOrdering(TestCase): def start_application(self): - cmdline = './examples/packet_ordering/build/packet_ordering -c {0} -n {1} -- -p {2}' . \ + app_name = self.dut.apps_name['packet_ordering'] + cmdline = app_name + '-c {0} -n {1} -- -p {2}'.\ format(self.core_mask, self.dut.get_memory_channels(), self.port_mask) # Executes the packet ordering example app. self.dut.send_expect(cmdline, 'REORDERAPP', 120) From patchwork Wed Aug 26 10:15:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 75960 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B2902A04B1; Wed, 26 Aug 2020 04:18:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A56E51BE51; Wed, 26 Aug 2020 04:18:02 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 51A361F1C for ; Wed, 26 Aug 2020 04:18:01 +0200 (CEST) IronPort-SDR: f6fCym3TNOIp5/Qa5wHEsqFtR5UCaCNSXaW5LcXlFhRqc3ejEYgRmv3gSYxSHM4pAhlsGWwFSF sqHg2LCU9YbA== X-IronPort-AV: E=McAfee;i="6000,8403,9724"; a="135776310" X-IronPort-AV: E=Sophos;i="5.76,354,1592895600"; d="scan'208";a="135776310" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2020 19:18:00 -0700 IronPort-SDR: nhgDYgRBcRsxok0PdYs5ssh6PYTXED0YD1NUxLpQTor1j87MG6ualxR8oCVMyyezzd6RRR9vRr sI0NsHfJAYLA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,354,1592895600"; d="scan'208";a="402925698" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga001.fm.intel.com with ESMTP; 25 Aug 2020 19:17:59 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Wed, 26 Aug 2020 10:15:21 +0000 Message-Id: <20200826101522.110423-6-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200826101522.110423-1-weix.ling@intel.com> References: <20200826101522.110423-1-weix.ling@intel.com> Subject: [dts] [dts 5/6] tests/TestSuite_qos_meter.py:support meson build X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" Signed-off-by: lingwei --- tests/TestSuite_qos_meter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_qos_meter.py b/tests/TestSuite_qos_meter.py index af15e0a..fa19312 100644 --- a/tests/TestSuite_qos_meter.py +++ b/tests/TestSuite_qos_meter.py @@ -78,7 +78,8 @@ class TestQosMeter(TestCase): self.verify("Error" not in out, "Compilation error") self.verify("No such" not in out, "Compilation error") eal_params = self.dut.create_eal_parameters(cores='1S/1C/1T', fixed_prefix=True, prefix='qos_meter') - cmd = './examples/qos_meter/build/qos_meter ' + eal_params + '-- -p 0x3' + app_name = self.dut.apps_name['qos_meter'] + cmd = app_name + eal_params + '-- -p 0x3' self.dut.send_expect(cmd, "TX = 1") payload_size = 64 - HEADER_SIZE['eth'] - HEADER_SIZE['ip'] dts_mac = self.dut.get_mac_address(self.dut_ports[self.rx_port]) From patchwork Wed Aug 26 10:15:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 75961 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D7389A04B1; Wed, 26 Aug 2020 04:18:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CDAA91BE88; Wed, 26 Aug 2020 04:18:04 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 6B5951F1C for ; Wed, 26 Aug 2020 04:18:03 +0200 (CEST) IronPort-SDR: 3ZlqtlOYNaS9um0osnIb2C5oS4LJjwVeGS4/G+I8fkYvIlvJMe+h6tY1PHokTtsPp/ob+9mm+k 2GrlxVlT866A== X-IronPort-AV: E=McAfee;i="6000,8403,9724"; a="135776311" X-IronPort-AV: E=Sophos;i="5.76,354,1592895600"; d="scan'208";a="135776311" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2020 19:18:03 -0700 IronPort-SDR: Y/EdU8q2YsAaV/vaBh+/W73KsHUc8RiUGAupb4EIljhZUXLDZjX+AJivk+vqhcpXMOagfbgS7u HrFuLhLDbBdQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,354,1592895600"; d="scan'208";a="402925711" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga001.fm.intel.com with ESMTP; 25 Aug 2020 19:18:02 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Wed, 26 Aug 2020 10:15:22 +0000 Message-Id: <20200826101522.110423-7-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200826101522.110423-1-weix.ling@intel.com> References: <20200826101522.110423-1-weix.ling@intel.com> Subject: [dts] [dts 6/6] tests/TestSuite_vmdq_dcb:support meson build X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" Signed-off-by: lingwei --- tests/TestSuite_vmdq_dcb.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_vmdq_dcb.py b/tests/TestSuite_vmdq_dcb.py index 6c71365..70d3dc4 100644 --- a/tests/TestSuite_vmdq_dcb.py +++ b/tests/TestSuite_vmdq_dcb.py @@ -86,7 +86,7 @@ class TestVmdqDcb(TestCase): """ Build example "Vmdq_dcb". """ - out = self.dut.send_expect("make -C examples/vmdq_dcb", "#", 10) + out = self.dut.build_dpdk_apps("examples/vmdq_dcb") self.verify("Error" not in out, "Compilation error") def rebuild_dpdk(self, nb_queue_per_vm=4): @@ -114,8 +114,10 @@ class TestVmdqDcb(TestCase): for i in self.dut_ports: eal_param += " -w %s" % self.dut.ports_info[i]['pci'] # Run the application - self.dut.send_expect("./examples/vmdq_dcb/build/vmdq_dcb_app -c %s -n 4 %s -- -p %s --nb-pools %s --nb-tcs %s " - "--enable-rss" % (core_mask, eal_param, port_mask, str(npools), str(ntcs)), "reading queues", 120) + app_name = self.dut.apps_name['vmdq_dcb'] + command = app_name + "-c %s -n 4 %s -- -p %s --nb-pools %s --nb-tcs %s " \ + "--enable-rss" % (core_mask, eal_param, port_mask, str(npools), str(ntcs)) + self.dut.send_expect(command, "reading queues", 120) def create_pcaps(self, prios): """