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@xxxxxxxxxxx>
---
.../selftests/ftrace/test.d/preemptirq/irqsoff_tracer.tc | 8 ++++----
tools/testing/selftests/gpio/gpio-sim.sh | 2 +-
tools/testing/selftests/kselftest_deps.sh | 2 +-
tools/testing/selftests/net/toeplitz.sh | 2 +-
tools/testing/selftests/powerpc/scripts/hmi.sh | 2 +-
tools/testing/selftests/rcutorture/bin/console-badness.sh | 2 +-
tools/testing/selftests/rcutorture/bin/kvm-build.sh | 4 ++--
tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh | 4 ++--
tools/testing/selftests/rcutorture/bin/kvm.sh | 4 ++--
tools/testing/selftests/rcutorture/bin/parse-console.sh | 10 +++++-----
10 files changed, 20 insertions(+), 20 deletions(-)