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 9C237A04D9; Thu, 3 Sep 2020 10:30:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 956E01C0B6; Thu, 3 Sep 2020 10:30:36 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 7A1DD1C0CC for ; Thu, 3 Sep 2020 10:30:35 +0200 (CEST) IronPort-SDR: 6FPlZcifyf6bsImeZ3HGQfeaGjwJVMuPTdeyRyCWG1EwI+bUzscZq57NR3J5C9SfstUUPENmH3 7O/HbZ2B0V6A== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753273" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753273" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2020 01:30:35 -0700 IronPort-SDR: kjZB51AN2m8I1g3oPhc/sAno+LanEqdWXpWBKnD2l8qonY5FSSW931SB8UbWG9HwcH/fMKsH0u IxEPqti8FnLg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404187" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:34 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:31 +0800 Message-Id: <20200903082839.30213-8-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 07/15] tests/TestSuite_unit_tests_lpm:update to 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: Chen Linglix --- tests/TestSuite_unit_tests_lpm.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/tests/TestSuite_unit_tests_lpm.py b/tests/TestSuite_unit_tests_lpm.py index 7a35935..dd4d534 100644 --- a/tests/TestSuite_unit_tests_lpm.py +++ b/tests/TestSuite_unit_tests_lpm.py @@ -73,9 +73,8 @@ class TestUnitTestsLpmIpv6(TestCase): Run lpm for IPv4 autotest. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect( - "./%s/app/test %s" - % (self.target,eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params, "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("lpm_autotest", "RTE>>", 120) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -85,9 +84,8 @@ class TestUnitTestsLpmIpv6(TestCase): Run lpm for IPv6 autotest. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect( - "./%s/app/test %s" - % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params, "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("lpm6_autotest", "RTE>>", 120) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -97,9 +95,8 @@ class TestUnitTestsLpmIpv6(TestCase): Run lpm for IPv4 performance autotest. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect( - "./%s/app/test %s" - % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params, "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("lpm_perf_autotest", "RTE>>", 600) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -109,9 +106,8 @@ class TestUnitTestsLpmIpv6(TestCase): Run lpm for IPv6 performance autotest. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect( - "./%s/app/test %s" - % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params, "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("lpm6_perf_autotest", "RTE>>", 120) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") -- 1.8.3.1