From patchwork Wed Dec 1 11:10:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Zhijian X-Patchwork-Id: 12649747 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBC09C433EF for ; Wed, 1 Dec 2021 11:11:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242684AbhLALO1 (ORCPT ); Wed, 1 Dec 2021 06:14:27 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:13691 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230407AbhLALO1 (ORCPT ); Wed, 1 Dec 2021 06:14:27 -0500 IronPort-Data: A9a23:J3L3raN2ZYdhVTvvrR0AlcFynXyQoLVcMsFnjC/WdQft029w1TJSyGAdUW+HMvveZWrzL9tya4/j8kwE6MLdm99gGjLY11k3ESsS9pCt6fd1j6vIF3rLaJWFFSqL1u1GAjX7BJ1yHiC0SiuFaOC79CAmjfjQH9IQNcafUsxPbV49IMseoUI78wIJqtYAbemRW2thi/uryyHsEAPNNwpPD44hw/nrRCWDExjFkGhwUlQWPZintbJF/pUfJMp3yaqZdxMUTmTId9NWSdovzJnhlo/Y1xwrTN24kLfnaVBMSbnXVeSMoiMOHfH83V4Z/Wpvuko4HKN0hUN/jzSbn9FzydxLnZKtSwY1JbCKk+MYO/VdO3gnbfcZpe6eeRBTtuTWlSUqaUDEz/xwAUQeMYQG9+NzBm9Ss/oVNFglYguKh++sxpq0T+BtgoIoK8yDFIACsHhIzjzDC/siB5fZTM3i/t9F1TcYhc1UG/vaIc0DZlJHaBXGfg0KOVoNDp86tPmni2O5cDBCrl+R460t7AD7yA13zaioM8HYftKWSN5JtliXq3iA/GnjBBwectuFxlKt9H+wiuLRtT30VZhUF7Ci8PNuxlqJyQQu5Lc+PbegiaDhzBfgBJQEcApJkhfCZJMarCSDJuQRlTXhyJJcgiMhZg== IronPort-HdrOrdr: A9a23:AHC/kqHeofe77q3qpLqEhseALOsnbusQ8zAXPiFKKCC9Hfb1qynDpp8mPHzP5gr5OktOpTnoAsDpfZq2z/NICOcqV4ufYA== X-IronPort-AV: E=Sophos;i="5.87,278,1631548800"; d="scan'208";a="118275910" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 01 Dec 2021 19:11:04 +0800 Received: from G08CNEXMBPEKD06.g08.fujitsu.local (unknown [10.167.33.206]) by cn.fujitsu.com (Postfix) with ESMTP id 96A7F4D139FF; Wed, 1 Dec 2021 19:11:03 +0800 (CST) Received: from G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.80) by G08CNEXMBPEKD06.g08.fujitsu.local (10.167.33.206) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 1 Dec 2021 19:11:02 +0800 Received: from FNSTPC.g08.fujitsu.local (10.167.226.45) by G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.209) with Microsoft SMTP Server id 15.0.1497.23 via Frontend Transport; Wed, 1 Dec 2021 19:11:03 +0800 From: Li Zhijian To: , , , CC: , , , Li Zhijian Subject: [PATCH 1/3] selftest: net: Correct case name Date: Wed, 1 Dec 2021 19:10:23 +0800 Message-ID: <20211201111025.13834-1-lizhijian@cn.fujitsu.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-yoursite-MailScanner-ID: 96A7F4D139FF.AFE2A X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lizhijian@fujitsu.com Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org ipv6_addr_bind/ipv4_addr_bind are function name. Fixes: 34d0302ab86 ("selftests: Add ipv6 address bind tests to fcnal-test") Fixes: 75b2b2b3db4 ("selftests: Add ipv4 address bind tests to fcnal-test") Signed-off-by: Li Zhijian --- tools/testing/selftests/net/fcnal-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/fcnal-test.sh b/tools/testing/selftests/net/fcnal-test.sh index 3313566ce906..7f5b265fcb90 100755 --- a/tools/testing/selftests/net/fcnal-test.sh +++ b/tools/testing/selftests/net/fcnal-test.sh @@ -4002,8 +4002,8 @@ EOF ################################################################################ # main -TESTS_IPV4="ipv4_ping ipv4_tcp ipv4_udp ipv4_addr_bind ipv4_runtime ipv4_netfilter" -TESTS_IPV6="ipv6_ping ipv6_tcp ipv6_udp ipv6_addr_bind ipv6_runtime ipv6_netfilter" +TESTS_IPV4="ipv4_ping ipv4_tcp ipv4_udp ipv4_bind ipv4_runtime ipv4_netfilter" +TESTS_IPV6="ipv6_ping ipv6_tcp ipv6_udp ipv6_bind ipv6_runtime ipv6_netfilter" TESTS_OTHER="use_cases" PAUSE_ON_FAIL=no From patchwork Wed Dec 1 11:10:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Zhijian X-Patchwork-Id: 12649749 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C9DDC433EF for ; Wed, 1 Dec 2021 11:11:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348866AbhLALOw (ORCPT ); Wed, 1 Dec 2021 06:14:52 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:13701 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1348865AbhLALOv (ORCPT ); Wed, 1 Dec 2021 06:14:51 -0500 IronPort-Data: A9a23:2ocnmKzqS1Svkxxn8Xd6t+eSxCrEfRIJ4+MujC/XYbTApG4i0WAPz2ccUDvXM/reYjH0eNF1at+3ox4A78PVzYRrHQtv/xmBbVoQ95OdWo7xwmQcns+qBpSaChohtq3yU/GYRCwPZiKa9kjF3oTJ9yEmjPjSHuOkUYYoBwgqLeNaYHZ44f5cs75h6mJYqYDR7zKl4bsekeWGULOW82Ic3lYv1k62gEgHUMIeF98vlgdWifhj5DcynpSOZX4VDfnZw3DQGuG4EgMmLtsvwo1V/kuBl/ssItij1LjmcEwWWaOUNg+L4pZUc/H6xEEc+WppieBmXBYfQR4/ZzGhm9FjyNRPtJW2YQk0PKzQg/lbWB5de817FfQfqOWYfCnl6qR/yGWDKRMA2c5GAEgoMIgw9u9pDGRK8vIEbjYAcniri/m/wL+hTMFjg80iKI/gO4Z3knJ9xzjxDvs8R53HBaLQ6rdwxzctj8BmHvvEYccdLz11Y3zoZxxJJ0dSC58kmuqsrmfwficeq1+Po6czpW/Jw2RZ1LnrLcqQeceHQctJk12EjnzJ8n6/ARwAMtGbjz2f/RqEgOLTkS7lcJwdGaf+9fNwhlCXgGsJB3UrufGTyRWiohfmHYsBdApPoWxzxZXePXeDFrHVNyBUalbd1vLEZ+dtLg== IronPort-HdrOrdr: A9a23:nm+VtqOnCLbCd8BcTq+jsMiBIKoaSvp037BL7SFMoHNuHvBw+/rEoB1573HJYVQqN03I8OroUJVoKkmwyXca2+MsAYs= X-IronPort-AV: E=Sophos;i="5.87,278,1631548800"; d="scan'208";a="118275923" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 01 Dec 2021 19:11:29 +0800 Received: from G08CNEXMBPEKD04.g08.fujitsu.local (unknown [10.167.33.201]) by cn.fujitsu.com (Postfix) with ESMTP id 38C194D139FD; Wed, 1 Dec 2021 19:11:25 +0800 (CST) Received: from G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.80) by G08CNEXMBPEKD04.g08.fujitsu.local (10.167.33.201) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 1 Dec 2021 19:11:25 +0800 Received: from FNSTPC.g08.fujitsu.local (10.167.226.45) by G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.209) with Microsoft SMTP Server id 15.0.1497.23 via Frontend Transport; Wed, 1 Dec 2021 19:11:04 +0800 From: Li Zhijian To: , , , CC: , , , Li Zhijian Subject: [PATCH 2/3] selftests: add option to list all avaliable tests Date: Wed, 1 Dec 2021 19:10:24 +0800 Message-ID: <20211201111025.13834-2-lizhijian@cn.fujitsu.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211201111025.13834-1-lizhijian@cn.fujitsu.com> References: <20211201111025.13834-1-lizhijian@cn.fujitsu.com> MIME-Version: 1.0 X-yoursite-MailScanner-ID: 38C194D139FD.AEF84 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lizhijian@fujitsu.com Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org $ ./fcnal-test.sh -l Test names: ipv4_ping ipv4_tcp ipv4_udp ipv4_bind ipv4_runtime ipv4_netfilter ipv6_ping ipv6_tcp ipv6_udp ipv6_bind ipv6_runtime ipv6_netfilter use_cases Signed-off-by: Li Zhijian --- tools/testing/selftests/net/fcnal-test.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/fcnal-test.sh b/tools/testing/selftests/net/fcnal-test.sh index 7f5b265fcb90..9111b8952ac8 100755 --- a/tools/testing/selftests/net/fcnal-test.sh +++ b/tools/testing/selftests/net/fcnal-test.sh @@ -3993,6 +3993,7 @@ usage: ${0##*/} OPTS -4 IPv4 tests only -6 IPv6 tests only -t Test name/set to run + -l List all avaible tests -p Pause on fail -P Pause after each test -v Be verbose @@ -4006,10 +4007,15 @@ TESTS_IPV4="ipv4_ping ipv4_tcp ipv4_udp ipv4_bind ipv4_runtime ipv4_netfilter" TESTS_IPV6="ipv6_ping ipv6_tcp ipv6_udp ipv6_bind ipv6_runtime ipv6_netfilter" TESTS_OTHER="use_cases" +list() +{ + echo "Test names: $TESTS_IPV4 $TESTS_IPV6 $TESTS_OTHER" +} + PAUSE_ON_FAIL=no PAUSE=no -while getopts :46t:pPvh o +while getopts :46lt:pPvh o do case $o in 4) TESTS=ipv4;; @@ -4018,6 +4024,7 @@ do p) PAUSE_ON_FAIL=yes;; P) PAUSE=yes;; v) VERBOSE=1;; + l) list; exit 0;; h) usage; exit 0;; *) usage; exit 1;; esac From patchwork Wed Dec 1 11:10:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Zhijian X-Patchwork-Id: 12649751 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A35A2C4332F for ; Wed, 1 Dec 2021 11:11:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348877AbhLALOy (ORCPT ); Wed, 1 Dec 2021 06:14:54 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:13701 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230003AbhLALOx (ORCPT ); Wed, 1 Dec 2021 06:14:53 -0500 IronPort-Data: A9a23:WJZJqqCx+WFzfRVW/4zhw5YqxClBgxIJ4g17XOLfUAXt1Wt30jQEyDYbXjqEPq2LNmShfYx0bYuy8ExV6JWAx9UxeLYW3SszFioV86IpJjg4wn/YZnrUdouaJK5ex512huLocYZkERcwmj/3auK49CMkjPnRLlbBILWs1h5ZFFYMpBgJ2UoLd94R2uaEsPDha++/kYqaT/73ZDdJ7wVJ3lc8sMpvnv/AUMPa41v0tnRmDRxCUcS3e3M9VPrzLonpR5f0rxU9IwK0ewrD5OnREmLx9BFrBM6nk6rgbwsBRbu60Qqm0yIQAvb9xEMZ4HFaPqUTbZLwbW9TiieJntJwwdNlu4GySBsyI+vHn+F1vxxwSnguZ/IbqeWbSZS4mYnJp6HcSFPgyutjCWk6NJMV/+JwD30I8/EEQBgBdRmDiviw6L2+Q+howM8kKaHDP54Vs1ljwCvfAPJgRorMK43R5cJR3B8zi9pIEPKYYNAWARJrbRLdc1hMN00RBZYWguilnD/8fidepVbTorA4i0DXzQpswP3uK9fRdMCHXtl9gEmVvCTF8n7/DxVcM8aQoRKD/26gi/Hngyz2QsQRGae++/osh0ecrlH/ojV+uUCT+KH/0xDhHYkEbRF8x8bnloBqnGTDczU3d0fQTKa4gyMh IronPort-HdrOrdr: A9a23:jowFPa9AWfju6Xy+yi9uk+C2I+orL9Y04lQ7vn2ZKCY1TiX2rayTdZggviMc6wx+ZJhDo7+90cC7KBvhHPVOjLX5U43JYDXb X-IronPort-AV: E=Sophos;i="5.87,278,1631548800"; d="scan'208";a="118275924" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 01 Dec 2021 19:11:29 +0800 Received: from G08CNEXMBPEKD04.g08.fujitsu.local (unknown [10.167.33.201]) by cn.fujitsu.com (Postfix) with ESMTP id B6AEF4D13A00; Wed, 1 Dec 2021 19:11:25 +0800 (CST) Received: from G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.80) by G08CNEXMBPEKD04.g08.fujitsu.local (10.167.33.201) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 1 Dec 2021 19:11:26 +0800 Received: from FNSTPC.g08.fujitsu.local (10.167.226.45) by G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.209) with Microsoft SMTP Server id 15.0.1497.23 via Frontend Transport; Wed, 1 Dec 2021 19:11:25 +0800 From: Li Zhijian To: , , , CC: , , , Li Zhijian Subject: [PATCH 3/3] selftest: net: remove meaningless help option Date: Wed, 1 Dec 2021 19:10:25 +0800 Message-ID: <20211201111025.13834-3-lizhijian@cn.fujitsu.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211201111025.13834-1-lizhijian@cn.fujitsu.com> References: <20211201111025.13834-1-lizhijian@cn.fujitsu.com> MIME-Version: 1.0 X-yoursite-MailScanner-ID: B6AEF4D13A00.AFDBA X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lizhijian@fujitsu.com Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org $ ./fcnal-test.sh -t help Test names: help Signed-off-by: Li Zhijian --- tools/testing/selftests/net/fcnal-test.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/net/fcnal-test.sh b/tools/testing/selftests/net/fcnal-test.sh index 9111b8952ac8..a4d86862764d 100755 --- a/tools/testing/selftests/net/fcnal-test.sh +++ b/tools/testing/selftests/net/fcnal-test.sh @@ -4075,8 +4075,6 @@ do # setup namespaces and config, but do not run any tests setup) setup; exit 0;; vrf_setup) setup "yes"; exit 0;; - - help) echo "Test names: $TESTS"; exit 0;; esac done