From patchwork Tue Jan 7 16:51:41 2025 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: 855486 Delivered-To: patch@linaro.org Received: by 2002:adf:8b05:0:b0:385:e875:8a9e with SMTP id n5csp317415wra; Tue, 7 Jan 2025 08:53:26 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXS5r5OKvY+p4QhTLQGVcvA3kYmjnVGjOEPu1tzu7tUaCyDF7c7B6CLzSGZk0J0exc2ALCCdQ==@linaro.org X-Google-Smtp-Source: AGHT+IE29e3pF+BPaYgUhJew9XNtYTKVTIVv23RYb/zqDLEpp0Ui8ycpZRgPxGW8XuDoafmcC+Ey X-Received: by 2002:a05:622a:1aa4:b0:467:6e25:3f3d with SMTP id d75a77b69052e-46a4a8dcc71mr926340611cf.15.1736268806214; Tue, 07 Jan 2025 08:53:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736268806; cv=none; d=google.com; s=arc-20240605; b=kJ44XEUP5WwaTWs0mkHYbXxge/+bbo8gZMls3WY10sh4T7M2mmR/SU7YA0t0LB56cH AR2s9jXAfhy/wF0OLxt+20NEV85L4lzcm9APaT6Q/MyhaClivaPQIntSjhbSfUFPZZgD oPPPDNiRtnI49IJBIn7zG7fGsebEGJn/vtSEOH1jMe+YurmY798AkGSIDMI8GhytuQKQ f5whzCWWf0Q+0yynejjEZLSWjvzdVQaAjwOAl7yik78TenXapI5eFg4lIMalOLPyxZCv HH27p4eC2O1v0DEZzKSHnFnzWjgeROutmESxWhDd081clEuVTDKZKIq9T2J0p/JoW5ap YGYw== 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=Pg+m2UYdTGTiO8GlV1naIIPUfqxpX1jKwvMJgPoN6cA=; fh=3npWCurfFJUMDDfHXGXny4X4YfpC6v7TxgRFRY8Vje4=; b=ZcqeCuvGAIEDzbOU6o6ev0mTBI6oIIMcnZBrCoiwTbhEXE2r16mrTkpCG3MhFb+nZs 5fYVJrG6s7KZ3kxGGS7o6ZUAm7bk9UEdMytzVenscumx3zvbnjrDM2j8HddxMQAEFz78 3i1KgEZBm75UAHHgGrKbHjTYWVDWB/DACbKRf10erFf0vfVPfWxWDUxKsoCWDkQ9zpL0 0TOA0sRnG4BDrUWpKnPgLuqWgMGvI6afOwQkXonNYBHokXZD37QQ6berHwWKQARylGz4 UibE6DTXCuOhgv9EawCEN53mdY+TdlojLONDCsQDdFmeZGBYbUzoXIHbcPw4ZxwhEGcG 6m4A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tDt6VTU5; 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 d75a77b69052e-46a3ebbe889si4354791cf.452.2025.01.07.08.53.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Jan 2025 08:53:26 -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=tDt6VTU5; 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 1tVCok-00047M-0I; Tue, 07 Jan 2025 11:52:34 -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 1tVCoi-00046c-AO for qemu-devel@nongnu.org; Tue, 07 Jan 2025 11:52:32 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tVCoP-0005pY-Gq for qemu-devel@nongnu.org; Tue, 07 Jan 2025 11:52:32 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-43618283dedso156680485e9.3 for ; Tue, 07 Jan 2025 08:52:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736268732; x=1736873532; 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=Pg+m2UYdTGTiO8GlV1naIIPUfqxpX1jKwvMJgPoN6cA=; b=tDt6VTU5hICYFfHdhBr51noHB/fWXeuhXm/WTHuBEYd7AbnyIeGpwnXiwBARGuQEUE u4tHAsLg+GHvgoJzdE9sc3HY8EoiMLsmy4mreIKOxhzGIWm1Jk6B0SNJx9JdFm4Uqa8Q 4zacXGH03yhGxu7AvtBMVy/4+vnkn3IfxVY2L5ZNeEvB2npm9ugwmDc8k17yaZjraQhJ Rm+ajZzZd5Aeeq2wLFuVDVIRAiECC6D8CDTkqTxCRo6Pi8drv02r6V1wKgBUq//p4WiF 5uU7nYAISAyIGkbV+zNbbbGda2ZctADr3B4ldyvHtWjnNzvwS80Avyo8FmPcGBug774d jKhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736268732; x=1736873532; 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=Pg+m2UYdTGTiO8GlV1naIIPUfqxpX1jKwvMJgPoN6cA=; b=wxK7Fp1c8s4tHpn46jH6zgpeq0VMqtd1lEXeLapBTonIcFnungZ6FmO0RbUafneplF xLhSFdJEMhkL02a/jNgwG3G9LbIIdblB5dBMhkIw7MAx41et6pGnRxvHgcGmxHr7LVO9 GY4ezfu+CSYjFTWCe+PUF7cmvGhiw8RPchTJlgi0KsurlI8VdloQcfzqQCn7ayDPqoJC QaOmwaN0hZ07nHAj3tGP1LmGohtgoURZ06wm1tLQ4yPLvN7Tpe1yPuApkcEeyEkowKnE SnmSe7n1+c+pNOCdLM9AXaOHxaLCaf67/qw4LTA/YJaLV7kk8O7CQvt4EmKWoq3slzgD zXpg== X-Gm-Message-State: AOJu0Yy42ncrlc/ItqDeJMqBZQwdOq74NDk+nIawzOA29w6IoCDHp9Wn VdwbJ671soZ7/JBDUbmX0Fm2SkHx1YMiwwEsnIQgxqk+3Rlz5Zj63izlfAaeaQs= X-Gm-Gg: ASbGncuwEEYzQIrFyY1PwAoUMAzaUqRGHYFW7JyW9d+l0OCOi8qIutL79WTLX0VbziG 20bmB1B9LDKgrYkI7CRPXVRfpz+oSGkoijSUwi2yu1e3+ufgGuf1YC3yk/V0lulaeA17CNPW9Tr yv9rZjox9xpFNPdLDrq8MsOvX3+OBIeOhqDRiArrQV2yHnt/QmAmV4nNL6lqsTb/LIt3RIadUB8 R1kaX9db3Rm4oqL9lT7GLDjS7P6BHy1RGFSuLd/7iJs0jonbzy7cwE= X-Received: by 2002:a05:600c:4511:b0:431:44f6:566f with SMTP id 5b1f17b1804b1-43668642d71mr526211435e9.13.1736268731632; Tue, 07 Jan 2025 08:52:11 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43656b013ecsm636834305e9.16.2025.01.07.08.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 08:52:08 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 54A915F91D; Tue, 7 Jan 2025 16:52:08 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , Beraldo Leal , Ed Maste , Halil Pasic , qemu-ppc@nongnu.org, John Snow , Radoslaw Biernacki , Nicholas Piggin , Markus Armbruster , Leif Lindholm , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini , Bin Meng , Daniel Henrique Barboza , Marcel Apfelbaum , qemu-riscv@nongnu.org, Christian Borntraeger , Wainer dos Santos Moschetta , qemu-s390x@nongnu.org, Alistair Francis , Liu Zhiwei , Fabiano Rosas , Weiwei Li , Harsh Prateek Bora , qemu-arm@nongnu.org, Li-Wen Hsu , Palmer Dabbelt , Daniel Henrique Barboza , Richard Henderson , Cleber Rosa , Marcin Juszkiewicz , Peter Maydell , Laurent Vivier , Aurelien Jarno , Eric Farman , Pavel Dovgalyuk , Jiaxun Yang , Thomas Huth , Laurent Vivier , Joel Stanley , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , Bernhard Beschow , "Michael S. Tsirkin" , Anders Roxell Subject: [PATCH v3 03/29] tests/functional: add a m68k tuxrun tests Date: Tue, 7 Jan 2025 16:51:41 +0000 Message-Id: <20250107165208.743958-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250107165208.743958-1-alex.bennee@linaro.org> References: <20250107165208.743958-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.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 2101b51217..cab9018d9f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1288,6 +1288,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 a5087fcb34..7890dcb86d 100644 --- a/tests/functional/meson.build +++ b/tests/functional/meson.build @@ -116,6 +116,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()