diff options
| author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-11-21 16:54:57 -0500 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-01-10 22:07:57 -0500 |
| commit | 3b009c0ebe02a06d2d5bd667da0eb9cefa79321d (patch) | |
| tree | 125c976316fe1dca0106c97376b86254a689e6e3 /tools/testing | |
| parent | 9733e4f0a973a354034f5dd603b4142a3095c85f (diff) | |
rcutorture: Make build-output parsing correctly flag RCU's warnings
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'tools/testing')
| -rwxr-xr-x | tools/testing/selftests/rcutorture/bin/parse-build.sh | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/parse-build.sh b/tools/testing/selftests/rcutorture/bin/parse-build.sh index 499d1e598e42..a6b57622c2e5 100755 --- a/tools/testing/selftests/rcutorture/bin/parse-build.sh +++ b/tools/testing/selftests/rcutorture/bin/parse-build.sh | |||
| @@ -26,12 +26,15 @@ | |||
| 26 | # | 26 | # |
| 27 | # Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 27 | # Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com> |
| 28 | 28 | ||
| 29 | T=$1 | 29 | F=$1 |
| 30 | title=$2 | 30 | title=$2 |
| 31 | T=/tmp/parse-build.sh.$$ | ||
| 32 | trap 'rm -rf $T' 0 | ||
| 33 | mkdir $T | ||
| 31 | 34 | ||
| 32 | . functions.sh | 35 | . functions.sh |
| 33 | 36 | ||
| 34 | if grep -q CC < $T | 37 | if grep -q CC < $F |
| 35 | then | 38 | then |
| 36 | : | 39 | : |
| 37 | else | 40 | else |
| @@ -39,18 +42,21 @@ else | |||
| 39 | exit 1 | 42 | exit 1 |
| 40 | fi | 43 | fi |
| 41 | 44 | ||
| 42 | if grep -q "error:" < $T | 45 | if grep -q "error:" < $F |
| 43 | then | 46 | then |
| 44 | print_bug $title build errors: | 47 | print_bug $title build errors: |
| 45 | grep "error:" < $T | 48 | grep "error:" < $F |
| 46 | exit 2 | 49 | exit 2 |
| 47 | fi | 50 | fi |
| 48 | exit 0 | ||
| 49 | 51 | ||
| 50 | if egrep -q "rcu[^/]*\.c.*warning:|rcu.*\.h.*warning:" < $T | 52 | grep warning: < $F > $T/warnings |
| 53 | grep "include/linux/*rcu*\.h:" $T/warnings > $T/hwarnings | ||
| 54 | grep "kernel/rcu/[^/]*:" $T/warnings > $T/cwarnings | ||
| 55 | cat $T/hwarnings $T/cwarnings > $T/rcuwarnings | ||
| 56 | if test -s $T/rcuwarnings | ||
| 51 | then | 57 | then |
| 52 | print_warning $title build errors: | 58 | print_warning $title build errors: |
| 53 | egrep "rcu[^/]*\.c.*warning:|rcu.*\.h.*warning:" < $T | 59 | cat $T/rcuwarnings |
| 54 | exit 2 | 60 | exit 2 |
| 55 | fi | 61 | fi |
| 56 | exit 0 | 62 | exit 0 |
