From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 79DD8A0471 for ; Wed, 19 Jun 2019 04:32:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3EE7B1C25C; Wed, 19 Jun 2019 04:32:25 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 52B071C210 for ; Wed, 19 Jun 2019 04:32:22 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jun 2019 19:32:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,391,1557212400"; d="scan'208";a="186313084" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 18 Jun 2019 19:32:21 -0700 From: changqingxwu To: dts@dpdk.org Cc: changqingxwu Date: Wed, 19 Jun 2019 10:37:03 +0800 Message-Id: <1560911823-9081-1-git-send-email-changqingx.wu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests:remove ethtool from kni 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" remove test case ethtool from kni Signed-off-by: changqingxwu --- tests/TestSuite_kni.py | 87 ------------------------------------------ 1 file changed, 87 deletions(-) diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py index aa189f5..0d8aaf6 100644 --- a/tests/TestSuite_kni.py +++ b/tests/TestSuite_kni.py @@ -649,93 +649,6 @@ class TestKni(TestCase): self.verify("%d packets captured" % len(packets_to_send) in out, "Wrong number of packets captured") - def test_ethtool(self): - """ - Ethtool support KNI. - """ - - # Ports and cores configuration set in set_up_all function - # For each virtual interface perform the following operations - for port in self.config['ports']: - - virtual_interface = self.virtual_interface_name(port) - - # Request settings - out = self.dut.send_expect("ethtool %s" % virtual_interface, - "# ") - self.verify("Settings for %s" % virtual_interface in out, - "ethtool not supported") - self.verify("Operation not supported" not in out, - "ethtool not supported") - - # Request driver information - out = self.dut.send_expect("ethtool -i %s" % virtual_interface, - "# ") - self.verify("driver: ixgbe" or "driver: igb" in out, - "'ethtool -i' not supported") - self.verify("Operation not supported" not in out, - "'ethtool -i' not supported") - - # Request pause parameters - with open("/usr/include/linux/ethtool.h","r") as ethtool_h: - ethtool_contents = ethtool_h.read() - GSET = "ETHTOOL_GLINKSETTINGS" - SSET = "ETHTOOL_SLINKSETTINGS" - if (GSET in ethtool_contents) and (SSET in ethtool_contents): - out = self.dut.send_expect("ethtool -a %s" % virtual_interface, - "# ") - self.verify("Pause parameters for %s" % virtual_interface in out, - "'ethtool -a' not supported") - self.verify("Operation not supported" not in out, - "ethtool '-a' not supported") - - # Request statistics - out = self.dut.send_expect("ethtool -S %s" % virtual_interface, - "# ") - self.verify("NIC statistics" in out, - "'ethtool -S' not supported") - self.verify("Operation not supported" not in out, - "ethtool '-S' not supported") - - # Request features status - out = self.dut.send_expect("ethtool -k %s" % virtual_interface, "# ") - self.verify(("Features for %s" % virtual_interface in out) or - ("Offload parameters for %s" % - virtual_interface in out), - "'ethtool -k' not supported") - self.verify("Operation not supported" not in out, - "'ethtool -k' not supported") - - # Request ring parameters - out = self.dut.send_expect("ethtool -g %s" % virtual_interface, - "# ") - self.verify("Ring parameters for %s" % virtual_interface in out, - "'ethtool -g' not supported") - self.verify("Operation not supported" not in out, - "'ethtool -g' not supported") - - # Request coalesce parameters. NOT SUPPORTED - out = self.dut.send_expect("ethtool -c %s" % virtual_interface, - "# ") - self.verify("Operation not supported" in out, - "'ethtool -c' seems to be supported. Check it.") - - # Request register dump - out = self.dut.send_expect("ethtool -d %s" % virtual_interface, - "# ") - expectstring = "0x00000: CTRL.*0x00008: STATUS" - self.verify(len(re.findall(expectstring, out , re.DOTALL)) > 0, "'ethtool -d' not supported") - self.verify("Operation not supported" not in out, - "'ethtool -d' not supported") - - # Request eeprom dump - out = self.dut.send_expect("ethtool -e %s" % virtual_interface, - "# ") - self.verify("Offset" and "Values" in out, - "'ethtool -e' not support") - self.verify("Operation not supported" not in out, - "'ethtool -e' not support") - def test_statistics(self): """ KNI Statistics test. -- 2.17.2