From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 985FD9A9E for ; Mon, 18 May 2015 10:28:57 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 18 May 2015 01:28:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,452,1427785200"; d="scan'208";a="711764791" Received: from pgsmsx104.gar.corp.intel.com ([10.221.44.91]) by fmsmga001.fm.intel.com with ESMTP; 18 May 2015 01:28:56 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by PGSMSX104.gar.corp.intel.com (10.221.44.91) with Microsoft SMTP Server (TLS) id 14.3.224.2; Mon, 18 May 2015 16:28:54 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.120]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.94]) with mapi id 14.03.0224.002; Mon, 18 May 2015 16:28:52 +0800 From: "Xu, HuilongX" To: "Jiajia, SunX" , "dts@dpdk.org" Thread-Topic: =?utf-8?B?W2R0c10gW+KAmGR0cy12MeKAmSA3LzldIGFkZCBzb21lIHBtZCBmdW5jdGlv?= =?utf-8?Q?ns_for_tester_to_code_the_testpmd_cases?= Thread-Index: AQHQkSid3jk8fkMMMkCfNobEFFwpfJ2BZfig Date: Mon, 18 May 2015 08:28:52 +0000 Message-ID: References: <1431925646-1314-1-git-send-email-sunx.jiajia@intel.com> <1431925646-1314-8-git-send-email-sunx.jiajia@intel.com> In-Reply-To: <1431925646-1314-8-git-send-email-sunx.jiajia@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="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dts] =?utf-8?b?W+KAmGR0cy12MeKAmSA3LzldIGFkZCBzb21lIHBtZCBmdW5j?= =?utf-8?q?tions_for_tester_to_code_the_testpmd_cases?= 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, 18 May 2015 08:28:58 -0000 SGkgSmlhamlhLA0KSSBoYXZlIGEgY29tbWVudHMgYXQgIiBkZWYgZXhlY3V0ZV9jbWQoc2VsZiwg cG1kX2NtZCwgZXhwZWN0ZWQ9J3Rlc3RwbWQ+ICcsIHRpbWVvdXQ9VElNRU9VVCAiDQpXb3VsZCB5 b3UgY2hlY2sgaXQsIHRoYW5rcyAgYSBsb3QNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpG cm9tOiBkdHMgW21haWx0bzpkdHMtYm91bmNlc0BkcGRrLm9yZ10gT24gQmVoYWxmIE9mIHNqaWFq aWF4DQpTZW50OiBNb25kYXksIE1heSAxOCwgMjAxNSAxOjA3IFBNDQpUbzogZHRzQGRwZGsub3Jn DQpTdWJqZWN0OiBbZHRzXSBb4oCYZHRzLXYx4oCZIDcvOV0gYWRkIHNvbWUgcG1kIGZ1bmN0aW9u cyBmb3IgdGVzdGVyIHRvIGNvZGUgdGhlIHRlc3RwbWQgY2FzZXMNCg0KU2lnbmVkLW9mZi1ieTog c2ppYWppYXggPHN1bnguamlhamlhQGludGVsLmNvbT4NCi0tLQ0KIGZyYW1ld29yay9wbWRfb3V0 cHV0LnB5IHwgMTA0ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysr KysrLQ0KIDEgZmlsZSBjaGFuZ2VkLCAxMDIgaW5zZXJ0aW9ucygrKSwgMiBkZWxldGlvbnMoLSkN Cg0KZGlmZiAtLWdpdCBhL2ZyYW1ld29yay9wbWRfb3V0cHV0LnB5IGIvZnJhbWV3b3JrL3BtZF9v dXRwdXQucHkNCmluZGV4IDk3Mjc0YTUuLjY0MjA2MmYgMTAwNjQ0DQotLS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4gJywgdGltZW91dD1USU1FT1VULA0KKyAgICAgICAg ICAgICAgICAgICAgYWx0X3Nlc3Npb249RmFsc2UsIHZlcmlmeT1GYWxzZSk6DQorICAgICAgICBy ZXR1cm4gc2VsZi5kdXQuc2VuZF9leHBlY3QoJyVzJyAlIHBtZF9jbWQsIGV4cGVjdGVkLCB0aW1l b3V0PXRpbWVvdXQsDQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWx0X3Nl c3Npb249YWx0X3Nlc3Npb24sIHZlcmlmeT12ZXJpZnkpDQorDQorICAgIGRlZiBnZXRfdmFsdWVf ZnJvbV9zdHJpbmcoc2VsZiwga2V5X3N0ciwgcmVneF9zdHIsIHN0cmluZyk6DQorICAgICAgICAi IiINCisgICAgICAgIEdldCBzb21lIHZhbHVlcyBmcm9tIHRoZSBnaXZlbiBzdHJpbmcgYnkgdGhl IHJlZ3VsYXIgZXhwcmVzc2lvbi4NCisgICAgICAgICIiIg0KKyAgICAgICAgcGF0dGVybiA9IHIi KD88PSVzKSVzIiAlIChrZXlfc3RyLCByZWd4X3N0cikNCisgICAgICAgIHMgPSByZS5jb21waWxl KHBhdHRlcm4pDQorICAgICAgICByZXMgPSBzLnNlYXJjaChzdHJpbmcpDQorICAgICAgICBpZiB0 eXBlKHJlcykuX19uYW1lX18gPT0gJ05vbmVUeXBlJzoNCisgICAgICAgICAgICByZXR1cm4gJyAn DQorICAgICAgICBlbHNlOg0KKyAgICAgICAgICAgIHJldHVybiByZXMuZ3JvdXAoMCkNCisNCisg ICAgZGVmIGdldF9kZXRhaWxfZnJvbV9wb3J0X2luZm8oc2VsZiwga2V5X3N0ciwgcmVneF9zdHIs IHBvcnQpOg0KKyAgICAgICAgIiIiDQorICAgICAgICBHZXQgdGhlIGRldGFpbCBpbmZvIGZyb20g dGhlIG91dHB1dCBvZiBwbWQgY21kICdzaG93IHBvcnQgaW5mbyA8cG9ydCBudW0+Jy4NCisgICAg ICAgICIiIg0KKyAgICAgICAgb3V0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nQuDQor ICAgICAgICAiIiINCisgICAgICAgIHJldHVybiBzZWxmLmdldF9kZXRhaWxfZnJvbV9wb3J0X2lu Zm8oIlByb21pc2N1b3VzIG1vZGU6ICIsICJcUysiLCBwb3J0X2lkKQ0KKw0KKyAgICBkZWYgZ2V0 X3BvcnRfYWxsbXVsdGljYXN0X21vZGUoc2VsZiwgcG9ydF9pZCk6DQorICAgICAgICAiIiINCisg ICAgICAgIEdldCB0aGUgYWxsbXVsdGljYXN0IG1vZGUgb2YgcG9ydC4NCisgICAgICAgICIiIg0K KyAgICAgICAgcmV0dXJuIHNlbGYuZ2V0X2RldGFpbF9mcm9tX3BvcnRfaW5mbygiQWxsbXVsdGlj YXN0IG1vZGU6ICIsICJcUysiLCBwb3J0X2lkKQ0KKw0KKyAgICBkZWYgZ2V0X3BvcnRfdmxhbl9v ZmZsb2FkKHNlbGYsIHBvcnRfaWQpOg0KKyAgICAgICAgIiIiDQorICAgICAgICBGdW5jdGlvbjog Z2V0IHRoZSBwb3J0IHZsYW4gc2V0dHRpbmcgaW5mby4NCisgICAgICAgIHJldHVybiB2YWx1ZToN CisgICAgICAgICAgICAnc3RyaXAnOidvbicNCisgICAgICAgICAgICAnZmlsdGVyJzonb24nDQor ICAgICAgICAgICAgJ3FpbnEnOidvZmYnDQorICAgICAgICAiIiINCisgICAgICAgIHZsYW5faW5m byA9IHt9DQorICAgICAgICB2bGFuX2luZm9bJ3N0cmlwJ10gPSBzZWxmLmdldF9kZXRhaWxfZnJv bV9wb3J0X2luZm8oDQorICAgICAgICAgICAgInN0cmlwICIsICdcUysnLCBwb3J0X2lkKQ0KKyAg ICAgICAgdmxhbl9pbmZvWydmaWx0ZXInXSA9IHNlbGYuZ2V0X2RldGFpbF9mcm9tX3BvcnRfaW5m bygNCisgICAgICAgICAgICAnZmlsdGVyJywgJ1xTKycsIHBvcnRfaWQpDQorICAgICAgICB2bGFu X2luZm9bJ3FpbnEnXSA9IHNlbGYuZ2V0X2RldGFpbF9mcm9tX3BvcnRfaW5mbygNCisgICAgICAg ICAgICAncWlucVwoZXh0ZW5kXCkgJywgJ1xTKycsIHBvcnRfaWQpDQorICAgICAgICByZXR1cm4g dmxhbl9pbmZvDQotLSANCjEuOS4wDQoNCg==