*. 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