From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id D322FA0465 for ; Wed, 29 May 2019 10:40:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C54CC1B944; Wed, 29 May 2019 10:40:27 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 86CE937A2 for ; Wed, 29 May 2019 10:40:26 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 May 2019 01:40:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,526,1549958400"; d="scan'208";a="179507447" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 29 May 2019 01:40:25 -0700 From: changqingxwu To: dts@dpdk.org Cc: changqingxwu Date: Wed, 29 May 2019 16:40:41 +0800 Message-Id: <1559119241-112216-1-git-send-email-changqingx.wu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests:change the methods of build example apps 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" Avoid finding not the RTE_SDK variable when compiling dpdk or example/app, and modifying the compilation method. Signed-off-by: changqingxwu --- tests/TestSuite_kni.py | 2 +- tests/TestSuite_l3fwdacl.py | 2 +- tests/TestSuite_loadbalancer.py | 2 +- tests/TestSuite_ptpclient.py | 2 +- tests/TestSuite_quota_watermark.py | 2 +- tests/TestSuite_userspace_ethtool.py | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py index 641d8b0..aa189f5 100644 --- a/tests/TestSuite_kni.py +++ b/tests/TestSuite_kni.py @@ -261,7 +261,7 @@ class TestKni(TestCase): self.dut.send_expect("sed -i -e 's/KNI_KMOD_ETHTOOL=n$/KNI_KMOD_ETHTOOL=y/' config/common_base", "# ", 30) self.dut.build_install_dpdk(self.target) - out = self.dut.send_expect("make -C ./examples/kni/", "# ", 5) + out = self.dut.build_dpdk_apps("./examples/kni/") self.verify('Error' not in out, "Compilation failed") self.extract_ports_cores_config(default_1_port_cores_config) diff --git a/tests/TestSuite_l3fwdacl.py b/tests/TestSuite_l3fwdacl.py index 221417a..9d1c41e 100644 --- a/tests/TestSuite_l3fwdacl.py +++ b/tests/TestSuite_l3fwdacl.py @@ -652,7 +652,7 @@ class TestL3fwdacl(TestCase): TestL3fwdacl.default_rule["Port"] = self.dut_ports[1] # compile l3fwd-acl - out = self.dut.send_expect("make -C examples/l3fwd-acl", "# ") + out = self.dut.build_dpdk_apps("examples/l3fwd-acl") self.verify("Error" not in out, "compilation error 1") self.verify("No such file" not in out, "compilation error 2") diff --git a/tests/TestSuite_loadbalancer.py b/tests/TestSuite_loadbalancer.py index fdda939..9152c6c 100644 --- a/tests/TestSuite_loadbalancer.py +++ b/tests/TestSuite_loadbalancer.py @@ -55,7 +55,7 @@ class TestLoadbalancer(TestCase): "Flow4": [rx_port3, "1.0.3.1"], } - out = self.dut.send_expect("make -C examples/load_balancer", "#") + out = self.dut.build_dpdk_apps("examples/load_balancer") self.verify("Error" not in out, "compilation error 1") self.verify("No such file" not in out, "compilation error 2") diff --git a/tests/TestSuite_ptpclient.py b/tests/TestSuite_ptpclient.py index 27d0714..23590e4 100644 --- a/tests/TestSuite_ptpclient.py +++ b/tests/TestSuite_ptpclient.py @@ -59,7 +59,7 @@ class TestPtpClient(TestCase): self.dut.build_install_dpdk(self.target) # build sample app - out = self.dut.send_expect("make -C examples/ptpclient", "# ") + out = self.dut.build_dpdk_apps("examples/ptpclient") self.verify("Error" not in out, "compilation error 1") self.verify("No such file" not in out, "compilation error 2") diff --git a/tests/TestSuite_quota_watermark.py b/tests/TestSuite_quota_watermark.py index aabb2fd..ad4ec3b 100644 --- a/tests/TestSuite_quota_watermark.py +++ b/tests/TestSuite_quota_watermark.py @@ -112,7 +112,7 @@ class TestQuotaWatermark(TestCase, IxiaPacketGenerator): Builds the example app and checks for errors. """ - out = self.dut.send_expect("make -C examples/quota_watermark", "# ") + out = self.dut.build_dpdk_apps("examples/quota_watermark") self.verify("Error" not in out and "No such file" not in out, "Compilation error") diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py index f8428ea..dba988b 100644 --- a/tests/TestSuite_userspace_ethtool.py +++ b/tests/TestSuite_userspace_ethtool.py @@ -58,7 +58,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): self.verify(len(self.ports) >= 2, "No ports found for " + self.nic) # build sample app - out = self.dut.send_expect("make -C examples/ethtool", "# ") + out = self.dut.build_dpdk_apps("examples/ethtool") self.verify("Error" not in out, "compilation error 1") self.verify("No such file" not in out, "compilation error 2") @@ -80,7 +80,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): pass def build_ethtool(self): - out = self.dut.send_expect("make -C examples/ethtool", "# ") + out = self.dut.build_dpdk_apps("examples/ethtool") self.verify("Error" not in out, "compilation error 1") self.verify("No such file" not in out, "compilation error 2") -- 2.17.2