diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-03-21 15:57:39 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-04-05 16:59:13 +0200 |
commit | e8b78217bb1b13d145284e905be60274164b9dd0 (patch) | |
tree | eda43a3632d322b7da10b7acf84bdcc09d1e0503 /test | |
parent | ef2cb13b499a41b6da215822772bf2a05aa69f9e (diff) | |
download | passt-e8b78217bb1b13d145284e905be60274164b9dd0.tar passt-e8b78217bb1b13d145284e905be60274164b9dd0.tar.gz passt-e8b78217bb1b13d145284e905be60274164b9dd0.tar.bz2 passt-e8b78217bb1b13d145284e905be60274164b9dd0.tar.lz passt-e8b78217bb1b13d145284e905be60274164b9dd0.tar.xz passt-e8b78217bb1b13d145284e905be60274164b9dd0.tar.zst passt-e8b78217bb1b13d145284e905be60274164b9dd0.zip |
test: Make sure to update mbuto repository
We download and use mbuto to build trivial boot images for our VM tests.
However, if mbuto is already cloned, we won't update it to the current
version. Add some make logic to ensure that we do this.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile index 7b00bef..711c61c 100644 --- a/test/Makefile +++ b/test/Makefile @@ -67,13 +67,19 @@ CFLAGS = -Wall -Werror -Wextra -pedantic -std=c99 assets: $(ASSETS) +.PHONY: pull-% +pull-%: % + git -C $* pull + mbuto: git clone git://mbuto.sh/mbuto +mbuto/mbuto: pull-mbuto + guest-key guest-key.pub: ssh-keygen -f guest-key -N '' -mbuto.img: passt.mbuto mbuto guest-key.pub $(TESTDATA_ASSETS) +mbuto.img: passt.mbuto mbuto/mbuto guest-key.pub $(TESTDATA_ASSETS) ./mbuto/mbuto -p ./$< -c lz4 -f $@ mbuto.mem.img: passt.mem.mbuto mbuto ../passt.avx2 |