Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5607850rdb; Sun, 31 Dec 2023 08:27:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHEQpPhuc4iAPTYPm4Pn+Tqn5vGyz0ZKYs7w/J4bCRQnBvZrUhNvxanXXhIEgshq92aZi+w X-Received: by 2002:a50:cd49:0:b0:553:7078:3970 with SMTP id d9-20020a50cd49000000b0055370783970mr13118998edj.42.1704040041953; Sun, 31 Dec 2023 08:27:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704040041; cv=none; d=google.com; s=arc-20160816; b=0Gr/blb5SkfD1J35MKkzCeiAnw716zvLo6voPvrL5mjnxJQdD3btb8/A0v02RB1/hF KbSsEooYnoAywidH4uQ3JNcEsDoVR9TSANcYF7j8FKDWFhIa8mJjb+SjVeC8uz1h2HeF OuhWdROHvEYSrnRC0OY5tieKfvcEDDNtQZdOEsLLtLwbfH00V0OH6p1RaqedCtZQUHaT elUQ6cfZyJRxcy/h+BDGdARi5L7q3KyTdgEq01xK72VHSfXJJ4KwYztBNAicbu+OGQSP OzuSH89tqQT2g1agRP6EiyzJvezqWAL9Y4PEkkNohLtgT3iGb04La60O9soz/gWRKiyY C0oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W9SZrZXQYhT7Sd91knQv7PNkQL8oY2rRS96yOdxg1Q0=; fh=tWs2ZJUV5A/vZlrLn/ilbzGK5uU751b0sx+sAIdH1OQ=; b=f2KmNb3o7cFcFH3ES4RC6ZZWPpAmehqNgNTY2tO+zxYZKUvQc43xPC4DXDpxuc/OZA lCCXqiYmEIk3ZqF0ov8MG8Abo1fcX2S6JvVrJLqaV3vd6kraixjH0W686lJBfLS/fSTv IOt/lEM1Hi/0comV1kgc7tfbi4W39q52oaB/b9bPqoxTSCd18dl2mSZY4v3ZR2Z5uZ3+ TKwLeXS9WoswXfg3WDh/zjr1l/gS5MbIHDr09wz84Z2hTlxlwXupj0M9Y5zHYS4YeeFA 6Ob3XAFv4Shv55ltXD1AQIJpH7wQXxlTUQvrYP508HmNdaL0flq7JWv9jSBBMTn/+ytk WVsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="L/GOpfJA"; spf=pass (google.com: domain of linux-kernel+bounces-13748-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y1-20020a056402440100b005555d41ac6asi3877746eda.101.2023.12.31.08.27.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Dec 2023 08:27:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13748-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="L/GOpfJA"; spf=pass (google.com: domain of linux-kernel+bounces-13748-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9644B1F21955 for ; Sun, 31 Dec 2023 16:27:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69CE7847D; Sun, 31 Dec 2023 16:27:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="L/GOpfJA" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 054088F42 for ; Sun, 31 Dec 2023 16:27:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704040031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=W9SZrZXQYhT7Sd91knQv7PNkQL8oY2rRS96yOdxg1Q0=; b=L/GOpfJAeM+yriQcVHlYPH6NdY+CSsxxPysSdZSZUUh25OTJ8HldDSquo3zJ4w74xTwG5l BOPrgPYiuC9HNU7CvnDt6VmEhstJICWrNb+q+7wDhnW2JQfkbqRBYyi52RqxeSBvrJQ4Mm OAchgM79uPO+K50bTMqd4N3ZYq0J1so= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-652-2GcpBVUTM8WY-rlN9ZpEoA-1; Sun, 31 Dec 2023 11:27:08 -0500 X-MC-Unique: 2GcpBVUTM8WY-rlN9ZpEoA-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-40d45be1ce2so38406415e9.1 for ; Sun, 31 Dec 2023 08:27:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704040027; x=1704644827; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=W9SZrZXQYhT7Sd91knQv7PNkQL8oY2rRS96yOdxg1Q0=; b=e8nbgJiJErp1X6t5o1Xz8AULBncS3TgCAXHYnqBmm/WEwH/DRJ4fUgmB/7Cfbzc5Na oj16v68jqpBnU5DWpSqqXqwVar4j0hI/ohdyGXMcdRp98D0n7UBm3jxYYfyq+z1xpubA DKlsyT2corECeja//ptB2rLxpi6BFyCRp5q/anRwwQTFVKC7mBU+bTS/RQNaA9UGe0b5 Qn+2LruVyxVCoBlQYTyFnthN8Qq/gTL/kgrHnSvhfGe06Ru+MmV1b64n4ZssaNbbq7YX v33756EvqVK+ZB24iWxiS93Lw1g8r1U4/wdG/vymC3hx0BJ0U2M8NsWUx/wc6qOGO1gZ 4PDQ== X-Gm-Message-State: AOJu0Yx4N3FTIwA/cja8DFat+RXGqRb8iJKAQYNyjM+yDh50h9E+WHLM wTtEEf8ASH84gJ+irH6PQ88TYEyAADfcNrjXiX+wYMWFmGUBtoIg3zsbyUF0Qkszle2ka/pUtWo ycRuryL+NyyET7O0yYT72KaSJGaBDLv1d X-Received: by 2002:a05:600c:1383:b0:40d:628a:1229 with SMTP id u3-20020a05600c138300b0040d628a1229mr2894712wmf.96.1704040027764; Sun, 31 Dec 2023 08:27:07 -0800 (PST) X-Received: by 2002:a05:600c:1383:b0:40d:628a:1229 with SMTP id u3-20020a05600c138300b0040d628a1229mr2894699wmf.96.1704040027489; Sun, 31 Dec 2023 08:27:07 -0800 (PST) Received: from debian (2a01cb058918ce00b14e8593d3a1c390.ipv6.abo.wanadoo.fr. [2a01:cb05:8918:ce00:b14e:8593:d3a1:c390]) by smtp.gmail.com with ESMTPSA id w5-20020a5d5445000000b0033660f75d08sm23926474wrv.116.2023.12.31.08.27.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Dec 2023 08:27:06 -0800 (PST) Date: Sun, 31 Dec 2023 17:27:05 +0100 From: Guillaume Nault To: Yujie Liu Cc: netdev@vger.kernel.org, Hangbin Liu , Paolo Abeni , David Ahern , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, lkp@intel.com, kernel test robot Subject: Re: [PATCH v2 net-next] selftests/net: change shebang to bash to support "source" Message-ID: References: <20231229131931.3961150-1-yujie.liu@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231229131931.3961150-1-yujie.liu@intel.com> On Fri, Dec 29, 2023 at 09:19:31PM +0800, Yujie Liu wrote: > The patch set [1] added a general lib.sh in net selftests, and converted > several test scripts to source the lib.sh. > > unicast_extensions.sh (converted in [1]) and pmtu.sh (converted in [2]) > have a /bin/sh shebang which may point to various shells in different > distributions, but "source" is only available in some of them. For > example, "source" is a built-it function in bash, but it cannot be > used in dash. > > Refer to other scripts that were converted together, simply change the > shebang to bash to fix the following issues when the default /bin/sh > points to other shells. > > # selftests: net: unicast_extensions.sh > # ./unicast_extensions.sh: 31: source: not found > # ########################################################################### > # Unicast address extensions tests (behavior of reserved IPv4 addresses) > # ########################################################################### > # TEST: assign and ping within 240/4 (1 of 2) (is allowed) [FAIL] > # TEST: assign and ping within 240/4 (2 of 2) (is allowed) [FAIL] > # TEST: assign and ping within 0/8 (1 of 2) (is allowed) [FAIL] > # TEST: assign and ping within 0/8 (2 of 2) (is allowed) [FAIL] > # TEST: assign and ping inside 255.255/16 (is allowed) [FAIL] > # TEST: assign and ping inside 255.255.255/24 (is allowed) [FAIL] > # TEST: route between 240.5.6/24 and 255.1.2/24 (is allowed) [FAIL] > # TEST: route between 0.200/16 and 245.99/16 (is allowed) [FAIL] > # TEST: assign and ping lowest address (/24) [FAIL] > # TEST: assign and ping lowest address (/26) [FAIL] > # TEST: routing using lowest address [FAIL] > # TEST: assigning 0.0.0.0 (is forbidden) [ OK ] > # TEST: assigning 255.255.255.255 (is forbidden) [ OK ] > # TEST: assign and ping inside 127/8 (is forbidden) [ OK ] > # TEST: assign and ping class D address (is forbidden) [ OK ] > # TEST: routing using class D (is forbidden) [ OK ] > # TEST: routing using 127/8 (is forbidden) [ OK ] > not ok 51 selftests: net: unicast_extensions.sh # exit=1 > > v1 -> v2: > - Fix pmtu.sh which has the same issue as unicast_extensions.sh, > suggested by Hangbin > - Change the style of the "source" line to be consistent with other > tests, suggested by Hangbin > > Link: https://lore.kernel.org/all/20231202020110.362433-1-liuhangbin@gmail.com/ [1] > Link: https://lore.kernel.org/all/20231219094856.1740079-1-liuhangbin@gmail.com/ [2] Also, please add the missing Fixes tags. > Reported-by: kernel test robot > Signed-off-by: Yujie Liu