From: Rusty Russell <rusty-8n+1lVoiYb80n/F98K4Iww@public.gmane.org>
To: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: [PATCH] Script to help check compatibility against a range of kernels.
Date: Tue, 02 Oct 2007 18:02:54 +1000 [thread overview]
Message-ID: <1191312174.17826.15.camel@localhost.localdomain> (raw)
In-Reply-To: <1191311951.17826.11.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
This makes it easier to check kvm-userspace compatibility layer.
---
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
+
--
1.5.1.3
-------------------------------------------------------------------------
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/
next prev parent reply other threads:[~2007-10-02 8:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-02 7:59 Backwards compat for < 2.6.16? Rusty Russell
[not found] ` <1191311951.17826.11.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-10-02 8:02 ` Rusty Russell [this message]
[not found] ` <1191312174.17826.15.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-10-02 9:47 ` [PATCH] Script to help check compatibility against a range of kernels Avi Kivity
2007-10-02 8:37 ` Backwards compat for < 2.6.16? Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1191312174.17826.15.camel@localhost.localdomain \
--to=rusty-8n+1lvoiyb80n/f98k4iww@public.gmane.org \
--cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox