From patchwork Tue Dec 10 20:43:32 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: 848877 Delivered-To: patch@linaro.org Received: by 2002:adf:ec08:0:b0:385:e875:8a9e with SMTP id x8csp540448wrn; Tue, 10 Dec 2024 12:45:11 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVUzA2Ha0GILn2O1+20sG6oJWdH7SOYIfRxLZTaznbxcltUMPZ+os9YecTgRCD+e3AxApNRLA==@linaro.org X-Google-Smtp-Source: AGHT+IEdESl4DHSVJ5D0zmShiLrsoA74YpG2PnGWYNBlngkS3nyMRXCevskpM28e4jG/CkW13V6u X-Received: by 2002:a05:620a:2814:b0:7b6:7ac5:5de4 with SMTP id af79cd13be357-7b6eb533c9cmr76148885a.29.1733863511708; Tue, 10 Dec 2024 12:45:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733863511; cv=none; d=google.com; s=arc-20240605; b=MimwIpRGVOG818jw+bFkJStOvGeyRkL9GhJ1FMxaVA+evYnACteFJIyMvczgdr/1A8 K00zqiXUEqOPXuUlnZQgT3oOEFRIP2nTCCEzlqDgvBAay3MADZmf2RcwGIPgtg8V7UsN nHkj8mqG6sIj//FNxkEvtGwp/lVnIGMETFvJxP+tzkv1B+hojA5W3f9bsaEAiazN3NGH lU/rCaJMRfB9+ajZmQGjUr0m8iKanHtiesaYPbtSnDLNuZDDU0VOJNOpzQ7sApTo7aWe VeAXS1X2hH/MFmORjg253APNmFym8bxrpIsPo1FGAwDmFewFt/+aTBK7B35ZJ2fxdp3D 7nVA== 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=Uld2y1nXUdPcLte2Xz1oCDzFJnjzfMw21fGvMGR5aoA=; fh=4WzZayBFvfIQskVZUGBGfzw/IeGdo8dD2cYCdcA56TE=; b=LLGopkjXWfsGPUghaRzjTJgJ9OczD5suAkhobpOnSbm+I3lFdEfJsTKG/ZRe4paZpV jZKX4TbnAe/JxhrFcfIaSTtwR3J05L9sodwqkkJ/J3sjdNN5uVx/REEUl63vsmPJM97I 9pjNagPGDjYE5JufmkRiR6HMO3s5ezPnjhUEaKeLSXoz6ptic/OIgNeMQk1IHD+uA/K9 3oo7AgyCs6pnJVczO66cMMFGXk7YQtF/y/4/ySc9r+UCjbXGNojiIbSPnl3vasonhXpa nObP6q4Nf90oMglCKZWoggXCTCLptPRUswxss2WcBa1Q+MbJabGQD3OHLf5NRta3ObrB /MaQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J897ggcq; 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-7b6e6ccc18esi153376585a.134.2024.12.10.12.45.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Dec 2024 12:45:11 -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=J897ggcq; 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 1tL75L-0006xP-UR; Tue, 10 Dec 2024 15:44:00 -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 1tL75I-0006vB-EW for qemu-devel@nongnu.org; Tue, 10 Dec 2024 15:43:56 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tL75F-0001yO-1D for qemu-devel@nongnu.org; Tue, 10 Dec 2024 15:43:56 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-435f8f29f8aso6882165e9.2 for ; Tue, 10 Dec 2024 12:43:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733863431; x=1734468231; 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=Uld2y1nXUdPcLte2Xz1oCDzFJnjzfMw21fGvMGR5aoA=; b=J897ggcq2YQAJni0t8do5oMQc9brAQV+n17IiEioZvSAbZ5HCreTJ7hI9p3pjAjTa7 uU43gpSDkZQMByNZmIpdrRm81UiyfFOxgTtSLPzzzTWuYKi+c4hPse3568QpmoJlLpRb gKSpDNq+ImYzDswkjPD18n9lrZj48romvv3EsgvN/EeNnrCQ7zYAna02AKtDRazz9RAV AOWD4EhrJo4vY1MZPNd3hdHqjQHhEbjlwxpkaeEuF75kk6UeODr5EyzUkCWl7LRDAZ83 3rrEC2obvMZwMM/0uGUWKFazLsFP22uYGQaAeog0f0qYXCt7DNmpkyeE7HPNc/7cv7SE n94Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733863431; x=1734468231; 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=Uld2y1nXUdPcLte2Xz1oCDzFJnjzfMw21fGvMGR5aoA=; b=SenqT4PVFMWsKD56IW28SzYTh6MBPCrHYMEyoJD/10BOPfincY0a5Z1a+BlofuEF5H zOP4cYrwFBKWyvCWqyIvHmGZ0prkdQIyzEHpSbo6lzKwdaPV3flvBKs36R51iPpjogwG NlHqcv+tmke0GS+aYfWtgOZzzEKkhmfldnb3D8Q49f744ITIgRFo5JRZKkoJnxc0eptw cswTSbsmxPamJ2lJlhgNQrBlPNmzZxACLnupYHWnmJlc2/oUjnjsXTTq40F7IoLHw043 rguySPghDEiJkwWEGByb+6vDeDhlhJkfkiiBhF567PcByQOYLWlppH+18CCvZf52Sgch xnmQ== X-Gm-Message-State: AOJu0YzV4Diam66p+xuU0kOeAt8NEQC0Q/e+blW4lkrNWsuCLiRNzSxM y32geiL8ojRdmv74+n4rCDbco8rvP9RwPqaxUSfQmYvSn/CUwbT/FylukUqXj0I= X-Gm-Gg: ASbGncvKXRZcWYtMf4mBNx2oVblOTFl6qvchBuKFTs+sv9yrFyY5hx3V3aXfq/A6wXQ S6HxxJ8m+f8rHlfavKVvfp4655SWRlHz7J+LDRtVinIzw8phyXtgoJp1x7dwW7JZDzNHxbCQueh 7GzyGKSZuD4tCMBDhVeQoyvq2Wc0rGMO6EAyy8wTSrYuQRmT1FZNvgB8OmZ0glD0yV6TAs4oOac dk6GaMIpLi7vMsnnj7W1Zu+UBW+jFEJ3EhGWrDamDGGe7pLQawN X-Received: by 2002:a05:600c:1c1c:b0:434:a350:207c with SMTP id 5b1f17b1804b1-4361c3f4cbcmr1619755e9.23.1733863431065; Tue, 10 Dec 2024 12:43:51 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434d52cbefasm238843805e9.43.2024.12.10.12.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2024 12:43:50 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id AB15F5FA16; Tue, 10 Dec 2024 20:43:49 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , qemu-s390x@nongnu.org, Halil Pasic , Jiaxun Yang , Weiwei Li , Liu Zhiwei , Cleber Rosa , Palmer Dabbelt , Leif Lindholm , Eric Farman , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , John Snow , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Harsh Prateek Bora , Aurelien Jarno , Paolo Bonzini , Joel Stanley , Bernhard Beschow , qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, Daniel Henrique Barboza , Thomas Huth , Laurent Vivier , qemu-arm@nongnu.org, Wainer dos Santos Moschetta , Fabiano Rosas , Markus Armbruster , Bin Meng , Pavel Dovgalyuk , Marcel Apfelbaum , Richard Henderson , Marcin Juszkiewicz , Christian Borntraeger , Beraldo Leal , Peter Maydell , Radoslaw Biernacki , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , Nicholas Piggin , Mark Cave-Ayland , "Michael S. Tsirkin" , Alistair Francis , Laurent Vivier , Anders Roxell Subject: [PATCH 03/20] tests/functional: add a m68k tuxrun tests Date: Tue, 10 Dec 2024 20:43:32 +0000 Message-Id: <20241210204349.723590-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241210204349.723590-1-alex.bennee@linaro.org> References: <20241210204349.723590-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x329.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> --- 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 d6d2c0196c..0a76bd9954 100644 --- a/tests/functional/meson.build +++ b/tests/functional/meson.build @@ -97,6 +97,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()