From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Larson Subject: [PATCH][XM-TEST] Add support for pulling initrd images from a repo Date: Tue, 21 Feb 2006 13:22:14 -0600 Message-ID: <43FB6866.1040506@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020701010403000004000806" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------020701010403000004000806 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit XM-Test takes a really long time to build the initrd it uses for testing. This patch to the Makefile allows you to specify INITRD="url" when running make existing to make it download a prebuilt copy of the initrd from a repository. This also updates the README to document the change. Signed-off-by: Paul Larson Thanks, Paul Larson --------------020701010403000004000806 Content-Type: text/x-patch; name="xmtest-wget-initrd.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xmtest-wget-initrd.patch" # HG changeset patch # User pl@us.ibm.com # Node ID 1f91359510f31c52f48ca5ab85a6ee44c41212e5 # Parent 1c7145a5bb434413204a3ce4114de7f58fbb9029 XM-Test takes a really long time to build the initrd it uses for testing. This patch to the Makefile allows you to specify INITRD="url" when running make existing to make it download a prebuilt copy of the initrd from a repository. Signed-off-by: Paul Larson diff -r 1c7145a5bb43 -r 1f91359510f3 tools/xm-test/README --- a/tools/xm-test/README Tue Feb 21 11:19:13 2006 +++ b/tools/xm-test/README Tue Feb 21 19:12:04 2006 @@ -48,6 +48,15 @@ Simply copy the initrd-X.Y.img file into ramdisk/ and then run: # make existing + +Or, you can run: + # INITRD="http://url.of.initrd.repo/" make existing + +You do not need to include the name of the image itself in the url, +however, an initrd with the right name (initrd.X.Y.img) and version +number must exist at that location. The script will determine which +version of the initrd it needs and try to download the right file from +that location. This will set up the link so that xm-test will use the existing ramdisk. Next, just run "runtest.sh" normally. Note that in general, diff -r 1c7145a5bb43 -r 1f91359510f3 tools/xm-test/ramdisk/Makefile.am --- a/tools/xm-test/ramdisk/Makefile.am Tue Feb 21 11:19:13 2006 +++ b/tools/xm-test/ramdisk/Makefile.am Tue Feb 21 19:12:04 2006 @@ -57,6 +57,9 @@ fi existing: + @if test -n "$(INITRD)"; then \ + wget $(INITRD)/$(XMTEST_VER_IMG); \ + fi @if [ -f $(XMTEST_VER_IMG) ] ; then \ ln -sf $(XMTEST_VER_IMG) initrd.img; \ else \ --------------020701010403000004000806 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------020701010403000004000806--