test suite reviews and discussions
 help / color / mirror / Atom feed
From: Chen Linglix <linglix.chen@intel.com>
To: dts@dpdk.org
Cc: Chen Linglix <linglix.chen@intel.com>
Subject: [dts] [dts 06/15] tests/TestSuite_unit_tests_loopback:update to support meson build
Date: Thu,  3 Sep 2020 16:28:30 +0800	[thread overview]
Message-ID: <20200903082839.30213-7-linglix.chen@intel.com> (raw)
In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com>

Signed-off-by: Chen Linglix <linglix.chen@intel.com>
---
 tests/TestSuite_unit_tests_loopback.py | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/tests/TestSuite_unit_tests_loopback.py b/tests/TestSuite_unit_tests_loopback.py
index c1d37b2..6babc2a 100644
--- a/tests/TestSuite_unit_tests_loopback.py
+++ b/tests/TestSuite_unit_tests_loopback.py
@@ -92,14 +92,13 @@ class TestUnitTestsLoopback(TestCase):
         Run pmd stream control mode burst test case.
         """
         self.dut.send_expect("sed -i -e 's/lpbk_mode = 0/lpbk_mode = 1/' app/test/test_pmd_perf.c", "# ", 30)
-        out = self.dut.send_expect("make -j %s app/test_sub O=%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.build_install_dpdk(self.target)
 
         self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#")
         self.tester.send_expect("tcpdump -i %s ether[12:2] != '0x88cc' -w ./getPackageByTcpdump.cap 2> /dev/null& " % self.tester_itf, "#")
         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("pmd_perf_autotest", "RTE>>", 120)
         print(out)
         self.dut.send_expect("quit", "# ")
@@ -115,14 +114,13 @@ class TestUnitTestsLoopback(TestCase):
         """
         self.dut.send_expect("sed -i -e 's/lpbk_mode = 1/lpbk_mode = 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 = self.dut.send_expect("make -j %s app/test_sub O=%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.build_install_dpdk(self.target)
 
         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 = 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)       
         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.
@@ -144,7 +142,5 @@ class TestUnitTestsLoopback(TestCase):
         """
         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 = self.dut.send_expect("make -j %s app/test_sub O=%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.build_install_dpdk(self.target)        
         self.dut.kill_all()
-- 
1.8.3.1


  parent reply	other threads:[~2020-09-03  8:30 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-03  8:28 [dts] [PATCH V1 00/15] support meson build method Chen Linglix
2020-09-03  8:28 ` [dts] [dts 01/15] tests/TestSuite_unit_tests_cmdline:update to support meson build Chen Linglix
2020-09-03  8:28 ` [dts] [dts 02/15] tests/TestSuite_unit_tests_crc:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 03/15] tests/TestSuite_unit_tests_dump:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 04/15] tests/TestSuite_unit_tests_eal:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 05/15] tests/TestSuite_unit_tests_kni:update " Chen Linglix
2020-09-03  8:28 ` Chen Linglix [this message]
2020-09-03  8:28 ` [dts] [dts 07/15] tests/TestSuite_unit_tests_lpm:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 08/15] tests/TestSuite_unit_tests_mbuf:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 09/15] tests/TestSuite_unit_tests_mempool:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 10/15] tests/TestSuite_unit_tests_pmd_perf:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 11/15] tests/TestSuite_unit_tests_power:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 12/15] tests/TestSuite_unit_tests_qos:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 13/15] tests/TestSuite_unit_tests_ringpmd:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 14/15] tests/TestSuite_unit_tests_ring:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 15/15] tests/TestSuite_unit_tests_timer:update " Chen Linglix
2020-09-03  8:41 ` [dts] [PATCH V1 00/15] support meson build method Chen, LingliX
2020-09-09  8:09   ` Tu, Lijuan
2020-09-04  6:09 ` Ma, LihongX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200903082839.30213-7-linglix.chen@intel.com \
    --to=linglix.chen@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).