From patchwork Thu Nov 21 16:57:50 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: 844704 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:8b:b0:382:43a8:7b94 with SMTP id m11csp2392817wrx; Thu, 21 Nov 2024 09:13:08 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVJJv6zTai4zoDqSUEscpOXTpXn23p0ntBWQCaF0Jyl67kkHw619xlc7MPF3P1ukOxxZgXYKA==@linaro.org X-Google-Smtp-Source: AGHT+IH2vF6yj4D/JCqYDM2UhIe7Vu3rd9xsPt1JX2tJSwCax2HzjRmkPrJte1AcEXm0nrDAQbAV X-Received: by 2002:a05:6512:4012:b0:539:e97c:cb10 with SMTP id 2adb3069b0e04-53dc136cfaamr3446314e87.40.1732209188482; Thu, 21 Nov 2024 09:13:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732209188; cv=none; d=google.com; s=arc-20240605; b=WMQAJpUJi42uI8dPCQlhLq8Ub4tFbChYBUaX6Ag4CCthLds2e3w8hs8EewZKd9fuB4 PzrW7m+NadkVh1vB4MzpT92j/gIZWNyEFB8LvEOYZi5McOYJEOD6DXkXggt4CwRKf/8S UqquZojLFUsIFd3mAzp5Jz38KsY1EMrSzXEoI8YMVno6/GkR9ZeItuxtHrZYXIU9Rdmu znP7CuTDqJRU0Uhf2JF8NcLx8aIi17Kom9qJp9ogjgPgxpii/vy6t2uxBIPS31jLcAwR RQSauRiI8dEjaAvWFNWn6qqEzmdZQbR8qM7khH7ZNouH4rhVneJK5Q5/l5/sPZeuwgoq Q8ag== 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=eUF072RWHjw5X8nluQQuYebe1FYEMSwq9TSQiXId4cw=; fh=PehUMr93XD7r95sBWDs1oOI0jmaFQYC03dd+EMiRPvo=; b=VjdvmXt/WBdfmTLEN+R7LvsrPgg9Xqv0PUbcWpFQfoTb3HkYoPhFqSr/rE5q4KulND TBE55ZIRcszIKs0CwBVCPt2PQvLR3ImFP8LND0BYFf5raGhgRAD7JJ+hlyZSTCUwNHfp nqdZks8tjpnyNBFMW3qod9+8RLwqtyr/6MxaRgHFa5mqboTNNMiBF6ivrZGhubscvJmI r/X3am4vzZmhvxZFvFCPaufr/VAVgpLqanH2sw0eglBI7FCU+NThAkDtnx9WMOv4TXi/ 3FY7Ml+eAgoNF6qdTVr7XuOdkB6Ll9GRa6Dx+U9Bch2XH4k0uxyj5M5euvVaEQnC0umK 38hg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="RZEaBal/"; 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 ffacd0b85a97d-3825fd27e32si31897f8f.380.2024.11.21.09.13.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Nov 2024 09:13:08 -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="RZEaBal/"; 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 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) 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-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) 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) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Peter Maydell , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=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_Benn=C3=A9e?= , John Snow , Wainer dos Santos Moschetta , Cleber Rosa , qemu-rust@nongnu.org, Nicholas Piggin , =?utf-8?q?Daniel_P=2E_Berrang=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 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+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. Signed-off-by: Alex Bennée 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 = [ '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()