From nobody Tue Feb 10 13:36:55 2026 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1579738986; cv=none; d=zohomail.com; s=zohoarc; b=Fm2rei3JXIit5FH9eg4K2rj73LQaTULQX8tZ4U42Ft5z0I4G1YWaGPwADFhD2z+Otkr8Q+dgr56WuXl+mUtQL6253qeZ1JF5o8BdjzljyQq0vxl+wCc6fC9kgKkoh88d2DuNrlC0Fessewa1hW+8iaFnT5iVHD4Hoho8/GmJNuk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579738986; 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=o/0LBH6n2hjGa6hjpJuLZDn+SG9HeO73iwdRgg3fV20=; b=glWwl26SL9aDPZ1QhbrMgpyvwRbHSmICtMSQahE23+CXgOkbvwduw2SS5El9l9rBsAo9lJLeE9ju37O5iL9uch8aqdYoUo1DpDPz4QeBLugdHWQq6xeWiEpUAg943jHIy8RRY5XjlqKIl1wEtl7ZadN1sRfyRo8nFr94RJJpXzw= 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 1579738986578340.9001372339145; Wed, 22 Jan 2020 16:23:06 -0800 (PST) Received: from localhost ([::1]:48994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuQH3-0005cS-80 for importer@patchew.org; Wed, 22 Jan 2020 19:23:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54887) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuPzo-0002Jt-8e for qemu-devel@nongnu.org; Wed, 22 Jan 2020 19:05:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iuPze-0002MZ-PL for qemu-devel@nongnu.org; Wed, 22 Jan 2020 19:05:15 -0500 Received: from mail-pf1-f173.google.com ([209.85.210.173]:38595) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iuPze-0002MK-JM for qemu-devel@nongnu.org; Wed, 22 Jan 2020 19:05:06 -0500 Received: by mail-pf1-f173.google.com with SMTP id x185so615502pfc.5 for ; Wed, 22 Jan 2020 16:05:06 -0800 (PST) Received: from localhost.localdomain (rrcs-173-198-77-92.west.biz.rr.com. [173.198.77.92]) by smtp.gmail.com with ESMTPSA id b21sm84521pfp.0.2020.01.22.16.04.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2020 16:04:04 -0800 (PST) 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=o/0LBH6n2hjGa6hjpJuLZDn+SG9HeO73iwdRgg3fV20=; b=clvFHz4Z6gIdpAnEm0+AGZmteU43LW9ImVBceUD42WDAFFRtvM6tovEZzWz2010yA7 b58IlAZh0s8GbDGjGu3TJ828QiOEzm+9gr8VQADY5msNYu60jj45eJDAyS55NeoG7Eu7 8VpbwHP5D7ILc0lyOoeF/UZR+SEvPLthnjbSq6zZ5Gv7KraYlxqhOgx/wXRWxGseH7M7 jrXEGveFOKt7DDd+iW7wvX+snD6V1cBb9pf+oTTXzhERPvn6BzWndbj4r+0ipgdAPjVb WTFYLTkUEzVk+y0Kd6Cusf9/bNE0keDuW3pE3LFqdHHOjIOj3xQRsYgzIj054JcwxoBa XDLg== 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=o/0LBH6n2hjGa6hjpJuLZDn+SG9HeO73iwdRgg3fV20=; b=tb7WVi8XXMcUFOgOqijB+mMBcuwfZLsfYpNefxlcoroPBh5NhOm9SJ6tjHeJpVbwXn F7TSCJPAEGW3SmJ+RRxIFyneHSPYP6KTstmJPMzSGVhEn9KyktpSPTaRyBVYTvV+fVg8 l49RG+rvodAYcAV5a3vDAPeCQfox0AlrUvrLZtbwLXktze+uU38EL5AYUWJcGBaM6Sx7 wd7TeG7vq2HOkAqcp2qnYYeM+rcHqQ5O7ukzAuMQTfEi+tKrzahXn8sOSH1BvEkghKTA AsWFOmvpFSbtiMEBmSgpc5uN+TsaoBweSb1IQpLDrkr+CJoGQOKKdNujFvZlh7cugPXE U5Xw== X-Gm-Message-State: APjAAAXSW8NeLRsD2Eu4kzFlBtyuIs+yjbY17H9VikUHGqkO5vAJFRVy Uq6d33zbL6MyFiGr8qGBaDq3vAw+eVE= X-Google-Smtp-Source: APXvYqwRxFGHFxzSgN8ONqIHHTw2zVGwBfOhRdmZ1BbKIO2xqiue9xa+U6l/pRIRCICWQlBGpuQZ0Q== X-Received: by 2002:aa7:81c7:: with SMTP id c7mr5132322pfn.203.1579737845231; Wed, 22 Jan 2020 16:04:05 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH rc1 23/24] tests/acceptance: Test the Arduino MEGA2560 board Date: Wed, 22 Jan 2020 14:03:06 -1000 Message-Id: <20200123000307.11541-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200123000307.11541-1-richard.henderson@linaro.org> References: <20200123000307.11541-1-richard.henderson@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: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.210.173 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: thuth@redhat.com, me@xcancerberox.com.ar, S.E.Harris@kent.ac.uk, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , dovgaluk@ispras.ru, imammedo@redhat.com, mrolnik@gmail.com, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , aleksandar.m.mail@gmail.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Michael Rolnik The test is based on https://github.com/seharris/qemu-avr-tests/tree/master/free-rtos/Demo demo which. If working correctly, prints 'ABCDEFGHIJKLMNOPQRSTUVWX' out. it also demostrates that timer and IRQ are working As the path name demonstrates, the FreeRTOS tests target a board based on a ATMega2560 MCU. We have one, the Arduino MEGA2560. Complementary documentation: https://feilipu.me/2012/01/15/ethermega-arduino-mega-2560-and-freertos/ https://feilipu.me/2015/11/24/arduino_freertos/ (see 'Compatibility') Signed-off-by: Michael Rolnik Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Thomas Huth Message-Id: <20200118191416.19934-21-mrolnik@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 [rth: Squash multiple avocado fixups from f4bug] Tested-by: Richard Henderson Signed-off-by: Richard Henderson --- tests/acceptance/machine_avr6.py | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 tests/acceptance/machine_avr6.py diff --git a/tests/acceptance/machine_avr6.py b/tests/acceptance/machine_av= r6.py new file mode 100644 index 0000000000..b644d2a81c --- /dev/null +++ b/tests/acceptance/machine_avr6.py @@ -0,0 +1,50 @@ +# +# QEMU AVR +# +# Copyright (c) 2019 Michael Rolnik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +import time + +from avocado_qemu import Test + +class AVR6Machine(Test): + timeout =3D 5 + + def test_freertos(self): + """ + :avocado: tags=3Darch:avr + :avocado: tags=3Dmachine:arduino-mega-2560-v3 + """ + """ + https://github.com/seharris/qemu-avr-tests/raw/master/free-rtos/De= mo/AVR_ATMega2560_GCC/demo.elf + constantly prints out 'ABCDEFGHIJKLMNOPQRSTUVWXABCDEFGHIJKLMNOPQRS= TUVWX' + """ + rom_url =3D ('https://github.com/seharris/qemu-avr-tests' + '/raw/36c3e67b8755dcf/free-rtos/Demo' + '/AVR_ATMega2560_GCC/demo.elf') + rom_hash =3D '7eb521f511ca8f2622e0a3c5e8dd686efbb911d4' + rom_path =3D self.fetch_asset(rom_url, asset_hash=3Drom_hash) + + self.vm.add_args('-bios', rom_path) + self.vm.add_args('-nographic') + self.vm.launch() + + time.sleep(2) + self.vm.shutdown() + + self.assertIn('ABCDEFGHIJKLMNOPQRSTUVWXABCDEFGHIJKLMNOPQRSTUVWX', + self.vm.get_log()) --=20 2.20.1