1c87b9c60SPaul E. McKenney#!/bin/sh 2c87b9c60SPaul E. McKenney# 3c87b9c60SPaul E. McKenney# Check the build output from an rcutorture run for goodness. 4c87b9c60SPaul E. McKenney# The "file" is a pathname on the local system, and "title" is 5c87b9c60SPaul E. McKenney# a text string for error-message purposes. 6c87b9c60SPaul E. McKenney# 7c87b9c60SPaul E. McKenney# The file must contain kernel build output. 8c87b9c60SPaul E. McKenney# 9c87b9c60SPaul E. McKenney# Usage: 10c87b9c60SPaul E. McKenney# sh parse-build.sh file title 11c87b9c60SPaul E. McKenney# 12c87b9c60SPaul E. McKenney# This program is free software; you can redistribute it and/or modify 13c87b9c60SPaul E. McKenney# it under the terms of the GNU General Public License as published by 14c87b9c60SPaul E. McKenney# the Free Software Foundation; either version 2 of the License, or 15c87b9c60SPaul E. McKenney# (at your option) any later version. 16c87b9c60SPaul E. McKenney# 17c87b9c60SPaul E. McKenney# This program is distributed in the hope that it will be useful, 18c87b9c60SPaul E. McKenney# but WITHOUT ANY WARRANTY; without even the implied warranty of 19c87b9c60SPaul E. McKenney# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20c87b9c60SPaul E. McKenney# GNU General Public License for more details. 21c87b9c60SPaul E. McKenney# 22c87b9c60SPaul E. McKenney# You should have received a copy of the GNU General Public License 23c87b9c60SPaul E. McKenney# along with this program; if not, write to the Free Software 24c87b9c60SPaul E. McKenney# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 25c87b9c60SPaul E. McKenney# 26c87b9c60SPaul E. McKenney# Copyright (C) IBM Corporation, 2011 27c87b9c60SPaul E. McKenney# 28c87b9c60SPaul E. McKenney# Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com> 29c87b9c60SPaul E. McKenney 30c87b9c60SPaul E. McKenneyT=$1 31c87b9c60SPaul E. McKenneytitle=$2 32c87b9c60SPaul E. McKenney 33c87b9c60SPaul E. McKenneyif grep -q CC < $T 34c87b9c60SPaul E. McKenneythen 35c87b9c60SPaul E. McKenney : 36c87b9c60SPaul E. McKenneyelse 37c87b9c60SPaul E. McKenney echo $title no build 38c87b9c60SPaul E. McKenney exit 1 39c87b9c60SPaul E. McKenneyfi 40c87b9c60SPaul E. McKenney 41c87b9c60SPaul E. McKenneyif egrep -q "error:|rcu[^/]*\.c.*warning:|rcu.*\.h.*warning:" < $T 42c87b9c60SPaul E. McKenneythen 43c87b9c60SPaul E. McKenney echo $title build errors: 44c87b9c60SPaul E. McKenney egrep "error:|rcu[^/]*\.c.*warning:|rcu.*\.h.*warning:" < $T 45c87b9c60SPaul E. McKenney exit 2 46c87b9c60SPaul E. McKenneyfi 47c87b9c60SPaul E. McKenneyexit 0 48