From: Xiao Qimai <qimaix.xiao@intel.com>
To: dts@dpdk.org
Cc: Xiao Qimai <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1 1/2]unit_tests_pmd_perf: change compile cmd of app/test according to dpdk's update
Date: Tue, 12 May 2020 13:58:19 +0800 [thread overview]
Message-ID: <1589263099-220942-2-git-send-email-qimaix.xiao@intel.com> (raw)
In-Reply-To: <1589263099-220942-1-git-send-email-qimaix.xiao@intel.com>
*. replace compile command of app/test with new command
Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
tests/TestSuite_unit_tests_pmd_perf.py | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/tests/TestSuite_unit_tests_pmd_perf.py b/tests/TestSuite_unit_tests_pmd_perf.py
index a01cf4e..3f4ed12 100644
--- a/tests/TestSuite_unit_tests_pmd_perf.py
+++ b/tests/TestSuite_unit_tests_pmd_perf.py
@@ -71,13 +71,17 @@ class TestUnitTestsPmdPerf(TestCase):
[arch, machine, _, toolchain] = self.target.split('-')
self.dut.send_expect("sed -i -e 's/CONFIG_RTE_IXGBE_INC_VECTOR=y/CONFIG_RTE_IXGBE_INC_VECTOR=n/' config/common_base", "# ", 30)
self.dut.build_install_dpdk(self.target)
- out = self.dut.build_dpdk_apps('./app/test/')
- self.verify('make: Leaving directory' in out, "Compilation failed")
- self.dut.send_expect("mv -f ./app/test/test ./app/test/test_scalar", "# ")
+ 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.send_expect("mv -f ./%s/app/test ./app/test/test_scalar" % self.target, "# ")
+
self.dut.send_expect("sed -i -e 's/CONFIG_RTE_IXGBE_INC_VECTOR=n/CONFIG_RTE_IXGBE_INC_VECTOR=y/' config/common_base", "# ", 30)
self.dut.build_install_dpdk(self.target)
- out = self.dut.build_dpdk_apps('./app/test/')
- self.verify('make: Leaving directory' in out, "Compilation failed")
+ 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.send_expect("mv -f ./%s/app/test ./app/test/test" % self.target, "# ")
socket_id = self.dut.ports_info[0]['port'].socket
self.cores = self.dut.get_core_list(config='1S/4C/1T', socket=socket_id)
--
1.8.3.1
next prev parent reply other threads:[~2020-05-12 6:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-12 5:58 [dts] [PATCH V1]unit_tests_loopback: update compile cmd of app/test Xiao Qimai
2020-05-12 5:58 ` Xiao Qimai [this message]
2020-05-12 6:09 ` [dts] [PATCH V1 1/2]unit_tests_pmd_perf: change compile cmd of app/test according to dpdk's update Xiao, QimaiX
2020-05-12 6:11 ` [dts] [PATCH V1]unit_tests_loopback: update compile cmd of app/test Xiao, QimaiX
2020-06-02 5:47 ` Tu, Lijuan
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=1589263099-220942-2-git-send-email-qimaix.xiao@intel.com \
--to=qimaix.xiao@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).