From patchwork Wed Dec 18 16:20:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 851725 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp1015813wrq; Wed, 18 Dec 2024 08:25:39 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWX8qDLUaHPHGdmRGkIQoJo7vIZGNCJdFpMFUyznAD+gWuujsjUhJ8Coeb1/HmHjMP1TcE5Hg==@linaro.org X-Google-Smtp-Source: AGHT+IF2oe9K8wxwPwfzzW4pl7tVVFh8kvFfU2r7b2nqFyQtHp+9PcJpQ/oR72rOLq/KHanYTxvu X-Received: by 2002:a05:620a:2410:b0:7b6:e8d4:9b89 with SMTP id af79cd13be357-7b86375e83fmr394741185a.34.1734539139739; Wed, 18 Dec 2024 08:25:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734539139; cv=none; d=google.com; s=arc-20240605; b=TDUfjvnMnIAVSeGBx+IlxATGYkW22t/4JdI96EgHe6zffKH1JUHIvtqFkWoOmcyyyQ bS3X2/xmwFQmUzYok/LqM+yUNGhEH6sMLDiGu8N+YLhFO1pKCvkaYYm/FMYIE83VCYpI 753IQv5EJiG+9rbtRKCHE/KcsazMHHE4wsXJy1zQAZx030uobMIsgR89+c9VFmKdHn0C IOq72UP/Xm8t+XbC8oz/16mfHRxenQkxwMyLpkRXtDVylghEHWkEF6dZPt35GZ7pBXq+ 33xzsRcp6CNf5WMoVFWW3tGUUyM2SsoiF6Y8F+hY7KHi8bWW2TwNZQt3oItK6coQcBMs JATQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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:dkim-signature; bh=Vz2EL6CTwFEi6T4j67jXxOQuHyLmeJyyOHpPY04XAmo=; fh=N+c8X5Of7J9OxCksQSeKMD7vLwCz5NShFR/5F20Mrz0=; b=GXBw9OPYweQkpJqy/hdxKQBSk/+o75gTAaNLR3iYarU+iWqwpTtkn+fKDQa5ApRD1a vhC+vvrISwnudVo6Jf2myhGWdKGEC3ClS/gvgYiA7b7da1+4vERSfcZ7tA0C3yLFwR4Y vLzdRg6lA3g+55HP1NaxDXZMXqR1rV7M2Nvl3ldyLQPT6+iViloyiuEHhZnVd3URTV3y siZsY4kiqNNCZHP+hNhk0aagHtG7HfhgfSVQE82Kf7AcZrt+O1Dxb1VKQkRCc1A51b5u bmj0XSxEZijffMOYFI6+1ZLwh2zDj7nBniu0v5tWja7s8aZRcfRE2OMkW4QMKpdOAsLk 9Sig==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aWZ1Ejl7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b7047e7380si1460354585a.159.2024.12.18.08.25.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Dec 2024 08:25:39 -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; dkim=pass header.i=@linaro.org header.s=google header.b=aWZ1Ejl7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNwnR-0007OM-9i; Wed, 18 Dec 2024 11:21:13 -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 1tNwnP-0007N5-Am for qemu-devel@nongnu.org; Wed, 18 Dec 2024 11:21:11 -0500 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNwnL-0006bu-Ib for qemu-devel@nongnu.org; Wed, 18 Dec 2024 11:21:10 -0500 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-aa6c0d1833eso1195763366b.1 for ; Wed, 18 Dec 2024 08:21:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734538866; x=1735143666; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Vz2EL6CTwFEi6T4j67jXxOQuHyLmeJyyOHpPY04XAmo=; b=aWZ1Ejl7CmfGccD7LokM4N5hwLY7luHsdNdqR5cTL22K4ZvwurppjDHKxT7hTa5IR9 XrCOvA5zJNNvi9t4dmLAKmyX3ajqabtJjWaKStGBO80UMpeLwnGD+mHpq/zfq1txG+z6 zEEpi2krWoL/1DsIQz9Yeb9YZcbPzSgfQLmpceizEv8iofv6kNahvGs4hXphGVL6glnK Q5DybIv4Q8cobUJM3a1eqQmjFZivTUSRXr4EJPvFJSC6kKuRKI1w/jFPkjOS4mK8MKKH 4mWvwOXgMF/ymL/1YXYcqIJzFAszIE3ru8YfRETTWokZY39fB7bekXG/jnSgxQp3AEyO 4hZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734538866; x=1735143666; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Vz2EL6CTwFEi6T4j67jXxOQuHyLmeJyyOHpPY04XAmo=; b=wPY1R6iuVdbXlfHoql1Hp25GXBlzaZpAopMrL9CVF2x3Bux5Bn6mhZzBNPt4YfkVwm E6A+a4cEbXz0yT1XsdCO/92RX16vk2k0nhcHKrgCqMawCw/L4NzmOscQPXeqs3SB3UkM wcMxv2TnyezYzjCepR/CStGW9W52y9skUE7Oo7+csbCVdDhFLc4WydptEAXocV/wWxqI XATgS+jDc4kjqZZOhchE9uWS5/105yfeD/kRp9k3fPLTgOAN+FYdoX2pqe8rDChrBMN5 b2dSXXcyBRpgXbSC1P1ciQgZMDR1XBUfhZG1iwZ2+5PC7Ex8o4zJk+7D1aDlyh7Z1QTA yQbQ== X-Gm-Message-State: AOJu0Yy03RC4ba9jpRe29gefz2FwGY9gNkclw/LtfjEJBZaHUSQAUcDo VxCeroeUvZw30JomNv7PQRu59DI8e2K7LcQa0kRVNKCC9NxclxrWMFQh5cQcL58= X-Gm-Gg: ASbGnctJeG9+2Z7tWPHWjfo742kx4nmb12Vo3F5E2t6A66vTTlBTVol8Aag8WxtjuN+ 8SuEY4HC2lPV/542m9UzFQCeZAaKbliBGGGh6JP+89LYTP3u1Wr+908eYpqI79RJzGC84ehV847 OJ0VB41pGE8tQEWVhmLsoCWnO49bfRQcWhoAvDhy7hKWh7TIn55CjT6AsUjfj+vvGSPkVqQo6zh NqTLHyBPBP44IOhYY6seCCykoKGJRgU5w4gFl5jylEkl6U6cQzUKKY= X-Received: by 2002:a17:906:7313:b0:aa6:2fdc:db1a with SMTP id a640c23a62f3a-aabf48d513cmr274876366b.38.1734538865820; Wed, 18 Dec 2024 08:21:05 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aab9600dd9csm578696466b.10.2024.12.18.08.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2024 08:21:05 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 640F55FBC6; Wed, 18 Dec 2024 16:21:04 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Ed Maste , Eric Farman , Thomas Huth , Li-Wen Hsu , Daniel Henrique Barboza , Aurelien Jarno , Fabiano Rosas , Radoslaw Biernacki , Mark Cave-Ayland , =?utf-8?q?Marc-Andr=C3=A9?= =?utf-8?q?_Lureau?= , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= , qemu-riscv@nongnu.org, Nicholas Piggin , Joel Stanley , Beraldo Leal , Markus Armbruster , Jiaxun Yang , Weiwei Li , Peter Maydell , Cleber Rosa , Leif Lindholm , Christian Borntraeger , John Snow , Marcel Apfelbaum , Palmer Dabbelt , Bin Meng , Daniel Henrique Barboza , Paolo Bonzini , Liu Zhiwei , Wainer dos Santos Moschetta , Laurent Vivier , Pavel Dovgalyuk , Richard Henderson , Marcin Juszkiewicz , Halil Pasic , qemu-arm@nongnu.org, Harsh Prateek Bora , qemu-ppc@nongnu.org, Bernhard Beschow , "Michael S. Tsirkin" , qemu-s390x@nongnu.org, Laurent Vivier , Alistair Francis , =?utf-8?q?Alex_Benn=C3=A9e?= , Anders Roxell Subject: [PATCH v2 03/27] tests/functional: add a m68k tuxrun tests Date: Wed, 18 Dec 2024 16:20:39 +0000 Message-Id: <20241218162104.3493551-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241218162104.3493551-1-alex.bennee@linaro.org> References: <20241218162104.3493551-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x629.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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 We didn't have this before and as it exercises the m68k virt platform it seems worth adding. We don't wait for the shutdown because QEMU will auto-exit on the shutdown. Cc: Laurent Vivier Cc: Anders Roxell Reviewed-by: Thomas Huth Signed-off-by: Alex Bennée Message-Id: <20241121165806.476008-24-alex.bennee@linaro.org> --- v2 - add to MAINTAINERS --- MAINTAINERS | 1 + tests/functional/meson.build | 1 + tests/functional/test_m68k_tuxrun.py | 34 ++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 tests/functional/test_m68k_tuxrun.py diff --git a/MAINTAINERS b/MAINTAINERS index 822f34344b..f7aa069d47 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1283,6 +1283,7 @@ F: include/hw/intc/goldfish_pic.h F: include/hw/intc/m68k_irqc.h F: include/hw/misc/virt_ctrl.h F: docs/specs/virt-ctlr.rst +F: tests/functional/test_m68k_tuxrun.py MicroBlaze Machines ------------------- diff --git a/tests/functional/meson.build b/tests/functional/meson.build index 1bc5ba5229..0e1bfb8c44 100644 --- a/tests/functional/meson.build +++ b/tests/functional/meson.build @@ -112,6 +112,7 @@ tests_m68k_system_thorough = [ 'm68k_mcf5208evb', 'm68k_nextcube', 'm68k_q800', + 'm68k_tuxrun', ] tests_microblaze_system_thorough = [ diff --git a/tests/functional/test_m68k_tuxrun.py b/tests/functional/test_m68k_tuxrun.py new file mode 100644 index 0000000000..7eacba135f --- /dev/null +++ b/tests/functional/test_m68k_tuxrun.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python3 +# +# Functional test that boots known good tuxboot images the same way +# that tuxrun (www.tuxrun.org) does. This tool is used by things like +# the LKFT project to run regression tests on kernels. +# +# Copyright (c) 2024 Linaro Ltd. +# +# Author: +# Alex Bennée +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import Asset +from qemu_test.tuxruntest import TuxRunBaselineTest + +class TuxRunM68KTest(TuxRunBaselineTest): + + ASSET_M68K_KERNEL = Asset( + 'https://storage.tuxboot.com/buildroot/20241119/m68k/vmlinux', + '7754e1d5cec753ccf1dc6894729a7f54c1a4965631ebf56df8e4ce1163ad19d8') + ASSET_M68K_ROOTFS = Asset( + 'https://storage.tuxboot.com/buildroot/20241119/m68k/rootfs.ext4.zst', + '557962ffff265607912e82232cf21adbe0e4e5a88e1e1d411ce848c37f0213e9') + + def test_m68k(self): + self.set_machine('virt') + self.cpu="m68040" + self.common_tuxrun(kernel_asset=self.ASSET_M68K_KERNEL, + rootfs_asset=self.ASSET_M68K_ROOTFS, + drive="virtio-blk-device") + +if __name__ == '__main__': + TuxRunBaselineTest.main()