From nobody Fri Nov 14 03:51:12 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.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 (zohomail.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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1584491015; cv=none; d=zohomail.com; s=zohoarc; b=LUWb4t3PDxerrUIS8cZinY9yEBaTl7DY5SmGshNU25phoAEcxn3rhLyEg9dsiVWXYwI5Q77BUM5aP1v99LpibNNTxgGFjU62LzyN1WqDOrqpUPias1QXQuIjlIIBXPn7asxZtyQQaP3lPxHousZOnZ89fAarf+vQMdxI4RxA/ro= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584491015; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zoD/z+A1PszJF4eckXJDLUHboiQsadxXrSrIBOl8OZI=; b=l22ZNpK4KBhMQTb0r1DLsOwhl0CZZR95+gjoyOoCLoV1IFGXHU4Trny2PMLEzV2tr2n57iIM18zAH6NhGRxHn8hi6n6qfkZyHLIFSEWqQrIwoEvMGAB2+jI27J9Pew2OuBIqhVPpZsV5XByGR9Rn4DgwfgK3IoZ+bHPDcPYw3SE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.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 header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1584491015070666.3972876444327; Tue, 17 Mar 2020 17:23:35 -0700 (PDT) Received: from localhost ([::1]:43618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEMUg-00084S-3d for importer@patchew.org; Tue, 17 Mar 2020 20:23:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45376) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEMRC-0004L3-7X for qemu-devel@nongnu.org; Tue, 17 Mar 2020 20:19:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEMRA-00084Y-Ly for qemu-devel@nongnu.org; Tue, 17 Mar 2020 20:19:58 -0400 Received: from us-smtp-delivery-74.mimecast.com ([216.205.24.74]:44451) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jEMRA-000821-HR for qemu-devel@nongnu.org; Tue, 17 Mar 2020 20:19:56 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-195-fr6DtnFUMteppFoCqIbDoA-1; Tue, 17 Mar 2020 20:19:54 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B719013E2; Wed, 18 Mar 2020 00:19:52 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-117-2.rdu2.redhat.com [10.10.117.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6F92210016EB; Wed, 18 Mar 2020 00:19:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584490796; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zoD/z+A1PszJF4eckXJDLUHboiQsadxXrSrIBOl8OZI=; b=Ah8Ycxix+VguO9iyLXbqfjU74JEMQ24FzUSWuAZY+PFtE8+mkyl8+UCl6yF19yZjjkraUv 0KvMtkcM1no6SopSuht78U0d4bI7uO93RJ2t4OkSkSEWv9hfXHgUF0TpUIhJMpNoAH1PAJ C8kxoG+tEH280cTWiyim4vStHviB3SM= X-MC-Unique: fr6DtnFUMteppFoCqIbDoA-1 From: Cleber Rosa To: qemu-devel@nongnu.org, Peter Maydell Subject: [PULL 4/6] Acceptance tests: add make targets to download images Date: Tue, 17 Mar 2020 20:19:30 -0400 Message-Id: <20200318001932.180617-5-crosa@redhat.com> In-Reply-To: <20200318001932.180617-1-crosa@redhat.com> References: <20200318001932.180617-1-crosa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 216.205.24.74 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Beraldo Leal , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fabien Chouteau , Willian Rampazzo , KONRAD Frederic , qemu-ppc@nongnu.org, Wainer dos Santos Moschetta , Willian Rampazzo , Cleber Rosa , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Aleksandar Rikalo , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" The newly introduced "boot linux" tests make use of Linux images that are larger than usual, and fall into what Avocado calls "vmimages", and can be referred to by name, version and architecture. The images can be downloaded automatically during the test. But, to make for more reliable test results, this introduces a target that will download the vmimages for the architectures that have been configured and are available for the currently used distro (Fedora 31). Signed-off-by: Cleber Rosa Reviewed-by: Willian Rampazzo Reviewed-by: Alex Benn=C3=A9e [Cleber: implemented suggestions by Alex, download message, check-venv targ= et] Message-Id: <20200317141654.29355-4-crosa@redhat.com> Signed-off-by: Cleber Rosa --- tests/Makefile.include | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index 67e8fcddda..68c5d73d28 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -20,6 +20,8 @@ check-help: @echo " $(MAKE) check-venv Creates a Python venv for tests" @echo " $(MAKE) check-clean Clean the tests and related data" @echo + @echo " $(MAKE) get-vm-images Downloads all images used by accepta= nce tests, according to configured targets (~350 MB each, 1.5 GB max)" + @echo @echo @echo "The variable SPEED can be set to control the gtester speed setting= ." @echo "Default options are -k and (for $(MAKE) V=3D1) --verbose; they can= be" @@ -889,7 +891,21 @@ $(TESTS_RESULTS_DIR): =20 check-venv: $(TESTS_VENV_DIR) =20 -check-acceptance: check-venv $(TESTS_RESULTS_DIR) +FEDORA_31_ARCHES_CANDIDATES=3D$(patsubst ppc64,ppc64le,$(TARGETS)) +FEDORA_31_ARCHES :=3D x86_64 aarch64 ppc64le s390x +FEDORA_31_DOWNLOAD=3D$(filter $(FEDORA_31_ARCHES),$(FEDORA_31_ARCHES_CANDI= DATES)) + +# download one specific Fedora 31 image +get-vm-image-fedora-31-%: check-venv + $(call quiet-command, \ + $(TESTS_VENV_DIR)/bin/python -m avocado vmimage get \ + --distro=3Dfedora --distro-version=3D31 --arch=3D$*, \ + "AVOCADO", "Downloading acceptance tests VM image for $*") + +# download all vm images, according to defined targets +get-vm-images: check-venv $(patsubst %,get-vm-image-fedora-31-%, $(FEDORA_= 31_DOWNLOAD)) + +check-acceptance: check-venv $(TESTS_RESULTS_DIR) get-vm-images $(call quiet-command, \ $(TESTS_VENV_DIR)/bin/python -m avocado \ --show=3D$(AVOCADO_SHOW) run --job-results-dir=3D$(TESTS_RESUL= TS_DIR) \ @@ -900,7 +916,7 @@ check-acceptance: check-venv $(TESTS_RESULTS_DIR) =20 # Consolidated targets =20 -.PHONY: check-block check-qapi-schema check-qtest check-unit check check-c= lean +.PHONY: check-block check-qapi-schema check-qtest check-unit check check-c= lean get-vm-images check-qapi-schema: check-tests/qapi-schema/frontend check-tests/qapi-schem= a/doc-good.texi check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGETS)) ifeq ($(CONFIG_TOOLS),y) --=20 2.25.1