From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 93ADCA00C2; Wed, 17 Mar 2021 08:25:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8D9B3242B30; Wed, 17 Mar 2021 08:25:48 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id D8AD74014D for ; Wed, 17 Mar 2021 08:25:46 +0100 (CET) IronPort-SDR: C3u4PYW37F2O1RQk0xcB4Ozg26MzvmKngaRcgOiUnMbNlthNeiPhFIkdBCGCuJJhZEjm4vnTt5 v/A4ktxdnb6Q== X-IronPort-AV: E=McAfee;i="6000,8403,9925"; a="209369065" X-IronPort-AV: E=Sophos;i="5.81,255,1610438400"; d="scan'208";a="209369065" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2021 00:25:45 -0700 IronPort-SDR: 2gCE2ozYknnS5QYHIeoJfiWpxQcHBcH65xf+Cz/bMgu6xFonuHJpBjIuNPLXq6sLrMHu1ME9Nz h7+QLouehssA== X-IronPort-AV: E=Sophos;i="5.81,255,1610438400"; d="scan'208";a="405829332" Received: from unknown (HELO localhost.localdomain) ([10.240.183.57]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2021 00:25:43 -0700 From: Haiyang Zhao To: dts@dpdk.org Cc: Lijuan.Tu@intel.com, Haiyang Zhao Date: Wed, 17 Mar 2021 15:16:25 +0800 Message-Id: <20210317071625.13041-6-haiyangx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210317071625.13041-1-haiyangx.zhao@intel.com> References: <20210317071625.13041-1-haiyangx.zhao@intel.com> Subject: [dts] [PATCH V1 5/5] tests: add nic and pkg check for rss_gtpu 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 Sender: "dts" add decorate in set_up_all to check if nic and pkg support current suite, if not, all the cases will be marked as N/A. Signed-off-by: Haiyang Zhao --- tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py | 5 ++++- tests/TestSuite_cvl_advanced_rss_gtpu.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py b/tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py index 93e1309b..6490dcbf 100755 --- a/tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py +++ b/tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py @@ -35,7 +35,7 @@ import random import time from packet import Packet from pmd_output import PmdOutput -from test_case import TestCase +from test_case import TestCase, skip_unsupported_pkg, check_supported_nic from rte_flow_common import RssProcessing mac_ipv4_gtpu_ipv4_basic = { @@ -7807,7 +7807,10 @@ mac_ipv6_gtpc_symmetric_toeplitz = [mac_ipv6_gtpc_symmetric] class TestCVLAdvancedIAVFRSSGTPU(TestCase): + supported_nic = ['columbiaville_100g', 'columbiaville_25g', 'columbiaville_25gx2'] + @check_supported_nic(supported_nic) + @skip_unsupported_pkg('os default') def set_up_all(self): """ Run at the start of each test suite. diff --git a/tests/TestSuite_cvl_advanced_rss_gtpu.py b/tests/TestSuite_cvl_advanced_rss_gtpu.py index df514198..054f1907 100755 --- a/tests/TestSuite_cvl_advanced_rss_gtpu.py +++ b/tests/TestSuite_cvl_advanced_rss_gtpu.py @@ -34,7 +34,7 @@ import re import time from packet import Packet from pmd_output import PmdOutput -from test_case import TestCase +from test_case import TestCase, skip_unsupported_pkg, check_supported_nic from rte_flow_common import RssProcessing @@ -5555,7 +5555,10 @@ mac_ipv4_gtpu_eh_ipv6_tcp_without_ul_dl_symmetric = eval(str(mac_ipv4_gtpu_eh_ip class TestCVLAdvancedRSSGTPU(TestCase): + supported_nic = ['columbiaville_100g', 'columbiaville_25g', 'columbiaville_25gx2'] + @check_supported_nic(supported_nic) + @skip_unsupported_pkg('os default') def set_up_all(self): """ Run at the start of each test suite. -- 2.17.1