From patchwork Thu Mar 2 19:11:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Juszkiewicz X-Patchwork-Id: 658137 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp66337wrb; Thu, 2 Mar 2023 11:13:42 -0800 (PST) X-Google-Smtp-Source: AK7set9C1Is6oAA035gpAVIME29KsX/3zDhACB8bBLL39j1DwvC6mlUscTW4YhJigqO8wpzYNaX0 X-Received: by 2002:ad4:574d:0:b0:56e:fe7b:8bc2 with SMTP id q13-20020ad4574d000000b0056efe7b8bc2mr22835119qvx.32.1677784421904; Thu, 02 Mar 2023 11:13:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677784421; cv=none; d=google.com; s=arc-20160816; b=MrLVS9Qdyz8wQAqjWRFflooOG+mCTCH+cNEYCazs+5R2k5xe72egTeM/R0egBV/I98 rHaZFTDTxaelroIBq2FcwSI17G6gr7+8OfgeXZaBkFykZeWdxk02tZUBHZ8uqddRo3/R HGAuotH3OwBZ/TEdWylSO68dq8hlrJxHt8EHMyFR+J6GgLIA0A1LBudqUhcCxKScVzyh E9bua2dXziI6tfENbhNJWq9kjyEjK7HSUDMaK5wGtZeU6YkgKoYVsicv8oK5H0PhkZDe X6JhQSjO193iuvxJw4q96QC0HgebsFt9xTzljD1FMZQD88fFYDkFix3tzyb74o2GsHth DfCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=JlUDP98pypctaCExk/qEu+ba1BGUKb/VtbX6p8o12Pk=; b=eRji4Egz+ozhqQ0JDVRS8IfDP2mRWTn6aRKBjZ9I/gXF6SXIHovcJBjyXypeG84zMa I6/4AYQ2wEFFhJ0K5F93eeQuxYiAf+krJ2m18sBlhX+jSfbUE+Exa+Q/ExHlTHonNo29 eq9/I0Fsyi4O++Warend/SbWlOlgypdi/nxXL9Jy05KzzDXmX2/K43ipxBRef+YZNIpf AzoKDwhKKqReE8QzYTlrjnYLCgUp4k8wntVv5O6EL1/cSv56MlTuMrIxUd2zn1CSogym 5CokuXwds7L9Eap21UT4xoRGHWMOouNh5u+RvjOqR0dkWE0XONydUaKQTfKDgDAUclQX ooKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d11-20020a05620a240b00b0074296f89f3fsi221542qkn.529.2023.03.02.11.13.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Mar 2023 11:13:41 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXoLm-0000Jr-PG; Thu, 02 Mar 2023 14:12:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXoLW-0008PO-55; Thu, 02 Mar 2023 14:12:06 -0500 Received: from muminek.juszkiewicz.com.pl ([213.251.184.221]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXoLU-0006jN-CK; Thu, 02 Mar 2023 14:12:05 -0500 Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 89055260167; Thu, 2 Mar 2023 20:12:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at juszkiewicz.com.pl Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SznqlDZupR5i; Thu, 2 Mar 2023 20:11:56 +0100 (CET) Received: from puchatek.lan (83.11.36.13.ipv4.supernova.orange.pl [83.11.36.13]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id 550682606A3; Thu, 2 Mar 2023 20:11:52 +0100 (CET) From: Marcin Juszkiewicz To: Radoslaw Biernacki , Peter Maydell , Leif Lindholm Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-D?= =?utf-8?q?aud=C3=A9?= , =?utf-8?q?Alex_Benn=C3=A9e?= , Marcin Juszkiewicz Subject: [PATCH 3/3] tests/avocado: add Alpine Linux boot on AArch64/sbsa-ref Date: Thu, 2 Mar 2023 20:11:46 +0100 Message-Id: <20230302191146.1790560-3-marcin.juszkiewicz@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230302191146.1790560-1-marcin.juszkiewicz@linaro.org> References: <20230302191146.1790560-1-marcin.juszkiewicz@linaro.org> MIME-Version: 1.0 Received-SPF: softfail client-ip=213.251.184.221; envelope-from=marcin.juszkiewicz@linaro.org; helo=muminek.juszkiewicz.com.pl X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org To unify tests for AArch64/virt and AArch64/sbsa-ref we boot same Alpine Linux image on both. Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/tests/avocado/machine_aarch64_sbsaref.py b/tests/avocado/machine_aarch64_sbsaref.py index e36e53d4d5..fdbde4b891 100644 --- a/tests/avocado/machine_aarch64_sbsaref.py +++ b/tests/avocado/machine_aarch64_sbsaref.py @@ -148,3 +148,32 @@ def test_sbsaref_linux_max(self): :avocado: tags=cpu:max """ self.boot_linux('max') + + # This tests the whole boot chain from EFI to Userspace + # We only boot a whole OS for the current top level CPU and GIC + # Other test profiles should use more minimal boots + def test_alpine_sbsaref_max(self): + """ + :avocado: tags=arch:aarch64 + :avocado: tags=machine:sbsa-ref + """ + self.fetch_firmware() + + iso_url = ('https://dl-cdn.alpinelinux.org/' + 'alpine/v3.17/releases/aarch64/' + 'alpine-standard-3.17.2-aarch64.iso') + + # Alpine use sha256 so I recalculated this myself + iso_sha1 = '76284fcd7b41fe899b0c2375ceb8470803eea839' + iso_path = self.fetch_asset(iso_url, asset_hash=iso_sha1) + + self.vm.set_console() + self.vm.add_args("-cpu", "max,pauth-impdef=on") + self.vm.add_args("-machine", "sbsa-ref") + self.vm.add_args("-drive", f"file={iso_path},format=raw") + self.vm.add_args('-device', 'virtio-rng-pci,rng=rng0') + self.vm.add_args('-object', 'rng-random,id=rng0,filename=/dev/urandom') + + self.vm.launch() + wait_for_console_pattern(self, 'Welcome to Alpine Linux 3.17') +