ia64/xen-unstable

changeset 8958:b41e19644271

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 <pl@us.ibm.com>
author pl@us.ibm.com
date Wed Feb 22 16:02:54 2006 +0100 (2006-02-22)
parents 13e9fdaeed27
children 229c602a075a
files tools/xm-test/README tools/xm-test/ramdisk/Makefile.am
line diff
     1.1 --- a/tools/xm-test/README	Wed Feb 22 09:54:20 2006 +0100
     1.2 +++ b/tools/xm-test/README	Wed Feb 22 16:02:54 2006 +0100
     1.3 @@ -49,6 +49,15 @@ Simply copy the initrd-X.Y.img file into
     1.4  
     1.5     # make existing
     1.6  
     1.7 +Or, you can run:
     1.8 +   # INITRD="http://url.of.initrd.repo/" make existing
     1.9 +
    1.10 +You do not need to include the name of the image itself in the url, 
    1.11 +however, an initrd with the right name (initrd.X.Y.img) and version 
    1.12 +number must exist at that location.  The script will determine which 
    1.13 +version of the initrd it needs and try to download the right file from 
    1.14 +that location.
    1.15 +
    1.16  This will set up the link so that xm-test will use the existing
    1.17  ramdisk.  Next, just run "runtest.sh" normally.  Note that in general,
    1.18  you should not attempt to use a ramdisk from a previous minor version
     2.1 --- a/tools/xm-test/ramdisk/Makefile.am	Wed Feb 22 09:54:20 2006 +0100
     2.2 +++ b/tools/xm-test/ramdisk/Makefile.am	Wed Feb 22 16:02:54 2006 +0100
     2.3 @@ -57,6 +57,9 @@ disk.img: existing
     2.4  	fi
     2.5  
     2.6  existing:
     2.7 +	@if test -n "$(INITRD)"; then \
     2.8 +		wget $(INITRD)/$(XMTEST_VER_IMG); \
     2.9 +	fi
    2.10  	@if [ -f $(XMTEST_VER_IMG) ] ; then \
    2.11  		ln -sf $(XMTEST_VER_IMG) initrd.img; \
    2.12  	else \