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>
This commit is contained in:
pl@us.ibm.com committed 2006-02-22 16:02:54 +01:00
1 parent acd1abe9f9
commit c9eb2aae5d
2 files changed
+12

No files matched your search

+9
View File
@@ -49,6 +49,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,
you should not attempt to use a ramdisk from a previous minor version
+3
View File
@@ -57,6 +57,9 @@ disk.img: existing
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 \
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.