Message ID | 1669165413-12035-7-git-send-email-yangtiezhu@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2524242wrr; Tue, 22 Nov 2022 17:05:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6aKNkDqxyRpKfHv5JV53BEiVnhS8/ePay9F+euDRa9/bxLOBjDzROy1N1KR6ikZp8N2t4p X-Received: by 2002:a63:5a13:0:b0:477:8fed:8122 with SMTP id o19-20020a635a13000000b004778fed8122mr6898517pgb.346.1669165502084; Tue, 22 Nov 2022 17:05:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669165502; cv=none; d=google.com; s=arc-20160816; b=iLORE48v7aOLAXv7cHHsxvvRBMCGT8KSLfmP+ubltDncq9mlfx5EdjqX8vbsILuwiM Th9Gc1uwjxVchjHNpfayWZs2XNWmABc4grMuf/DybJoiHXyTwW+urY4cwo4WkkjC4j6r gZAMbTnKa8DhMHfwnZc8kFaW764d69NKHhqzBLAAnin0rQ8bQNJqMNey/K7Pj82sAMxd 97rmaYGdIEJEIAKffOeGBfYsDE0GWxsLqRA73yZrqbzk3b6FWCDv6VbM+DLwkW8s39go sljStLM867FvTeEBFrZNL9o7x2O99Hjyi39eAEw9S8RFoWwp1H8iSMc57zIPrtnb4ddT KFTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=7JGHF7Xo09Kc3TqHHShC0qfEDTU4C0GmO3GG+DrUXDs=; b=b+54bDF5NXkZ0IFAWa6mPTDxabXsWp/wkOarUp7QJPVtEZm1AJjJt7/6GpHEUhYu88 wdgDgKWNd7RrI8IQo/nIfhG1zn+ZF9kBRoK/ZtSDpYWi2htFZJXF7J0vAa9pS+RtsrrZ gbqmtQoCaMexKHJSgid3K0+VAa/hQ/FoqwMZ5vSt5cLHEYym+xU2JJOpqx6jJbXAqr8e qfmtWg7W0CXejl7RU3ZsmH4czvI/VsKvDkHLgvLZ0q+T9C8TqjE4FbHUfN6Mq0r6hMov bzZ+ojRAXI9GE/+aS473grMmn4f+61WnvPZCSNIq26b+DFE8/8LeG1FPhxb9ZkkMCcB3 soQA== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a656944000000b004772cf9ae7esi1822072pgq.284.2022.11.22.17.04.48; Tue, 22 Nov 2022 17:05:02 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235379AbiKWBD7 (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Tue, 22 Nov 2022 20:03:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235016AbiKWBDr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 22 Nov 2022 20:03:47 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EF68BDA4D1; Tue, 22 Nov 2022 17:03:45 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8DxM_BwcX1jmyMAAA--.434S3; Wed, 23 Nov 2022 09:03:44 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxJldqcX1js24YAA--.45400S8; Wed, 23 Nov 2022 09:03:44 +0800 (CST) From: Tiezhu Yang <yangtiezhu@loongson.cn> To: Shuah Khan <shuah@kernel.org>, Shuah Khan <skhan@linuxfoundation.org> Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/6] selftests: kselftest_deps: Use "grep -E" instead of "egrep" Date: Wed, 23 Nov 2022 09:03:33 +0800 Message-Id: <1669165413-12035-7-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> References: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8CxJldqcX1js24YAA--.45400S8 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoWruFWrur1kGFy3Gr1fJw17trb_yoWkKFXEvr W8trykAr4UZF1DArWUua4UAFWkCw4jkF4UCryUGwnxt34jvF45GFs3ur1jy3WrWws8W3y2 va1kZ3WfKr1Y9jkaLaAFLSUrUUUUbb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY j7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3w AFIxvE14AKwVWUXVWUAwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK 6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7 xvwVC2z280aVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4j6r4UJwAS0I0E 0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzV Aqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUtVWrXwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S 6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7VAKI48JMxC20s026x CaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_ JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r 4j6ryUMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_ Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8Jr UvcSsGvfC2KfnxnUUI43ZEXa7IU8l38UUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750246885910633762?= X-GMAIL-MSGID: =?utf-8?q?1750246885910633762?= |
Series |
selftests: Use "grep -E" instead of "egrep"
|
|
Commit Message
Tiezhu Yang
Nov. 23, 2022, 1:03 a.m. UTC
The latest version of grep claims the egrep is now obsolete so the build
now contains warnings that look like:
egrep: warning: egrep is obsolescent; using grep -E
fix this up by moving the related file to use "grep -E" instead.
sed -i "s/egrep/grep -E/g" `grep egrep -rwl tools/testing/selftests`
Here are the steps to install the latest grep:
wget http://ftp.gnu.org/gnu/grep/grep-3.8.tar.gz
tar xf grep-3.8.tar.gz
cd grep-3.8 && ./configure && make
sudo make install
export PATH=/usr/local/bin:$PATH
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
tools/testing/selftests/kselftest_deps.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/kselftest_deps.sh b/tools/testing/selftests/kselftest_deps.sh index 708cb54..7424a1f 100755 --- a/tools/testing/selftests/kselftest_deps.sh +++ b/tools/testing/selftests/kselftest_deps.sh @@ -90,7 +90,7 @@ pass_libs=() pass_cnt=0 # Get all TARGETS from selftests Makefile -targets=$(egrep "^TARGETS +|^TARGETS =" Makefile | cut -d "=" -f2) +targets=$(grep -E "^TARGETS +|^TARGETS =" Makefile | cut -d "=" -f2) # Single test case if [ $# -eq 2 ]