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 34794A04EF; Tue, 2 Jun 2020 07:49:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E897B1BFBC; Tue, 2 Jun 2020 07:49:07 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 608921BFB9 for ; Tue, 2 Jun 2020 07:49:06 +0200 (CEST) IronPort-SDR: DpzdO3R1EXCOfVFzmopCTCJuPX9cEcIgMJo3Vhm0afn/DM2hOGECk+wrQkiSmVLngOanbhz5mj 2Q2b8sM7nsTg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2020 22:49:04 -0700 IronPort-SDR: YmLImOwGmUDa7nKza+sn/RSenYjYpG1LRjgdzfE0iYCof1yNrDGeWIZjzNOVQ3QQrUatdk3nyZ aCCYLq+Ku5Zg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,463,1583222400"; d="scan'208";a="304114693" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga008.jf.intel.com with ESMTP; 01 Jun 2020 22:49:04 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 1 Jun 2020 22:49:04 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 1 Jun 2020 22:48:03 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.4]) with mapi id 14.03.0439.000; Tue, 2 Jun 2020 13:47:59 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]unit_tests_loopback: update compile cmd of app/test Thread-Index: AQHWKCOGfizqax4KMkyUkIRdglKLO6jE8nEA Date: Tue, 2 Jun 2020 05:47:59 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC56EE7@SHSMSX101.ccr.corp.intel.com> References: <1589263099-220942-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1589263099-220942-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1]unit_tests_loopback: update compile cmd of app/test 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Tuesday, May 12, 2020 1:58 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1]unit_tests_loopback: update compile cmd of > app/test >=20 > *. update compile cmd of app/test according to dpdk's update >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_unit_tests_loopback.py | 24 +++++++++++++----------- > 1 file changed, 13 insertions(+), 11 deletions(-) >=20 > diff --git a/tests/TestSuite_unit_tests_loopback.py > b/tests/TestSuite_unit_tests_loopback.py > index 68b1f30..c1d37b2 100644 > --- a/tests/TestSuite_unit_tests_loopback.py > +++ b/tests/TestSuite_unit_tests_loopback.py > @@ -70,6 +70,8 @@ class TestUnitTestsLoopback(TestCase): > self.verify(self.arch in ["x86_64", "arm64"], "pmd perf request = running > in x86_64 or arm64") > self.max_traffic_burst =3D self.get_max_traffic_burst() > self.dut.send_expect("sed -i -e 's/#define > MAX_TRAFFIC_BURST %s/#define MAX_TRAFFIC_BURST = 32/' > app/test/test_pmd_perf.c" % self.max_traffic_burst, "# ", 30) > + self.tmp_path =3D '/tmp/test_pmd_perf.c' > + self.dut.send_expect("cp app/test/test_pmd_perf.c %s" % > + self.tmp_path, "# ") >=20 > def set_up(self): > """ > @@ -90,14 +92,14 @@ class TestUnitTestsLoopback(TestCase): > Run pmd stream control mode burst test case. > """ > self.dut.send_expect("sed -i -e 's/lpbk_mode =3D 0/lpbk_mode =3D= 1/' > app/test/test_pmd_perf.c", "# ", 30) > - out =3D self.dut.build_dpdk_apps('app/test') > - self.verify("Error" not in out, "Compilation error") > + out =3D self.dut.send_expect("make -j %s app/test_sub O=3D%s" % > (self.dut.number_of_cores, self.target), "#") > + self.verify("Error" not in out, "compilation l3fwd-power > + error") > self.verify("No such" not in out, "Compilation error") >=20 > self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#") > - self.tester.send_expect("tcpdump -i %s -w ./getPackageByTcpdump.= cap > 2> /dev/null& " % self.tester_itf, "#") > + self.tester.send_expect("tcpdump -i %s ether[12:2] !=3D '0x88cc' > + -w ./getPackageByTcpdump.cap 2> /dev/null& " % self.tester_itf, "#") > eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= ) > - self.dut.send_expect("./app/test/test %s" % (eal_params), > "R.*T.*E.*>.*>", 60) > + self.dut.send_expect("./%s/app/test %s" % (self.target, > + eal_params), "R.*T.*E.*>.*>", 60) > out =3D self.dut.send_expect("pmd_perf_autotest", "RTE>>", 120) > print(out) > self.dut.send_expect("quit", "# ") @@ -113,14 +115,14 @@ class > TestUnitTestsLoopback(TestCase): > """ > self.dut.send_expect("sed -i -e 's/lpbk_mode =3D 1/lpbk_mode =3D= 0/' > app/test/test_pmd_perf.c", "# ", 30) > self.dut.send_expect("sed -i -e '/check_all_ports_link_status(nb= _ports, > RTE_PORT_ALL);/a\ sleep(6);' app/test/test_pmd_perf.c", "# ", 30) > - out =3D self.dut.build_dpdk_apps('app/test') > - self.verify("Error" not in out, "Compilation error") > + out =3D self.dut.send_expect("make -j %s app/test_sub O=3D%s" % > (self.dut.number_of_cores, self.target), "#") > + self.verify("Error" not in out, "compilation l3fwd-power > + error") > self.verify("No such" not in out, "Compilation error") >=20 > self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#") > self.tester.send_expect("tcpdump -i %s -w ./getPackageByTcpdump.= cap > 2> /dev/null& " % self.tester_itf, "#") > eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= ) > - self.dut.send_expect("./app/test/test %s" % (eal_params), > "R.*T.*E.*>.*>", 60) > + self.dut.send_expect("./%s/app/test %s" % (self.target, > + eal_params), "R.*T.*E.*>.*>", 60) > self.dut.send_command("pmd_perf_autotest", 30) > # There is no packet loopback, so the test is hung. > # It needs to kill the process manually. > @@ -133,16 +135,16 @@ class TestUnitTestsLoopback(TestCase): > """ > Run after each test case. > """ > + self.dut.send_expect("cp %s app/test/test_pmd_perf.c" % > + self.tmp_path, "# ") > self.dut.kill_all() >=20 > def tear_down_all(self): > """ > Run after each test suite. > """ > - self.dut.send_expect("sed -i -e 's/lpbk_mode =3D 0/lpbk_mode =3D= 1/' > app/test/test_pmd_perf.c", "# ", 30) > - self.dut.send_expect("sed -i -e '/sleep(6)/d' app/test/test_pmd_= perf.c", > "# ", 30) > + self.dut.send_expect("cp %s app/test/test_pmd_perf.c" % > + self.tmp_path, "# ") > self.dut.send_expect("sed -i -e 's/#define MAX_TRAFFIC_BURST > 32/#define MAX_TRAFFIC_BURST %s/' app/test/test_pmd_perf.c" = % > self.max_traffic_burst, "# ", 30) > - out =3D self.dut.build_dpdk_apps('app/test') > - self.verify("Error" not in out, "Compilation error") > + out =3D self.dut.send_expect("make -j %s app/test_sub O=3D%s" % > (self.dut.number_of_cores, self.target), "#") > + self.verify("Error" not in out, "compilation l3fwd-power > + error") > self.verify("No such" not in out, "Compilation error") > self.dut.kill_all() > -- > 1.8.3.1