From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] Script to help check compatibility against a range of kernels. Date: Tue, 02 Oct 2007 11:47:13 +0200 Message-ID: <470213A1.2080400@qumranet.com> References: <1191311951.17826.11.camel@localhost.localdomain> <1191312174.17826.15.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Rusty Russell Return-path: In-Reply-To: <1191312174.17826.15.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Rusty Russell wrote: > This makes it easier to check kvm-userspace compatibility layer. > > I actually started to write something like this, except it pulled older kernels from git. Thanks. > --- > check-compat.sh | 27 +++++++++++++++++++++++++++ > 1 files changed, 27 insertions(+), 0 deletions(-) > create mode 100755 check-compat.sh > > diff --git a/check-compat.sh b/check-compat.sh > new file mode 100755 > index 0000000..c07be4d > --- /dev/null > +++ b/check-compat.sh > @@ -0,0 +1,27 @@ > +#! /bin/sh > + > +die() > +{ > + echo FAILED: > + cat $LOGFILE > + exit 1 > +} > + > +if [ $# = 0 ]; then > + echo Usage: ./check-compat.sh kerneldir... >&2 > + echo eg. './check-compat.sh ../linux-2.6.*' >&2 > + exit 1 > +fi > + > +LOGFILE=`mktemp -t kvm-check-compat.XXXXXXXXXX` > +trap "rm -f $LOGFILE" 0 > + > +for k in "$@"; do > + [ -d $k ] || continue > + make clean > /dev/null 2>&1 > + echo -n Checking $k... > + ./configure --kerneldir=`pwd`/$k > $LOGFILE 2>&1 || die > + make >> $LOGFILE 2>&1 || die > + echo ok. > +done > + > -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/