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 37DF9A04AA; Tue, 8 Sep 2020 09:29:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 30B541C0C9; Tue, 8 Sep 2020 09:29:49 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 07D8F1C0D8 for ; Tue, 8 Sep 2020 09:29:46 +0200 (CEST) IronPort-SDR: N8jtVwZN4fRgLGzagUNYR0JhCK8oNMTfYqSpt4tviDvAmmgyyfMTlO5AR+KoXuH8vPbTZ67+7/ fOSc5g77WBKg== X-IronPort-AV: E=McAfee;i="6000,8403,9737"; a="219646591" X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="219646591" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2020 00:29:46 -0700 IronPort-SDR: 6Lexk1wI8z04tzfCq2BcbhHdeNbEy5bX2RKPjKVOGDWZHDQIiD/+dPe0h9Q4EcZD9JxTw3Pzd7 ieGTG3ZxugOA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="377432711" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by orsmga001.jf.intel.com with ESMTP; 08 Sep 2020 00:29:45 -0700 From: "Zhou, Jun" To: dts@dpdk.org Cc: Zhou jun Date: Tue, 8 Sep 2020 07:18:04 +0000 Message-Id: <20200908071825.118583-18-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200908071825.118583-1-junx.w.zhou@intel.com> References: <20200908071825.118583-1-junx.w.zhou@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [dts 17/38] tests/TestSuite_link_status_interrupt.py: adapt to support both meson and makefile 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" From: Zhou jun Signed-off-by: Zhou jun --- tests/TestSuite_link_status_interrupt.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_link_status_interrupt.py b/tests/TestSuite_link_status_interrupt.py index 3208d71..68ffb04 100644 --- a/tests/TestSuite_link_status_interrupt.py +++ b/tests/TestSuite_link_status_interrupt.py @@ -54,8 +54,7 @@ class TestLinkStatusInterrupt(TestCase): cores = self.dut.get_core_list("1S/4C/1T") self.coremask = utils.create_mask(cores) self.portmask = utils.create_mask(self.dut_ports) - - self.path = "./examples/link_status_interrupt/build/link_status_interrupt" + self.app_link_status_interrupt_path = self.dut.apps_name['link_status_interrupt'] # build sample app out = self.dut.build_dpdk_apps("./examples/link_status_interrupt") @@ -95,7 +94,7 @@ class TestLinkStatusInterrupt(TestCase): """ if self.drivername == "igb_uio": - cmdline = self.path + " -c %s -n %s -- -p %s " % ( + cmdline = self.app_link_status_interrupt_path + " -c %s -n %s -- -p %s " % ( self.coremask, self.dut.get_memory_channels(), self.portmask) for mode in self.basic_intr_mode: self.dut.send_expect("rmmod -f igb_uio", "#", 20) @@ -111,7 +110,7 @@ class TestLinkStatusInterrupt(TestCase): self.dut.send_expect("^C", "#", 60) elif self.drivername == "vfio-pci": for mode in self.basic_intr_mode: - cmdline = self.path + " -c %s -n %s --vfio-intr=%s -- -p %s" % ( + cmdline = self.app_link_status_interrupt_path + " -c %s -n %s --vfio-intr=%s -- -p %s" % ( self.coremask, self.dut.get_memory_channels(), mode, self.portmask) self.dut.send_expect(cmdline, "statistics", 120) self.set_link_status_and_verify(self.dut_ports[0], 'Down') @@ -124,7 +123,7 @@ class TestLinkStatusInterrupt(TestCase): sent packet, check packets received. """ if self.drivername == "igb_uio": - cmdline = self.path + " -c %s -n %s -- -p %s " % ( + cmdline = self.app_link_status_interrupt_path + " -c %s -n %s -- -p %s " % ( self.coremask, self.dut.get_memory_channels(), self.portmask) for mode in self.basic_intr_mode: self.dut.send_expect("rmmod -f igb_uio", "#", 20) @@ -148,7 +147,7 @@ class TestLinkStatusInterrupt(TestCase): self.dut.send_expect("^C", "#", 60) elif self.drivername == "vfio-pci": for mode in self.basic_intr_mode: - cmdline = self.path + " -c %s -n %s --vfio-intr=%s -- -p %s" % ( + cmdline = self.app_link_status_interrupt_path + " -c %s -n %s --vfio-intr=%s -- -p %s" % ( self.coremask, self.dut.get_memory_channels(), mode, self.portmask) self.dut.send_expect(cmdline, "Aggregate statistics", 60) for port in self.dut_ports: -- 1.8.3.1