[dts] [PATCH]tests cmdline,unit eal: extend ICC compilation time

Lijuan Tu lijuanx.a.tu at intel.com
Wed Dec 2 09:20:49 CET 2015


Signed-off-by: Lijuan Tu <lijuanx.a.tu at intel.com>
---
 tests/TestSuite_unit_tests_cmdline.py | 6 +++++-
 tests/TestSuite_unit_tests_eal.py     | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_unit_tests_cmdline.py b/tests/TestSuite_unit_tests_cmdline.py
index 3ece175..e3a29ee 100644
--- a/tests/TestSuite_unit_tests_cmdline.py
+++ b/tests/TestSuite_unit_tests_cmdline.py
@@ -56,7 +56,11 @@ class TestUnitTestsCmdline(TestCase):
         """
         Run at the start of each test suite.
         """
-        out = self.dut.build_dpdk_apps('./app/test/')
+        # icc compilation cost long long time.
+        if "icc" in self.target:
+            out = self.dut.send_expect("make -j -C ./app/test/", "# ", 300)
+        else:
+            out = self.dut.build_dpdk_apps('./app/test/')
         self.verify('make: Leaving directory' in out, "Compilation failed")
 
     def set_up(self):
diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
index 040b3b9..663e961 100644
--- a/tests/TestSuite_unit_tests_eal.py
+++ b/tests/TestSuite_unit_tests_eal.py
@@ -30,7 +30,11 @@ class TestUnitTestsEal(TestCase):
         """
         Run at the start of each test suite.
         """
-        out = self.dut.build_dpdk_apps('./app/test/')
+        # icc compilation cost long long time.
+        if "icc" in self.target:
+            out = self.dut.send_expect("make -j -C ./app/test/", "# ", 300)
+        else:
+            out = self.dut.build_dpdk_apps('./app/test/')
         self.verify('make: Leaving directory' in out, "Compilation failed")
         [arch, machine, self.env, toolchain] = self.target.split('-')
         self.start_test_time = 60
-- 
1.9.1



More information about the dts mailing list