From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6158E5A65 for ; Tue, 27 Oct 2015 09:33:50 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 27 Oct 2015 01:33:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,204,1444719600"; d="scan'208";a="835924331" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 27 Oct 2015 01:33:24 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 27 Oct 2015 01:33:24 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 27 Oct 2015 01:33:24 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.253]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.204]) with mapi id 14.03.0248.002; Tue, 27 Oct 2015 16:33:22 +0800 From: "Tu, LijuanX A" To: "Xu, HuilongX" , "dts@dpdk.org" Thread-Topic: [dts] [03/12] add test start time and exec cmd time for dump unit test Thread-Index: AQHREIrnlOBQhv4f8Ua4BjiZKk8ESZ5/AtZA Date: Tue, 27 Oct 2015 08:33:21 +0000 Message-ID: <38D041F150D4184C8114E499040E62340723594E@shsmsx102.ccr.corp.intel.com> References: <1445931412-86352-1-git-send-email-huilongx.xu@intel.com> <1445931412-86352-4-git-send-email-huilongx.xu@intel.com> In-Reply-To: <1445931412-86352-4-git-send-email-huilongx.xu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [03/12] add test start time and exec cmd time for dump 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 08:33:51 -0000 Acked by tu,lijuan > Signed-off-by: xu,huilong > --- > tests/TestSuite_unit_tests_dump.py | 34 ++++++++++++++++++--------------= -- > 1 file changed, 18 insertions(+), 16 deletions(-) >=20 > diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_te= sts_dump.py > index ce04439..2052cb4 100644 > --- a/tests/TestSuite_unit_tests_dump.py > +++ b/tests/TestSuite_unit_tests_dump.py > @@ -62,6 +62,8 @@ class TestUnitTestsDump(TestCase): > # Based on h/w type, choose how many ports to use > self.dut_ports =3D self.dut.get_ports(self.nic) > self.verify(len(self.dut_ports) >=3D 1, "Insufficient ports for = testing") > + self.start_test_time =3D 60 > + self.run_cmd_time =3D 60 > =20 > def set_up(self): > """ > @@ -74,8 +76,8 @@ class TestUnitTestsDump(TestCase): > """ > Run history log dump test case. > """ > - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target= ), "R.*T.*E.*>.*>", 10) > - out =3D self.dut.send_expect("dump_log_history", "RTE>>", 120) > + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target= ), "R.*T.*E.*>.*>", self.start_test_time) > + out =3D self.dut.send_expect("dump_log_history", "RTE>>",=20 > + self.run_cmd_time * 2) > self.dut.send_expect("quit", "# ") > self.verify("EAL" in out, "Test failed") > =20 > @@ -83,8 +85,8 @@ class TestUnitTestsDump(TestCase): > """ > Run history log dump test case. > """ > - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target= ), "R.*T.*E.*>.*>", 10) > - out =3D self.dut.send_expect("dump_ring", "RTE>>", 120) > + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target= ), "R.*T.*E.*>.*>", self.start_test_time) > + out =3D self.dut.send_expect("dump_ring", "RTE>>",=20 > + self.run_cmd_time) > self.dut.send_expect("quit", "# ") > elements =3D ['ring', 'address', 'flags', 'size', 'ct', 'ch', 'p= t', 'ph', 'used', 'avail', 'watermark'] > match_regex =3D "ring <(.*?)>@0x(.*)\r\n" > @@ -100,8 +102,8 @@ class TestUnitTestsDump(TestCase): > """ > Run mempool dump test case. > """ > - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target= ), "R.*T.*E.*>.*>", 10) > - out =3D self.dut.send_expect("dump_mempool", "RTE>>", 120) > + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target= ), "R.*T.*E.*>.*>", self.start_test_time) > + out =3D self.dut.send_expect("dump_mempool", "RTE>>",=20 > + self.run_cmd_time * 2) > self.dut.send_expect("quit", "# ") > elements =3D ['mempool', 'address', 'flags', 'ring', 'phys_addr'= , 'size', 'header_size', 'elt_size', > 'trailer_size', 'total_obj_size', 'private_data_size= ', 'pg_num', 'pg_shift', 'pg_mask', @@ -120,8 +122,8 @@ class TestUnitTests= Dump(TestCase): > """ > Run physical memory dump test case. > """ > - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target= ), "R.*T.*E.*>.*>", 10) > - out =3D self.dut.send_expect("dump_physmem", "RTE>>", 120) > + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target= ), "R.*T.*E.*>.*>", self.start_test_time) > + out =3D self.dut.send_expect("dump_physmem", "RTE>>",=20 > + self.run_cmd_time * 2) > self.dut.send_expect("quit", "# ") > elements =3D ['Segment', 'phys', 'len', 'virt', 'socket_id', 'hu= gepage_sz', 'nchannel', 'nrank'] > match_regex =3D "Segment (\d)+:" > @@ -140,8 +142,8 @@ class TestUnitTestsDump(TestCase): > """ > Run memzone dump test case. > """ > - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target= ), "R.*T.*E.*>.*>", 10) > - out =3D self.dut.send_expect("dump_memzone", "RTE>>", 120) > + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target= ), "R.*T.*E.*>.*>", self.start_test_time) > + out =3D self.dut.send_expect("dump_memzone", "RTE>>",=20 > + self.run_cmd_time * 2) > self.dut.send_expect("quit", "# ") > =20 > elements =3D ['Zone', 'name', 'phys', 'len', 'virt', 'socket_id'= , 'flags'] @@ -162,8 +164,8 @@ class TestUnitTestsDump(TestCase): > """ > Run struct size dump test case. > """ > - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target= ), "R.*T.*E.*>.*>", 10) > - out =3D self.dut.send_expect("dump_struct_sizes", "RTE>>", 120) > + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target= ), "R.*T.*E.*>.*>", self.start_test_time) > + out =3D self.dut.send_expect("dump_struct_sizes", "RTE>>",=20 > + self.run_cmd_time * 2) > self.dut.send_expect("quit", "# ") > =20 > elements =3D ['struct rte_mbuf', 'struct rte_mempool', 'struct r= te_ring'] @@ -181,15 +183,15 @@ class TestUnitTestsDump(TestCase): > """ > test_port =3D self.dut_ports[0] > self.dut.send_expect("./%s/app/test -n 1 -c ffff -b 0000:%s" > - % (self.target, self.dut.ports_info[test_po= rt]['pci']), "R.*T.*E.*>.*>", 10) > - out =3D self.dut.send_expect("dump_devargs", "RTE>>", 120) > + % (self.target, self.dut.ports_info[test_po= rt]['pci']), "R.*T.*E.*>.*>", self.start_test_time) > + out =3D self.dut.send_expect("dump_devargs", "RTE>>",=20 > + self.run_cmd_time * 2) > self.dut.send_expect("quit", "# ") > black_str =3D "PCI blacklist 0000:%s" % self.dut.ports_info[test= _port]['pci'] > self.verify(black_str in out, "Dump black list failed") > =20 > self.dut.send_expect("./%s/app/test -n 1 -c ffff -w 0000:%s" > - % (self.target, self.dut.ports_info[test_po= rt]['pci']), "R.*T.*E.*>.*>", 10) > - out =3D self.dut.send_expect("dump_devargs", "RTE>>", 120) > + % (self.target, self.dut.ports_info[test_po= rt]['pci']), "R.*T.*E.*>.*>", self.start_test_time) > + out =3D self.dut.send_expect("dump_devargs", "RTE>>",=20 > + self.run_cmd_time * 2) > self.dut.send_expect("quit", "# ") > =20 > white_str =3D "PCI whitelist 0000:%s" % self.dut.ports_info[test= _port]['pci'] > -- > 1.9.3 >=20 >