From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id D62478D9F for ; Tue, 27 Oct 2015 08:41:24 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 27 Oct 2015 00:41:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,203,1444719600"; d="scan'208";a="672503378" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga003.jf.intel.com with ESMTP; 27 Oct 2015 00:41:24 -0700 From: "xu,huilong" To: dts@dpdk.org Date: Tue, 27 Oct 2015 15:36:50 +0800 Message-Id: <1445931412-86352-11-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1445931412-86352-1-git-send-email-huilongx.xu@intel.com> References: <1445931412-86352-1-git-send-email-huilongx.xu@intel.com> Subject: [dts] [10/12] add test start time and exec cmd time for pmd_perf unit test 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: , X-List-Received-Date: Tue, 27 Oct 2015 07:41:25 -0000 Signed-off-by: xu,huilong --- tests/TestSuite_unit_tests_pmd_perf.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/TestSuite_unit_tests_pmd_perf.py b/tests/TestSuite_unit_tests_pmd_perf.py index 8745227..3be47f9 100644 --- a/tests/TestSuite_unit_tests_pmd_perf.py +++ b/tests/TestSuite_unit_tests_pmd_perf.py @@ -90,10 +90,10 @@ class TestUnitTestsPmdPerf(TestCase): Run pmd stream control mode burst test case. """ - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30) + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60) for mode in self.burst_ctlmodes: - self.dut.send_expect("set_rxtx_sc %s" % mode, "RTE>>", 5) - out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 60) + self.dut.send_expect("set_rxtx_sc %s" % mode, "RTE>>", 10) + out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 120) match_regex = "Result: (\d+) cycles per packet" m = re.compile(r"%s" % match_regex, re.S) result = m.search(out) @@ -113,16 +113,16 @@ class TestUnitTestsPmdPerf(TestCase): for mode in self.rxtx_modes: if mode is "scalar": - self.dut.send_expect("./app/test/test_scalar -n 1 -c ffff", "R.*T.*E.*>.*>", 30) + self.dut.send_expect("./app/test/test_scalar -n 1 -c ffff", "R.*T.*E.*>.*>", 60) else: - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30) + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60) table_row = [mode] - self.dut.send_expect("set_rxtx_sc continuous", "RTE>>", 5) - self.dut.send_expect("set_rxtx_mode %s" % mode, "RTE>>", 5) + self.dut.send_expect("set_rxtx_sc continuous", "RTE>>", 10) + self.dut.send_expect("set_rxtx_mode %s" % mode, "RTE>>",10) for anchor in self.anchors: - self.dut.send_expect("set_rxtx_anchor %s" % anchor, "RTE>>", 5) - out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 60) + self.dut.send_expect("set_rxtx_anchor %s" % anchor, "RTE>>", 10) + out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 120) match_regex = "Result: (\d+) cycles per packet" m = re.compile(r"%s" % match_regex, re.S) result = m.search(out) -- 1.9.3