From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 166885A026F for ; Thu, 21 Mar 2024 05:57:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1710997065; bh=dKrJTlwDKKmszxRc4VUmFQZ3LFf12ueNsRpk2BnXTHI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B8BNZJ6rlKuLTzMWi0sdzMbmVDTmepdnpyHl1jMq/48DcawvSECyx4PB8NIKq4Zpe dWC0LSL8aDTwEpFJZatVh3ip+sJJPfSzo2ZAWmC3TaRgWZB4PK6DoTF9sywo6FTk3P 3n5kdc2a86Bn7OrduMW3lJTRBe10ckG3PsTXrcGmAHOfSqLtZAsAceLMYdM+m2or75 3OHan7goL+0Fa1WUrRfC5vXffJBL+mGDOs7Nvke9Xse5hITMf3rdvz3drm7zRRTOoW BfXZ/YBBgsa6nMS0WX1HBXzzEcM9k2/FWJ/PtrE86zPbVnAwkQtqf42FWwTtCz3PRD s0tuO9F2vCFDw== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4V0Y9j0Mqwz4wxX; Thu, 21 Mar 2024 15:57:45 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH v2 2/5] test: Make sure to update mbuto repository Date: Thu, 21 Mar 2024 15:57:39 +1100 Message-ID: <20240321045742.2267188-3-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240321045742.2267188-1-david@gibson.dropbear.id.au> References: <20240321045742.2267188-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 3BBTHDNL7MZPIN5T57KYSHJATDTLNY6Q X-Message-ID-Hash: 3BBTHDNL7MZPIN5T57KYSHJATDTLNY6Q X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Paul Holzinger , David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 --- test/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index 7b00bef4..711c61c1 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 -- 2.44.0