From nobody Sat Nov 23 18:30:54 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1732209188; cv=none; d=zohomail.com; s=zohoarc; b=mPm86WRQ4ayTZ2rEvlXCkmqxA7uj7t0Chnw6sWBF7KxpmnmBTX4Habs5ZiCuK7cHmgl5/NOpyZvgfGZYdWL8aXkNXjiEHTT4Irn4CeYamEXvAd2gK7/+atxs4jpfCtd2JqZeQ9CpiF7l1JARzeI4vFmFYCsLAry8MDP1t06ItbQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1732209188; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=eUF072RWHjw5X8nluQQuYebe1FYEMSwq9TSQiXId4cw=; b=U10w4L1ABzw+6Y5yjSXPk89TJ543OcdQmson73vPDM6aD67J32uGKd/GoC9xxLPersvy9pERfEEGijHd+fyL6+FbfDAv6lm2qjid2Lo/fiu/XgCkHFWA0DnkDAXoVgj2cSBuVei+Tru5+Cg845SX3+oWchDhWXJV+VU7PIRICqU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1732209188273321.2622140397741; Thu, 21 Nov 2024 09:13:08 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEAfO-0003C9-7R; Thu, 21 Nov 2024 12:08:30 -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 1tEAdp-0000dO-7a for qemu-devel@nongnu.org; Thu, 21 Nov 2024 12:06:54 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEAdU-0001e8-Cj for qemu-devel@nongnu.org; Thu, 21 Nov 2024 12:06:52 -0500 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-38242abf421so798619f8f.2 for ; Thu, 21 Nov 2024 09:06:31 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fd0fbdcsm27306f8f.109.2024.11.21.09.06.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2024 09:06:25 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 8231260443; Thu, 21 Nov 2024 16:58:08 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732208790; x=1732813590; 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=eUF072RWHjw5X8nluQQuYebe1FYEMSwq9TSQiXId4cw=; b=RZEaBal/HgCez1sqSRKuaNDrAdBd5bYP0bDSdbj3qPg6Bm1A0NdeylB4W5LJhjmRuC GXKlmL3JaJzoP79RJyNRTo2ovvrfOXt7/TGJm3Id0XGs6tPWlXNPpNhYw3wZI4EwfYb7 Kbu2KoXzL4MfF8lYI2FzcBgzwpG8PAnwXF4oUGJRTttIx1e18T+UIIxhj802k1X5FJG1 hn309b7zSDeb+8VC4oGMaCRdyEIMlkQnlndFCBZcYVqy0cjbdPpW+GuqWtvXDnHF1Tij +plHVX+HQ8A2iTu8Nbdlep3fzbB6bHgkeXku5xVv8CHigeRlfgiCpdszouE/5y3pV5yl COOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732208790; x=1732813590; 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=eUF072RWHjw5X8nluQQuYebe1FYEMSwq9TSQiXId4cw=; b=RsY4Olcb6I7/QOzblSaz0zFmMnhDAVCzQq1Sa1eYPD2GVgmDxkBvNHpuIi1UzUg2/h cdPc4BgEhQXKuc0y5uqndjTe1IBr+rynTysysZmSczpDNwT4n+S3GNJKaiIKCrIhMOr1 0b3P/H62wDbPjEJyG7rjIwfSGgjkCWd6HHVnW6QANq2gmFAYBK8/1TZy2G9cOglf4wkv RaIF2FJAAl/HIS+9/v/Ffwh2PJ/OmgNhztqAfuAPQ7JpLis9tfH/f4Ys8nd+moZlqpO9 WwIERFUmm+TsdqYp2HLiULQz1TzkUPj/+KNdayKnUaj+vJuO/XbuAfPL0sRmEe72o3u4 nMBg== X-Gm-Message-State: AOJu0YxvPQgRjimshC/9hznNO7WIT1kOBGN77s7WHqaBCqijbnKYTvCu 2fyi7vWsCQ3QugDJJEBQFfZh2UMB0NsEoYdyYHM2F73nA+YwOb4GlMqWSPyEZcM= X-Gm-Gg: ASbGncuJnr7Zezlr8dM98NXHw77gAScjjB8w/OlYKx6FRtA7y/2cV3ge+HqTvYcKrSh /8iFJrXJtYf6JSe99ZmgjpinMJrdnaq38wc4U7fJIHwzO0Rk7o8PliNdJCAb8EB9yl1k0IZtd09 BrKEhUGfejMho0RTc7G6vB87yN/URbppmOl7i7z6ZxLzvMxFn433GhLMZGl7aoWq28/6mRI1/p5 DerhGelEFN0wFbqQAehKaUcj8QXTHnsSYmj4ZIFbIebpZjq X-Google-Smtp-Source: AGHT+IG9eDYI9v61rhFpKx5O93ckIOEQUAKMZZuXqqXI3hJSJZJmm/WgMV4q8iJbOd1I/kEwyWxryw== X-Received: by 2002:a05:6000:1448:b0:382:4d54:2cd9 with SMTP id ffacd0b85a97d-38254ae84ccmr5912405f8f.20.1732208787183; Thu, 21 Nov 2024 09:06:27 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Michael S. Tsirkin" , Daniel Henrique Barboza , Pierrick Bouvier , Harsh Prateek Bora , Marcel Apfelbaum , Jiaxun Yang , Halil Pasic , Christian Borntraeger , qemu-ppc@nongnu.org, Daniel Henrique Barboza , Alexandre Iooss , qemu-riscv@nongnu.org, Thomas Huth , Bernhard Beschow , Thomas Huth , Eric Farman , Bin Meng , qemu-s390x@nongnu.org, Niek Linnenbank , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , John Snow , Wainer dos Santos Moschetta , Cleber Rosa , qemu-rust@nongnu.org, Nicholas Piggin , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Palmer Dabbelt , Markus Armbruster , Weiwei Li , Mahmoud Mandour , Mark Cave-Ayland , Liu Zhiwei , Aurelien Jarno , Ani Sinha , Alistair Francis , Laurent Vivier , Anders Roxell Subject: [PATCH 23/39] tests/functional: add a m68k tuxrun tests Date: Thu, 21 Nov 2024 16:57:50 +0000 Message-Id: <20241121165806.476008-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241121165806.476008-1-alex.bennee@linaro.org> References: <20241121165806.476008-1-alex.bennee@linaro.org> MIME-Version: 1.0 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::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1732209189327116600 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. Signed-off-by: Alex Benn=C3=A9e Cc: Laurent Vivier Cc: Anders Roxell Reviewed-by: Thomas Huth --- tests/functional/meson.build | 1 + tests/functional/test_m68k_tuxrun.py | 34 ++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tests/functional/test_m68k_tuxrun.py diff --git a/tests/functional/meson.build b/tests/functional/meson.build index 923f9e7078..3ce969066c 100644 --- a/tests/functional/meson.build +++ b/tests/functional/meson.build @@ -95,6 +95,7 @@ tests_m68k_system_thorough =3D [ 'm68k_mcf5208evb', 'm68k_nextcube', 'm68k_q800', + 'm68k_tuxrun', ] =20 tests_microblaze_system_thorough =3D [ diff --git a/tests/functional/test_m68k_tuxrun.py b/tests/functional/test_m= 68k_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=C3=A9e +# +# 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 =3D Asset( + 'https://storage.tuxboot.com/buildroot/20241119/m68k/vmlinux', + '7754e1d5cec753ccf1dc6894729a7f54c1a4965631ebf56df8e4ce1163ad19d8') + ASSET_M68K_ROOTFS =3D Asset( + 'https://storage.tuxboot.com/buildroot/20241119/m68k/rootfs.ext4.z= st', + '557962ffff265607912e82232cf21adbe0e4e5a88e1e1d411ce848c37f0213e9') + + def test_m68k(self): + self.set_machine('virt') + self.cpu=3D"m68040" + self.common_tuxrun(kernel_asset=3Dself.ASSET_M68K_KERNEL, + rootfs_asset=3Dself.ASSET_M68K_ROOTFS, + drive=3D"virtio-blk-device") + +if __name__ =3D=3D '__main__': + TuxRunBaselineTest.main() --=20 2.39.5