Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2232147/?format=api
{ "id": 2232147, "url": "http://patchwork.ozlabs.org/api/patches/2232147/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260503015756.99176-8-54weasels@gmail.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260503015756.99176-8-54weasels@gmail.com>", "list_archive_url": null, "date": "2026-05-03T01:57:56", "name": "[7/7] tests/functional: Add Sun-3 firmware boot and diagnostic test", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "3a584696549aed4b41a1606695945307525926d4", "submitter": { "id": 93309, "url": "http://patchwork.ozlabs.org/api/people/93309/?format=api", "name": "54weasels", "email": "54weasels@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260503015756.99176-8-54weasels@gmail.com/mbox/", "series": [ { "id": 502564, "url": "http://patchwork.ozlabs.org/api/series/502564/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502564", "date": "2026-05-03T01:57:51", "name": "m68k: Add Sun-3 Machine Emulation", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502564/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2232147/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2232147/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=Vz37szzR;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g7Yz14R7Yz1yJ0\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 03 May 2026 16:00:13 +1000 (AEST)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wJPrN-0001Gn-90; Sun, 03 May 2026 01:59:21 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <54weasels@gmail.com>)\n id 1wJM6H-0004xB-36\n for qemu-devel@nongnu.org; Sat, 02 May 2026 21:58:29 -0400", "from mail-dy1-x132f.google.com ([2607:f8b0:4864:20::132f])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <54weasels@gmail.com>)\n id 1wJM6F-0000Z3-F2\n for qemu-devel@nongnu.org; Sat, 02 May 2026 21:58:28 -0400", "by mail-dy1-x132f.google.com with SMTP id\n 5a478bee46e88-2dee127b3c5so7234327eec.1\n for <qemu-devel@nongnu.org>; Sat, 02 May 2026 18:58:26 -0700 (PDT)", "from newsled.lan ([76.133.142.170]) by smtp.gmail.com with ESMTPSA\n id\n 5a478bee46e88-2ee38d79eb9sm14361735eec.8.2026.05.02.18.58.24\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Sat, 02 May 2026 18:58:24 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777773505; x=1778378305; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=1QR6NDChDJEAzSKlkW2JjzGfYbC4Be2Ip1t74TmvjhY=;\n b=Vz37szzR8bQ6naELtPV/XOkFeIUJo0n3mzZkwFIDoZjxsWgV17tZ3ES2aCzNcV2wbf\n SrmhIgD8xYy4KJFUR17SrgZ7KvOnyh4caOyNHTypstU5v3sUfdcwDKu4nrDr5I+0VPSR\n WC1egrFmYc+gygzdJH4D3neICq94cnmpTqN9Z9EAsE9ksBhmDnhwFCH254iz5y+Px7QC\n WI5WtYT1sza6Glh3Rx8kTaOdL/yoQvMlp3bT+TwFCvqVGGtS9r8kA521Wm6p2EC+8tdp\n sciTS/QJERzTQEPqrlw7/MDeclRXmE1oB+12QR3c9fC+c14eoTvkSt479DPodUvy6cGq\n GEig==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777773505; x=1778378305;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=1QR6NDChDJEAzSKlkW2JjzGfYbC4Be2Ip1t74TmvjhY=;\n b=fuJHemPjd89ZDRLZGOJZikxFiQWaoIHJIXoE/2IUF+n7WRbGF+NkhpHknzoDaaCFzt\n jOGmVMubp2Qj4L/4H8beQ7SsbbeW66koipZuD6C5C6CGeSCbBjULe2ctzCHuH01VhTKg\n zAFNGNxFXjMOx6mNU0l1F2arhLMsE7jsKZpZdz9vSZlcFXHAwIAaCcVS5A/PyQylOTuF\n rJ8QupkkM9pADmLMJDb8d58K/t2M0VU7GHi27X5sHiA1/zNuWUAXOD7B6roLZsEE+RYz\n QObwKNQI9i7lu0Sbclubbc7ju72FGQQ7Q4BYlnfDHLR7PTvdxBw3EJSOJaFIuHcZ76uA\n Q70g==", "X-Gm-Message-State": "AOJu0YzU6SOg1Qn7dJCYG2tVcgMSiMtMbrJrM/b0wdjBFgoSb4j690Xm\n rliT36O1zUevmoDiGJ5vxxFX+wgDOJwdNoMNoOzu8bpUYZCmVGBftAyXKTZHDw==", "X-Gm-Gg": "AeBDiesfeMVJmqQHTac2+I2VLkEzn7PYADQEbQX+S1Xi3qTtJ5H8fIcCfh939XEWEw2\n GjXpbSf/49Hg6uhv40hzbIdQEPSbTTOmRVdAq39qJ+XPOGsp0qfKkDbzJB8iIqqFJq8mUBqjvFn\n 8R2pwi0CUHBR8RLC0L6dU/ZOSIaSths/mgwJKBJPbYxdMoWeCcjpFqF9r49ipTC5R3/rr6+WjfG\n zCfA93LHdj9mrKWb+roqN3rtRD3dajGmlKOz0D8zEGPiF2/IRdeiQIQAN4crA7R1e2V8yl+jRQP\n yYAxI7G7vxGBbjLLbF6su5TS1rBSjYtsN0OFxhKHJwQnDNuEz1sJrwcoknWyrCG5wI0UXhqHhrb\n Y68lVq9ibIv/9bCMi9RmIBeH/Vk0F2Aj+5wpg2ZSlERUdINUJpwPXaZ2GZc1rXoACs59mf0Pjow\n rbpyjsTkgDJsOK8ZLTwkUBReRAeIX0grBA7cNP+k76+fBiYL15pw==", "X-Received": "by 2002:a05:7300:a18a:b0:2c5:60d0:701e with SMTP id\n 5a478bee46e88-2efb79cc45amr2300616eec.3.1777773505012;\n Sat, 02 May 2026 18:58:25 -0700 (PDT)", "From": "54weasels <54weasels@gmail.com>", "To": "qemu-devel@nongnu.org", "Cc": "laurent@vivier.eu,\n\tthuth@redhat.com,\n\t54weasels <54weasels@gmail.com>", "Subject": "[PATCH 7/7] tests/functional: Add Sun-3 firmware boot and diagnostic\n test", "Date": "Sat, 2 May 2026 18:57:56 -0700", "Message-ID": "<20260503015756.99176-8-54weasels@gmail.com>", "X-Mailer": "git-send-email 2.50.1", "In-Reply-To": "<20260503015756.99176-1-54weasels@gmail.com>", "References": "<20260503015756.99176-1-54weasels@gmail.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2607:f8b0:4864:20::132f;\n envelope-from=54weasels@gmail.com; helo=mail-dy1-x132f.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no", "X-Spam_action": "no action", "X-Mailman-Approved-At": "Sun, 03 May 2026 01:59:20 -0400", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "qemu development <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "This adds an integration test that downloads the Sun-3/60 Boot PROM, initializes the machine, and ensures the self-test successfully routes to TTY A.\n\nSigned-off-by: 54weasels <54weasels@gmail.com>\n---\n tests/functional/m68k/meson.build | 1 +\n tests/functional/m68k/test_sun3.py | 34 +++++++++++++++++++++++++++++\n tests/functional/qemu_test/asset.py | 11 +++++-----\n 3 files changed, 41 insertions(+), 5 deletions(-)\n create mode 100755 tests/functional/m68k/test_sun3.py", "diff": "diff --git a/tests/functional/m68k/meson.build b/tests/functional/m68k/meson.build\nindex 679faaf86d..601c28d863 100644\n--- a/tests/functional/m68k/meson.build\n+++ b/tests/functional/m68k/meson.build\n@@ -9,5 +9,6 @@ tests_m68k_system_thorough = [\n 'nextcube',\n 'replay',\n 'q800',\n+ 'sun3',\n 'tuxrun',\n ]\ndiff --git a/tests/functional/m68k/test_sun3.py b/tests/functional/m68k/test_sun3.py\nnew file mode 100755\nindex 0000000000..f441184616\n--- /dev/null\n+++ b/tests/functional/m68k/test_sun3.py\n@@ -0,0 +1,34 @@\n+# SPDX-License-Identifier: GPL-2.0-or-later\n+#!/usr/bin/env python3\n+#\n+# Functional test that boots a Sun-3 machine and checks its serial console.\n+#\n+# Copyright (c) 2026\n+#\n+\n+\n+import os\n+from qemu_test import QemuSystemTest, Asset\n+from qemu_test import wait_for_console_pattern\n+\n+class Sun3Machine(QemuSystemTest):\n+ timeout = 60\n+\n+ ASSET_PROM = Asset(\n+ 'https://github.com/54weasels/sun3_60/raw/main/bootprom/boot_1810_01.BIN',\n+ '471bf34cc9313814726c2e3506d85a13291603e37b45aaffa71bc1154a2d4851'\n+ )\n+\n+ def test_m68k_sun3_boot(self):\n+ self.set_machine('sun3')\n+ prom_path = self.ASSET_PROM.fetch()\n+\n+ # Sun-3 maps TTY A to serial_hd(3)\n+ self.vm.set_console(console_index=3)\n+ self.vm.add_args('-bios', prom_path)\n+ self.vm.launch()\n+\n+ wait_for_console_pattern(self, '>')\n+\n+if __name__ == '__main__':\n+ QemuSystemTest.main()\ndiff --git a/tests/functional/qemu_test/asset.py b/tests/functional/qemu_test/asset.py\nindex 51a434b2b7..eac1e60536 100644\n--- a/tests/functional/qemu_test/asset.py\n+++ b/tests/functional/qemu_test/asset.py\n@@ -223,11 +223,12 @@ def fetch(self):\n raise AssetError(self, \"Download retries exceeded\", transient=True)\n \n try:\n- # Set these just for informational purposes\n- os.setxattr(str(tmp_cache_file), \"user.qemu-asset-url\",\n- self.url.encode('utf8'))\n- os.setxattr(str(tmp_cache_file), \"user.qemu-asset-hash\",\n- self.hash.encode('utf8'))\n+ if hasattr(os, 'setxattr'):\n+ # Set these just for informational purposes\n+ os.setxattr(str(tmp_cache_file), \"user.qemu-asset-url\",\n+ self.url.encode('utf8'))\n+ os.setxattr(str(tmp_cache_file), \"user.qemu-asset-hash\",\n+ self.hash.encode('utf8'))\n except OSError as e:\n self.log.debug(\"Unable to set xattr on %s: %s\", tmp_cache_file, e)\n \n", "prefixes": [ "7/7" ] }