From patchwork Tue Oct 18 06:42:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 118357 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CF8DEA0566; Tue, 18 Oct 2022 09:33:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6551E40E03; Tue, 18 Oct 2022 09:33:14 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 5AC3440143 for ; Tue, 18 Oct 2022 09:33:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666078392; x=1697614392; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=O+kxBDIGahLl1ZAc27Ud2goqPb+V2aotaGb437CKiIU=; b=Lh37GQF3HhrO5VipnX/+Q98K2fU9/2+wLlX+J7bvPTSa5sjw5Eqh21aw 0SQerv85SJz4CHz7pg9mThy1E2RWQdRnVEOYSLcybSmbI2RvXfew6yhHS BcE3DBsKpU9zMaJ6lBekNJm49lBHrkZOiGRISxcnVB33srzzF0FYY6P4y HjdO4F1kexVXVVUoru8x0ESMiIGGGDHAc9PtT73h932yLAFO9QDsPRYpm zGqcPQVt9blM/N+iYRb6avZCLZxD6LBmWfYIR4Hz4gswdsVHKqkXW+UcM JE9fRc/D2xcL2YzDNg8PedoyhNVb+k465/fhxRADZZCN+/4dtWBdQwKYh g==; X-IronPort-AV: E=McAfee;i="6500,9779,10503"; a="303638929" X-IronPort-AV: E=Sophos;i="5.95,193,1661842800"; d="scan'208";a="303638929" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2022 00:32:54 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10503"; a="579673776" X-IronPort-AV: E=Sophos;i="5.95,193,1661842800"; d="scan'208";a="579673776" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2022 00:32:53 -0700 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V2 2/2] tests/unit_tests_kni: removed suit from DPDK 22.11 Date: Tue, 18 Oct 2022 02:42:17 -0400 Message-Id: <20221018064217.52124-2-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221018064217.52124-1-linglix.chen@intel.com> References: <20221018064217.52124-1-linglix.chen@intel.com> MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 According to dpdk commit: dfd5b25b57 (build: introduce deprecated libraries) remove not support suit: unit_tests_kni Signed-off-by: Lingli Chen --- test_plans/index.rst | 1 - test_plans/unit_tests_kni_test_plan.rst | 42 ------------ tests/TestSuite_unit_tests_kni.py | 86 ------------------------- 3 files changed, 129 deletions(-) delete mode 100644 test_plans/unit_tests_kni_test_plan.rst delete mode 100644 tests/TestSuite_unit_tests_kni.py diff --git a/test_plans/index.rst b/test_plans/index.rst index fd21ec51..1f292a6c 100644 --- a/test_plans/index.rst +++ b/test_plans/index.rst @@ -249,7 +249,6 @@ The following are the test plans for the DPDK DTS automated test system. unit_tests_dump_test_plan unit_tests_eal_test_plan unit_tests_event_timer_test_plan - unit_tests_kni_test_plan unit_tests_loopback_test_plan unit_tests_lpm_test_plan unit_tests_mbuf_test_plan diff --git a/test_plans/unit_tests_kni_test_plan.rst b/test_plans/unit_tests_kni_test_plan.rst deleted file mode 100644 index 163fff20..00000000 --- a/test_plans/unit_tests_kni_test_plan.rst +++ /dev/null @@ -1,42 +0,0 @@ -.. SPDX-License-Identifier: BSD-3-Clause - Copyright(c) 2010-2017 Intel Corporation - -=============== -Unit Tests: KNI -=============== - -This is the test plan for the IntelĀ® DPDK KNI library. - -This section explains how to run the unit tests for KNI. The test can be -launched independently using the command line interface. -This test is implemented as a linuxapp environment application. - -The complete test suite is launched automatically using a python-expect -script (launched using ``make test``) that sends commands to -the application and checks the results. A test report is displayed on -stdout. - -Case config:: - - For enable KNI features, need to add "-Denable_kmods=True" when build DPDK by meson. - CC=gcc meson -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc - ninja -C x86_64-native-linuxapp-gcc -j 50 - - rte_kni.ko is located at ./x86_64-native-linuxapp-gcc/kernel/linux/kni/ - -The steps to run the unit test manually are as follow:: - - # mkdir -p x86_64-native-linuxapp-gcc/kmod - # cp ./x86_64-native-linuxapp-gcc/kernel/linux/kni/rte_kni.ko x86_64-native-linuxapp-gcc/kmod/ - # cp ./x86_64-native-linuxapp-gcc/kernel/linux/igb_uio/igb_uio.ko x86_64-native-linuxapp-gcc/kmod/ - # lsmod | grep rte_kni - # insmod .//kmod/igb_uio.ko - # insmod .//kmod/rte_kni.ko lo_mode=lo_mode_fifo - # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff - RTE>> kni_autotest - RTE>> quit - # rmmod rte_kni - # rmmod igb_uio - - -The final output of the test has to be "Test OK" diff --git a/tests/TestSuite_unit_tests_kni.py b/tests/TestSuite_unit_tests_kni.py deleted file mode 100644 index 0bb2bcac..00000000 --- a/tests/TestSuite_unit_tests_kni.py +++ /dev/null @@ -1,86 +0,0 @@ -# SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2010-2014 Intel Corporation -# - -""" -DPDK Test suite. - -This TestSuite runs the unit tests included in DPDK for KNI feature. -""" - -import framework.utils as utils -from framework.test_case import TestCase - -# -# -# Test class. -# - - -class TestUnitTestsKni(TestCase): - - # - # - # Utility methods and other non-test code. - # - - def insmod_kni(self): - - out = self.dut.send_expect("lsmod | grep rte_kni", "# ") - - if "rte_kni" in out: - self.dut.send_expect("rmmod rte_kni.ko", "# ") - - out = self.dut.send_expect( - "insmod ./%s/kmod/rte_kni.ko lo_mode=lo_mode_fifo" % (self.target), "# " - ) - - self.verify("Error" not in out, "Error loading KNI module: " + out) - - self.logger.warning( - f"Test Suite {self.suite_name} is deprecated and will be removed in the next release" - ) - - # - # - # - # Test cases. - # - def set_up_all(self): - """ - Run at the start of each test suite. - - KNI Prerequisites - """ - self.cores = self.dut.get_core_list("all") - self.insmod_kni() - - def set_up(self): - """ - Run before each test case. - """ - pass - - def test_kni(self): - """ - Run kni autotest. - """ - eal_params = self.dut.create_eal_parameters(cores=self.cores) - app_name = self.dut.apps_name["test"] - self.dut.send_expect(app_name + eal_params, "R.*T.*E.*>.*>", 60) - out = self.dut.send_expect("kni_autotest", "RTE>>", 60) - self.dut.send_expect("quit", "# ") - - self.verify("Test OK" in out, "Test Failed") - - def tear_down(self): - """ - Run after each test case. - """ - pass - - def tear_down_all(self): - """ - Run after each test suite. - """ - self.dut.send_expect("rmmod rte_kni", "# ", 5)