Commit 3b009c0e authored by Paul E. McKenney's avatar Paul E. McKenney

rcutorture: Make build-output parsing correctly flag RCU's warnings

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent 9733e4f0
...@@ -26,12 +26,15 @@ ...@@ -26,12 +26,15 @@
# #
# Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com> # Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
T=$1 F=$1
title=$2 title=$2
T=/tmp/parse-build.sh.$$
trap 'rm -rf $T' 0
mkdir $T
. functions.sh . functions.sh
if grep -q CC < $T if grep -q CC < $F
then then
: :
else else
...@@ -39,18 +42,21 @@ else ...@@ -39,18 +42,21 @@ else
exit 1 exit 1
fi fi
if grep -q "error:" < $T if grep -q "error:" < $F
then then
print_bug $title build errors: print_bug $title build errors:
grep "error:" < $T grep "error:" < $F
exit 2 exit 2
fi fi
exit 0
if egrep -q "rcu[^/]*\.c.*warning:|rcu.*\.h.*warning:" < $T grep warning: < $F > $T/warnings
grep "include/linux/*rcu*\.h:" $T/warnings > $T/hwarnings
grep "kernel/rcu/[^/]*:" $T/warnings > $T/cwarnings
cat $T/hwarnings $T/cwarnings > $T/rcuwarnings
if test -s $T/rcuwarnings
then then
print_warning $title build errors: print_warning $title build errors:
egrep "rcu[^/]*\.c.*warning:|rcu.*\.h.*warning:" < $T cat $T/rcuwarnings
exit 2 exit 2
fi fi
exit 0 exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment