From nobody Tue Feb 10 09:57:24 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1549566341164772.1097836536917; Thu, 7 Feb 2019 11:05:41 -0800 (PST) Received: from localhost ([127.0.0.1]:45506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grozU-0005Nt-5o for importer@patchew.org; Thu, 07 Feb 2019 14:05:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1groYt-0000RM-UR for qemu-devel@nongnu.org; Thu, 07 Feb 2019 13:38:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1groYr-0007kH-IX for qemu-devel@nongnu.org; Thu, 07 Feb 2019 13:38:11 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:37069) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1groYn-0007WH-OO for qemu-devel@nongnu.org; Thu, 07 Feb 2019 13:38:07 -0500 Received: by mail-wm1-x344.google.com with SMTP id g67so937710wmd.2 for ; Thu, 07 Feb 2019 10:37:59 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id y20sm35696522wra.51.2019.02.07.10.37.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 10:37:53 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 475CE1FF8E; Thu, 7 Feb 2019 18:37:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=458VsIuHOmbZBe2YP64b9Zf2PvPdcWTqzpqK98thYpI=; b=lcM3dCy8hg47ER5ktwKlLwHW+g3ErpCyHGNR/V53fYY4uHZjEy6Jdgi2OZ3XZi9gFT QH8OTtsIGDeh/r5ol/wY3HE+e1PfiIcrp1jpk+/fGIxIYa1+1AFKiuMMDeGtdh9UYrmT I83J+xGjM53UgkOXbLgMans/LqZFMz8IVtBLc1StYARygcvUvu8kgNsw41CSM2tHWbAn X2JXgzy0R3IzXk5nJ10ftcyfoWHB1hLgY2mKnQPEO5ao8wLY5JSddrPkp9KwezQYv+Ea yPbLu2ePZfwz4ED/zbM4sCp/j9J96GnWVB2BAEx18bGT0t1AvRMXTSTNmP0aHmvlGAeF fSiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=458VsIuHOmbZBe2YP64b9Zf2PvPdcWTqzpqK98thYpI=; b=UCah6WAW/+dXwAFuzAqm1nbMJ9Un/K+RTiU1CxLbtN5NkwtDd2kZzFgPQgOheE0gNs XVFT40snpw9vavQpqDGcWoy1eUJQF221VVEpNXca3MpeAjy+eKzJeNZyemm4uUS4nSjd /4vp+3UgsU/el3VIdVAMEP+DcewbP/KFWRyxQQQP/xRYlutw6EPJFGALCMiDmP39Q5Lv C5Y9jfh8qpL1ylR+5TaE62cVsw4MHUfdYZ3Ac/pQAdjVEL1YfQEHUAtLguINZUYebdWF 8ry0UqyE4VIS1NSXGt+T1RuHpPo6X7W8E5PeiFA+oYz8LNKPXasyqpxpmLC8TOb5difH D/VQ== X-Gm-Message-State: AHQUAuZsQAQH1u3QXcfGl2ttpAQ/bahcc8CN5PdsAih3KZjzm8nDzakG C51+vvS2JAVVoVablKpcVQFhsg== X-Google-Smtp-Source: AHgI3IYVapdyg1/MASEhSq/mJteGutTfHB+zezyqbA7l1snKRxSIyxINZyxb/AwmSiPPKaqTt5hoVg== X-Received: by 2002:a1c:cc04:: with SMTP id h4mr8916892wmb.13.1549564677838; Thu, 07 Feb 2019 10:37:57 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 7 Feb 2019 18:37:42 +0000 Message-Id: <20190207183744.5054-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190207183744.5054-1-alex.bennee@linaro.org> References: <20190207183744.5054-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::344 Subject: [Qemu-devel] [PATCH v2 14/16] tests/vm: add --build-target option X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This allows us to invoke the build with a custom target (for the VMs that use the {target} format string specifier). Currently OpenBSD is still hardwired due to problems running check. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- tests/vm/basevm.py | 3 +++ tests/vm/freebsd | 2 +- tests/vm/netbsd | 2 +- tests/vm/ubuntu.i386 | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py index 5caf77d6b8..bdca6cb2fc 100755 --- a/tests/vm/basevm.py +++ b/tests/vm/basevm.py @@ -228,6 +228,8 @@ def parse_args(vmcls): help=3D"build image") parser.add_option("--build-qemu", help=3D"build QEMU from source in guest") + parser.add_option("--build-target", + help=3D"QEMU build target", default=3D"check") parser.add_option("--interactive", "-I", action=3D"store_true", help=3D"Interactively run command") parser.add_option("--snapshot", "-s", action=3D"store_true", @@ -255,6 +257,7 @@ def main(vmcls): cmd =3D [vm.BUILD_SCRIPT.format( configure_opts =3D " ".join(argv), jobs=3Dargs.jobs, + target=3Dargs.build_target, verbose =3D "V=3D1" if args.verbose else "")] else: cmd =3D argv diff --git a/tests/vm/freebsd b/tests/vm/freebsd index a85c866c30..1d64c31b7c 100755 --- a/tests/vm/freebsd +++ b/tests/vm/freebsd @@ -25,7 +25,7 @@ class FreeBSDVM(basevm.BaseVM): cd $(mktemp -d /var/tmp/qemu-test.XXXXXX); tar -xf /dev/vtbd1; ./configure {configure_opts}; - gmake --output-sync -j{jobs} check {verbose}; + gmake --output-sync -j{jobs} {target} {verbose}; """ =20 def build_image(self, img): diff --git a/tests/vm/netbsd b/tests/vm/netbsd index edea113bb5..a2c3d13af4 100755 --- a/tests/vm/netbsd +++ b/tests/vm/netbsd @@ -25,7 +25,7 @@ class NetBSDVM(basevm.BaseVM): cd $(mktemp -d /var/tmp/qemu-test.XXXXXX); tar -xf /dev/rld1a; ./configure --python=3Dpython2.7 {configure_opts}; - gmake --output-sync -j{jobs} check {verbose}; + gmake --output-sync -j{jobs} {target} {verbose}; """ =20 def build_image(self, img): diff --git a/tests/vm/ubuntu.i386 b/tests/vm/ubuntu.i386 index 252e514859..a22d137e76 100755 --- a/tests/vm/ubuntu.i386 +++ b/tests/vm/ubuntu.i386 @@ -26,7 +26,7 @@ class UbuntuX86VM(basevm.BaseVM): sudo chmod a+r /dev/vdb; tar -xf /dev/vdb; ./configure {configure_opts}; - make --output-sync check -j{jobs} {verbose}; + make --output-sync {target} -j{jobs} {verbose}; """ =20 def _gen_cloud_init_iso(self): --=20 2.20.1