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 CC776A0487 for ; Mon, 1 Jul 2019 09:32:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9E77D2C23; Mon, 1 Jul 2019 09:32:54 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id C7F852BC8 for ; Mon, 1 Jul 2019 09:32:52 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Jul 2019 00:32:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,437,1557212400"; d="scan'208";a="246826944" Received: from unknown (HELO debug193.icx.intel.com) ([10.240.176.193]) by orsmga001.jf.intel.com with ESMTP; 01 Jul 2019 00:32:50 -0700 From: Wenjie Li To: dts@dpdk.org Cc: Wenjie Li Date: Mon, 1 Jul 2019 16:29:30 +0000 Message-Id: <1561998570-8839-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/unit_test_loopback: add '-j' option to 'make' 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" "make" takes more time, sometimes it is over 120 seconds. Using "make -j" could save time. Signed-off-by: Wenjie Li --- tests/TestSuite_unit_tests_loopback.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_unit_tests_loopback.py b/tests/TestSuite_unit_tests_loopback.py index ad49e8a..50533a6 100644 --- a/tests/TestSuite_unit_tests_loopback.py +++ b/tests/TestSuite_unit_tests_loopback.py @@ -92,7 +92,7 @@ class TestUnitTestsLoopback(TestCase): """ self.dut.send_expect("sed -i -e 's/lpbk_mode = 0/lpbk_mode = 1/' app/test/test_pmd_perf.c", "# ", 30) self.dut.send_expect("cd app/test", "# ") - self.dut.send_expect("make", "# ", 120) + self.dut.send_expect("make -j", "# ", 120) self.dut.send_expect("cd /root/dpdk", "# ") self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#") @@ -113,7 +113,7 @@ 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("cd app/test", "# ") - self.dut.send_expect("make", "# ", 120) + self.dut.send_expect("make -j", "# ", 120) self.dut.send_expect("cd /root/dpdk", "# ") self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#") @@ -140,6 +140,6 @@ class TestUnitTestsLoopback(TestCase): self.dut.send_expect("sed -i -e 's/lpbk_mode = 0/lpbk_mode = 1/' app/test/test_pmd_perf.c", "# ", 30) 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) self.dut.send_expect("cd app/test", "# ") - self.dut.send_expect("make", "# ", 120) + self.dut.send_expect("make -j", "# ", 120) self.dut.send_expect("cd /root/dpdk", "# ") self.dut.kill_all() -- 2.17.1