aboutgitcodebugslistschat
path: root/test/Makefile
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-07-06 17:29:00 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-07-14 01:32:42 +0200
commit2297637251d98f639a38f2af23a9913eab01200d (patch)
tree2e0c50d2d8c29809a9deee53d91c7ba15c3c7c79 /test/Makefile
parentdb551e5de02a46517f40f2320b85ae65a877fe6b (diff)
downloadpasst-2297637251d98f639a38f2af23a9913eab01200d.tar
passt-2297637251d98f639a38f2af23a9913eab01200d.tar.gz
passt-2297637251d98f639a38f2af23a9913eab01200d.tar.bz2
passt-2297637251d98f639a38f2af23a9913eab01200d.tar.lz
passt-2297637251d98f639a38f2af23a9913eab01200d.tar.xz
passt-2297637251d98f639a38f2af23a9913eab01200d.tar.zst
passt-2297637251d98f639a38f2af23a9913eab01200d.zip
tests: Move mbuto download and execution to asset build
Move the download of mbuto and using it to create a sample initramfs to the asset build makefile, rather than embedding it in the test scripts themselves. The two_guests tests used to use two separate copies of the mbuto image. As an initramfs the mbuto image is strictly readonly though, so that's not necessary. So, also use the same image for both guests. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile
index 02c60a3..b72280d 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -5,13 +5,19 @@
# Copyright Red Hat
# Author: David Gibson <david@gibson.dropbear.id.au>
-DOWNLOAD_ASSETS =
-LOCAL_ASSETS =
+DOWNLOAD_ASSETS = mbuto
+LOCAL_ASSETS = mbuto.img
ASSETS = $(DOWNLOAD_ASSETS) $(LOCAL_ASSETS)
assets: $(ASSETS)
+mbuto:
+ git clone git://mbuto.sh/mbuto
+
+mbuto.img: passt.mbuto mbuto
+ ./mbuto/mbuto -p ./$< -c lz4 -f $@
+
check: assets
./run