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 E7CC75A80 for ; Mon, 19 Jan 2015 13:43:50 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP; 19 Jan 2015 04:40:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,426,1418112000"; d="scan'208";a="664032680" Received: from kmsmsx152.gar.corp.intel.com ([172.21.73.87]) by fmsmga002.fm.intel.com with ESMTP; 19 Jan 2015 04:43:48 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by KMSMSX152.gar.corp.intel.com (172.21.73.87) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 19 Jan 2015 20:43:47 +0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.192]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.64]) with mapi id 14.03.0195.001; Mon, 19 Jan 2015 20:43:46 +0800 From: "Liu, Yong" To: "dts@dpdk.org" Thread-Topic: [dts] Clarifications on setting up DUT Thread-Index: AdAzyQ/Bv6ZH5KIzRUunrmLa9i/Sgg== Date: Mon, 19 Jan 2015 12:43:45 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10D4FDC2@SHSMSX103.ccr.corp.intel.com> Accept-Language: zh-CN, 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] Clarifications on setting up DUT 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: Mon, 19 Jan 2015 12:43:51 -0000 Hi Ravi, DTS can support i218 and i218 chipsets by add codename in setting.py and re= store function in crb.py. For question 1, you can get system requirements from DTS getting started gu= ide. Just enter folder doc/dts_gsg and then "make html" will generate it. Now ssh session is the only way for DTS to communicate with DUT and Tester.= Restore interface function will re-insmod all nic in configuration file.=20 We will support specified nic in near future.=20 For question 2, the garbage message show that DTS not strip color. Here is = one quick fix for it. diff --git a/framework/crb.py b/framework/crb.py index aca62c1..e5224c8 100644 --- a/framework/crb.py +++ b/framework/crb.py @@ -226,7 +226,7 @@ class Crb(object): """ Get interface name of specified pci device on linux. """ - command =3D 'ls /sys/bus/pci/devices/0000:%s:%s/net' % (bus_id, de= vfun_id) + command =3D 'ls --color=3Dnever /sys/bus/pci/devices/0000:%s:%s/ne= t' % (bus_id, devfun_id) return self.send_expect(command, '# ') def get_interface_name_freebsd(self, bus_id, devfun_id): For question 3, DTS not scan ports normally, so you can try after fix issue= 2. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Ravi Kerur > Sent: Saturday, January 17, 2015 5:09 AM > To: dts@dpdk.org > Subject: [dts] Clarifications on setting up DUT >=20 > DTS team, >=20 > I am making changes to DTS to support i217, i218 chipsets to DTS and I > have couple of questions >=20 > 1. Any README on system pre-requisites? Can I run DTS natively on DUT > without any SSH? >=20 > I have I217 and 82540EM NICs in a system running Ubuntu. I would like to > use both NIC's for testing. If I use regular method of SSH, I will loose > one NIC hence the question. >=20 > 2. When I run DTS, for some of the commands I am getting garbage output. > The problem is seen on 2 Ubuntu systems. When I run those commands > manually commands work fine for e.g. >=20 > *16/01/2015 12:58:00 DTS_TESTER_CMD: ls > /sys/bus/pci/devices/0000:00:19.0/net* >=20 > *16/01/2015 12:58:00 DTS_TESTER_OUTPUT: ^[[0m^[[01;34meth0^[[0m* >=20 > *16/01/2015 12:58:00 DTS_TESTER_CMD: Tester: [000:00:19.0 8086:15a1= ] > ^[[0m^[[01;34meth0^[[0m* >=20 > *16/01/2015 12:58:00 DTS_TESTER_CMD: cat > /sys/bus/pci/devices/0000:00:19.0/net/^[[0m^[[01;34meth0^[[0m/address* >=20 > *16/01/2015 12:58:00 DTS_TESTER_OUTPUT: cat: > /sys/bus/pci/devices/0000:00:19.0/net/m1: No such file or directory^M* >=20 > *-bash: 34meth0m/address: No such file or directory* >=20 > *16/01/2015 12:58:00 DTS_TESTER_CMD: ls > /sys/bus/pci/devices/0000:04:02.0/net* >=20 > *16/01/2015 12:58:00 DTS_TESTER_OUTPUT: ^[[0m^[[01;34meth1^[[0m* >=20 > *16/01/2015 12:58:00 DTS_TESTER_CMD: Tester: [000:04:02.0 8086:100e= ] > ^[[0m^[[01;34meth1^[[0m* >=20 > *16/01/2015 12:58:00 DTS_TESTER_CMD: cat > /sys/bus/pci/devices/0000:04:02.0/net/^[[0m^[[01;34meth1^[[0m/address* >=20 >=20 > 3. Tests start failing with following msgs even though I217 NIC is > recognized. >=20 > *Traceback (most recent call last):* >=20 > * File "/home/rkerur/dpdk-dts/dts/framework/dts.py", line 527, in > execute_test_setup_all* >=20 > * test_case.set_up_all()* >=20 > * File "../tests/TestSuite_whitelist.py", line 61, in set_up_all* >=20 > * self.verify(len(self.dutPorts) >=3D 1, "Insufficient ports")* >=20 > * File "/home/rkerur/dpdk-dts/dts/framework/test_case.py", line 62, in > verify* >=20 > * raise VerifyFailure(description)* >=20 > *VerifyFailure: 'Insufficient ports'* >=20 >=20 >=20 > *16/01/2015 12:58:23 INFO:* >=20 > *TEST SUITE ENDED: TestWhitelist* >=20 >=20 > Thanks, >=20 > Ravi