Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6876629rwb; Wed, 10 Aug 2022 02:46:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR5+LcdBbCJJAhCIvOfFXwu3pJV0ZRTR9MNqpopws1W5GUmQuNEmlSI/s+zR4XV350GVMxbF X-Received: by 2002:a17:907:6089:b0:733:199f:cba8 with SMTP id ht9-20020a170907608900b00733199fcba8mr204077ejc.272.1660124765581; Wed, 10 Aug 2022 02:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660124765; cv=none; d=google.com; s=arc-20160816; b=efxkI8dK7m2Y780NmtS4Rp6hwpp+MN0SDx81nw3d4piRb5OXHFRSsuwLIlC60wMStS U9ZTWX7+gdcvaTWRi3G1oC7+vG9X/SNL5ggoceNRBc/nvrfOZDIp6YbtznyYA8MqXaKC 523VquFQyQuqgitETYwuPVJk7tOXPla/omhzk+4v18lOCh8S/bUNf2YhqnC7UA0y31Ws 5pRMyIP5+aDP/tK981X6tUg78iOBsqhFsAhnTAjHxBFTfgA7CyyCx87xciS+AY8NhbGY RTrZUf8avPx/1jtfBno0NCg9EI4bHO8WS74Z9F0abV8PrFJ6cyUrtKtX33oFLRZmRR5i Z/Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=78dgYlqKO0ZvQjJz+sJd0671q+NGfvnDDEssu3bBwM0=; b=a0qPk2WWn86bFE/GMGYv+Kh6J/xVMVlXebUbygeOI6FqlA+0GmWGMR3roHDRhaqBL8 9sYw+ZYkK6wrmckHqtespa/QW0EzJwodSH6cabqjXsmeKekkrkvsB3T2qh14NBxNP9wa FXm996qCqQfwpaD5mCpgLY3DXdsomS3T+P7tFwZxohz8srG/nsi9x5V9ynyuGilLRLAS p0752JdQrdGv9M6rkO10br0nFTdfKFb6DsR+7/hiaFN1keDILXrS/1cUnZxweY8oHYdv 98ERgVcTJxdVcbzZLGUGxgRdBobBZ35Ba7j5pGDPGQFPM5a3qh3IYxH7Acy2kYwBUuuV ETXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lQI08ncj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs9-20020a170906dc8900b007317ad1f9a4si4506270ejc.310.2022.08.10.02.45.39; Wed, 10 Aug 2022 02:46:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lQI08ncj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbiHJJhR (ORCPT + 99 others); Wed, 10 Aug 2022 05:37:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231587AbiHJJhO (ORCPT ); Wed, 10 Aug 2022 05:37:14 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70EEC84EC7; Wed, 10 Aug 2022 02:37:12 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id q9-20020a17090a2dc900b001f58bcaca95so1599801pjm.3; Wed, 10 Aug 2022 02:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=78dgYlqKO0ZvQjJz+sJd0671q+NGfvnDDEssu3bBwM0=; b=lQI08ncjvuLNvOWEIrCzsgcKgE2diNiQhT8iO8FvSLLMxYi9mCiO67CSzRUITu8LrB 6Qinn3mOIdhfO4Yo8lA+blRSETuEGrdp3nzbzud4oM7pAaR3zKLqTHJ1s2MVZSi24aPO 5lZAGgQnL717sdNqp2JFkR5rElvLbyQNeq4/cH7sJ6VfImDKU5rh8YgqAFAZr6rGxHCb cnQFjNUNFbhSznox4mcKEGPNdKFO+wP8WWLeswx3i+TuwBVYZFkzNVQiqbu25QrsuTCr DvZ7BEhcyuW5Nc/Gx2Humrtm3BxIPoHzopFS+r4rLMm7GQ3en8r9Ao1/fODPXoSVd/OM SJuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=78dgYlqKO0ZvQjJz+sJd0671q+NGfvnDDEssu3bBwM0=; b=pukuQfNqG8278BXUX3CTmYW4KNJ+XkjMHCIzXaTU0P3LqC9ArmxyDNet3+2aO8AzNE qR9+AuI8zJpKVeDzul4GGY1GaGpV1kqzDA6DoueJLcvnOli/ocwlW23rOx166E16scrR Z69MSNvl4tMzRyZ2BUUQn6uKNfzCXF3HjOrPHCOwEC5EQU22Hlrrr6ukEBWOBr7zzFZ5 xnFVVt9PqWwNIEiHViGiZeoqIl/uFOJ5JW0XXYl7sDcjg4RbFc+ibSjnN0rOx35OJBHy wBwvevJW6hbxVK/uu8bJu2vEO9xzNl9KMUSwLj76XuEaa4yYwQ07iY+ktbO+2KIZrA6b fxcg== X-Gm-Message-State: ACgBeo0lOz8QVaxvBpOHMN8lq+/TiknfOcBzdLuQpsIWFr4xRPImcsBW UfXuU7rFPIreVefcPC+raiQ= X-Received: by 2002:a17:90b:b13:b0:1f3:7ab:35b2 with SMTP id bf19-20020a17090b0b1300b001f307ab35b2mr2813942pjb.118.1660124231738; Wed, 10 Aug 2022 02:37:11 -0700 (PDT) Received: from engine.. ([106.212.112.163]) by smtp.gmail.com with ESMTPSA id p14-20020a17090a2c4e00b001f754cd508dsm1130979pjm.35.2022.08.10.02.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 02:37:11 -0700 (PDT) From: Piyush Thange To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: shuah@kernel.org, vladimir.oltean@nxp.com, idosch@nvidia.com, petrm@nvidia.com, troglobit@gmail.com, amcohen@nvidia.com, tobias@waldekranz.com, po-hsu.lin@canonical.com, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Piyush Thange Subject: [PATCH] selftests:net:forwarding: Included install command Date: Wed, 10 Aug 2022 15:05:08 +0530 Message-Id: <20220810093508.33790-1-pthange19@gmail.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If the execution is skipped due to "jq not installed" message then the installation methods on different OS's have been provided with this message. Signed-off-by: Piyush Thange --- tools/testing/selftests/net/forwarding/lib.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh index 37ae49d47853..c4121856fe06 100755 --- a/tools/testing/selftests/net/forwarding/lib.sh +++ b/tools/testing/selftests/net/forwarding/lib.sh @@ -152,6 +152,14 @@ require_command() if [[ ! -x "$(command -v "$cmd")" ]]; then echo "SKIP: $cmd not installed" + if [[ $cmd == "jq" ]]; then + echo " Install on Debian based systems" + echo " sudo apt -y install jq" + echo " Install on RHEL based systems" + echo " sudo yum -y install jq" + echo " Install on Fedora based systems" + echo " sudo dnf -y install jq" + fi exit $ksft_skip fi } -- 2.37.1