From nobody Mon Feb 9 03:31:27 2026 Delivered-To: importer@patchew.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 ARC-Seal: i=1; a=rsa-sha256; t=1589483141; cv=none; d=zohomail.com; s=zohoarc; b=HWeCoZkHaq7jnA7jZw9zndFmgJp27ac4RI6wKId5j4SO6DpNeNkePjuUtXHFQJsKOdgOE3QchM0M33NK2Vdn3shsk2qSizuWlKLOUf4gDdD4veXNdKZhrrAzHfMb9xLaDcuQbNvyPQaZihqDY3eS5Qzc3P2yE6EHAlX+e+H2/gQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589483141; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=5c/cqTSBeacgrG9vD8SV8joXa3WDKDX9leqs1xGxGE4=; b=HU8UPk/oyBJlrQDM8bCk+OdsOi90bAj71Hzsprtg/A/grMgYQeONLB5Wu90SYkbLIKxl/TBAG6qdupSTx3Q9wig7XzS0DHivN6sWfU+5oRDaflZyvh31Cafg81UDLSFyCXAM8hMZaH0aZs1QA0/ECOYLDrDXcvH2YvYUjumL+p8= 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1589483141530287.73623661212537; Thu, 14 May 2020 12:05:41 -0700 (PDT) Received: from localhost ([::1]:47646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZJAp-0003pi-P3 for importer@patchew.org; Thu, 14 May 2020 15:05:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZJ9g-0003Ep-J3; Thu, 14 May 2020 15:04:28 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:35571) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZJ9f-00030k-Ir; Thu, 14 May 2020 15:04:28 -0400 Received: by mail-wr1-x444.google.com with SMTP id j5so14230wrq.2; Thu, 14 May 2020 12:04:26 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id w15sm5225773wrl.73.2020.05.14.12.04.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 12:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5c/cqTSBeacgrG9vD8SV8joXa3WDKDX9leqs1xGxGE4=; b=cTCA2i63BCynziUv2M2XCPslY5UixvstTkS2yccWkf8NTPuna/VM0Rgebf6n0H10l4 x5dkIM161msa23IeE4gdg8Brlli3oF5DB8En8Ufy9KjWfLisOtJQupBrzvFTlgBfTrFn uL7h5xrbJBURJOWGdE7Xmr/VK/AgKGiMWxv5C4ZlDJfLDhHvn17k1O2k1N5b8laJ6P8Q aJQGzzuqfgQAfYIhnit4d0ajndkibXnCIrDaQrdi8v+vC2kriEblkvtzv3Cc7q6+U5l0 RSLQjJHd+8XlYnhxBeLnRsklvLkPEeRl+DlnspXjB3hy3Ilr4rLan60c0YJI6ge1G2dT OJhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=5c/cqTSBeacgrG9vD8SV8joXa3WDKDX9leqs1xGxGE4=; b=NuZptyAvLBARsft3T15I66COgoyQdYZ+7MTdSmllxQfbbUz+X1xh1ClNtGYohKFuJ7 zPO0DmE6qZE85c7/o+sXvp4Cnn2jSXTg2QZA9XlDyrH9uGqbF3HL2akTr58NeP60Ar7l 3BWWr+TYXUcl+9U1S5fiwVsQyWqhrvoErxnGd8/gxfwfaqCRfX9JAR866yp5S8UQj/pQ 9QJn3BUIkBKijAU2a5ruCTM5ArVVx3e3403FlNycI+dQ8b+wUchp5NJAPkEKMW0ngC+Z jdl/LFZKQpiNTBEqvJYzC8kugT43+WzEhXTJSbuxbm+v2s3g6Bec9MLXTjJQ3SV/zgZw Z7Tw== X-Gm-Message-State: AOAM533rohURc/xTa0JW5F2swBmL14J+plU6hgdd3R3HspnJYPb74E4j IXwieCL8rsQjOOGry9ldNthLZzY1CyE= X-Google-Smtp-Source: ABdhPJxYwHFf6u5sEWyh0j+AtzU8mQAsGL7LLSAlCPSMiJm5k1I1T0WYXwl83uMOik296ZGnAIKqqw== X-Received: by 2002:adf:fa0b:: with SMTP id m11mr2895092wrr.417.1589483065073; Thu, 14 May 2020 12:04:25 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3] tests/acceptance: Add a test for the canon-a1100 machine Date: Thu, 14 May 2020 21:04:22 +0200 Message-Id: <20200514190422.23645-1-f4bug@amsat.org> X-Mailer: git-send-email 2.21.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2a00:1450:4864:20::444; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x444.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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: Peter Maydell , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Antony Pavlov , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Thomas Huth The canon-a1100 machine can be used with the Barebox firmware. The QEMU Advent Calendar 2018 features a pre-compiled image which we can use for testing. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Wainer dos Santos Moschetta Tested-by: Wainer dos Santos Moschetta Signed-off-by: Thomas Huth Message-Id: <20200129090420.13954-1-thuth@redhat.com> [PMD: Rebased MAINTAINERS] Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- Thomas asked me to watch for few of his patches to get merged, but I missed this one. Peter: I suppose it is flushed of your REVIEW folder, so resending. --- MAINTAINERS | 1 + tests/acceptance/machine_arm_canona1100.py | 35 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 tests/acceptance/machine_arm_canona1100.py diff --git a/MAINTAINERS b/MAINTAINERS index f02e290702..d1fb688c0e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -607,6 +607,7 @@ S: Odd Fixes F: include/hw/arm/digic.h F: hw/*/digic* F: include/hw/*/digic* +F: tests/acceptance/machine_arm_canona1100.py =20 Goldfish RTC M: Anup Patel diff --git a/tests/acceptance/machine_arm_canona1100.py b/tests/acceptance/= machine_arm_canona1100.py new file mode 100644 index 0000000000..0e5c43dbcf --- /dev/null +++ b/tests/acceptance/machine_arm_canona1100.py @@ -0,0 +1,35 @@ +# Functional test that boots the canon-a1100 machine with firmware +# +# Copyright (c) 2020 Red Hat, Inc. +# +# Author: +# Thomas Huth +# +# This work is licensed under the terms of the GNU GPL, version 2 or +# later. See the COPYING file in the top-level directory. + +from avocado_qemu import Test +from avocado_qemu import wait_for_console_pattern +from avocado.utils import archive + +class CanonA1100Machine(Test): + """Boots the barebox firmware and checks that the console is operation= al""" + + timeout =3D 90 + + def test_arm_canona1100(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:canon-a1100 + :avocado: tags=3Ddevice:pflash_cfi02 + """ + tar_url =3D ('https://www.qemu-advent-calendar.org' + '/2018/download/day18.tar.xz') + tar_hash =3D '068b5fc4242b29381acee94713509f8a876e9db6' + file_path =3D self.fetch_asset(tar_url, asset_hash=3Dtar_hash) + archive.extract(file_path, self.workdir) + self.vm.set_console() + self.vm.add_args('-bios', + self.workdir + '/day18/barebox.canon-a1100.bin') + self.vm.launch() + wait_for_console_pattern(self, 'running /env/bin/init') --=20 2.21.3