From patchwork Fri Mar 7 15:06:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 871200 Delivered-To: patch@linaro.org Received: by 2002:a5d:64c8:0:b0:38f:210b:807b with SMTP id f8csp811208wri; Fri, 7 Mar 2025 07:12:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU/eQPcw2dwk94y8N0yJQJbLVmDlXcPP8umkkzrU+MPfhK4tIJbjySJ4NhTGTpTRqYFcVlcwQ==@linaro.org X-Google-Smtp-Source: AGHT+IE6Y3B1ZW50YCpb+19Q4tQhq6mFQvh5wNfeVDkNeWfeuEua/rOaLcVJz42tDjKQZeEvXxM3 X-Received: by 2002:a67:e7cb:0:b0:4bb:9b46:3f87 with SMTP id ada2fe7eead31-4c30a559894mr2298555137.6.1741360376052; Fri, 07 Mar 2025 07:12:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741360376; cv=none; d=google.com; s=arc-20240605; b=CiwA8eGvYP+o8W6owxVmCrMGy93VdTmlRCP9mxSGq5uZGRcbjLdGyRc83d2osBte+K FWl1/rwEsW2nGo/BRs9hCpHySJgOWpYM7AovCYvHl/q8WuWY0iOyqQq9gi6Y/QkcdEIn xd/oY6KdNIEGjtxLayMMiWcEifsofRq8FptQwFkRkndcaVLxtuNu7N+i3njZIhUXvTAi yN4Q5jUiOLm9PKL3pNJMBh/BqCQSbURvRjOHzUZxDRAISZPvzguNQnh1LVtzE/LW7b0t tYhnhDjSDuG8vOt214JIpwlEena5aeQz1d3y8pADhSOqHzJGmdgyrj3Or6cSnV2f3y4H VRvA== 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:to:from :dkim-signature; bh=rIwmQF35hYwgON9JLC3NfuNYRtNZnkx/8hFBCdAWebE=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=TtXDlV+SYRmkzdCHMMRGYvKEAe00PpYUqnGOob2YIDhpJIurLYnBOVk7s/9htujFhH LmKNhRpk9dBpnzwjeyJgxITVBuuIOnOQ5oRyODEefOWSNtyrZnmt+xA2F1UVF0S7oVEt 1Y0jiI2WZnPfHEdlnUCummnQ+jopNQAKoIB8YQTgjm473kKEG4Dl4Ru3XQKzNqFmJBni cDi0QD48XcXeO4sGptu1Dk7lA2kxNZfHSn72LlRxs763rLJ0LPR1SdL+74BXcUtX0Nkh lEEVg1Hlp+EMEDxHqrZIj1Z3ZnAwilnZMRJIACiZRvRXJCo2lAXjcAhLAJ76MMAE2kQm vqkQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yj5J8pAr; 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 ada2fe7eead31-4c2fb459e57si1003943137.194.2025.03.07.07.12.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Mar 2025 07:12:56 -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=Yj5J8pAr; 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 1tqZII-0000vu-TH; Fri, 07 Mar 2025 10:07:22 -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 1tqZIF-0000uu-Hc for qemu-devel@nongnu.org; Fri, 07 Mar 2025 10:07:20 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tqZID-00089m-HZ for qemu-devel@nongnu.org; Fri, 07 Mar 2025 10:07:19 -0500 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-43bcf9612f4so16469715e9.3 for ; Fri, 07 Mar 2025 07:07:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741360035; x=1741964835; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=rIwmQF35hYwgON9JLC3NfuNYRtNZnkx/8hFBCdAWebE=; b=Yj5J8pArVlXgZfm3UvwuCPjIJGPpnJptdcz/fhlQLRuxBah26pHfiJsqkL0xriHt9x VtEg37erg00hBetuJQ9Ixm2SaBEE5mKFiMUWtiIHYLDkSCr0wKTiEgUvoZ23W7tO1EgN +zWDIrN101XBrJ6dRMLeXr6he1WytVkEiPmqXjWvv71VI7CvXd6MG065Y5xJsZBYZPJ+ BJuN1HnzksKtdwUhv3tydvaY2eVHJhZsffVvtghjFq07uooF0rl8zQMgTQaC7Uzd4CCL MEarPU2ebPQXzWnRl34FBHpbwbcoUl54B7AjbaBIQ9BHmtwjdMhGNN+3L/V3Q0+cF9QE YzPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741360035; x=1741964835; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rIwmQF35hYwgON9JLC3NfuNYRtNZnkx/8hFBCdAWebE=; b=nhCuH8bFe7k99MLFejr9ORHsHwBGU0NMogFDJ7hMKlZrFGLX2QbI2jC39WLTI7sha+ vajvHPAA1eIBYuFQDW2ode61eOYHrfCaxe6ZOAiIWKZblDq3wo/K9m4zqqszFUJwxWQf OqqVGWrs3SWwfxvRoG6/qLWTTEpLzfAJHGmLcVglu6E5yaITl13EROvlNpUjKm8KIR48 sEKCbxywxt5X2skyQ8YqCZsdiqRrSK4uccxFoRDyWrkvd7u4+Azkb4fi0kQOmtGorIit fjrSh5Ox0reDNxEp7xrj/sp8irFYi8iJ5mqLnb9q1M1/+cGU/iT1dg43Ob5oBQagLKuN ijxA== X-Gm-Message-State: AOJu0Yy+ntlfxfOKEfGu6M4ZE2dy4tcBiNyGz3MN/iMiONOzNvf5oiGh 3XJ5IA0sj+zIk8Hnsrij7mw9X8bCnmP97VNPXEIqdC1tTAMwk86XVP5zPgGolujm+54W1Z1zoWR 1 X-Gm-Gg: ASbGnct4HjGls0tmNTKy4bhBhJwhgKRuDX+QBlvlEouVbRhWZst/qRYgmvflnY7EveY mzQSOJEbtN5iuzGBtoaEFwcZzTBUFdw3RWsgtneTOJLyf/RPbNQLVvvvKou25qpGZvj59oPCwlU BmJvAQV7utBR8UYXzzD9BsuS2eCbzrUUvsTP0u+EaSZNZoyzGxzBxsP3qdp3NMjs32bW6anailq UA4QLA9edHNdJTWvmx3+FTinIAVY3gRE0eWIsMVK4EF3MeKBQIUMCioKUalOvl2BrdRydfReX9j oLWgTWdcMjutAq2e8Z1baDQ4sHG6sbz2rnYBHyzvYm2q+64VUjI= X-Received: by 2002:a5d:59a8:0:b0:390:ea4b:ea9 with SMTP id ffacd0b85a97d-39132d98be4mr2743830f8f.39.1741360034779; Fri, 07 Mar 2025 07:07:14 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3912c1031fdsm5443627f8f.89.2025.03.07.07.07.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 07:07:13 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 03/21] tests/functional/test_arm_sx1: Check whether the serial console is working Date: Fri, 7 Mar 2025 15:06:50 +0000 Message-ID: <20250307150708.3222813-4-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250307150708.3222813-1-peter.maydell@linaro.org> References: <20250307150708.3222813-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x334.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=ham 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 From: Thomas Huth The kernel that is used in the sx1 test prints the usual Linux log onto the serial console, but this test currently ignores it. To make sure that the serial device is working properly, let's check for some strings in the output here. While we're at it, also add the test to the corresponding section in the MAINTAINERS file. Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Message-id: 20250226104833.1176253-1-thuth@redhat.com Signed-off-by: Peter Maydell --- MAINTAINERS | 1 + tests/functional/test_arm_sx1.py | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5df6020ed54..699cf59e0b8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2010,6 +2010,7 @@ S: Maintained F: hw/*/omap* F: include/hw/arm/omap.h F: docs/system/arm/sx1.rst +F: tests/functional/test_arm_sx1.py IPack M: Alberto Garcia diff --git a/tests/functional/test_arm_sx1.py b/tests/functional/test_arm_sx1.py index 4dd1e1859fa..25800b388c9 100755 --- a/tests/functional/test_arm_sx1.py +++ b/tests/functional/test_arm_sx1.py @@ -43,7 +43,8 @@ def test_arm_sx1_initrd(self): self.vm.add_args('-append', f'kunit.enable=0 rdinit=/sbin/init {self.CONSOLE_ARGS}') self.vm.add_args('-no-reboot') self.launch_kernel(zimage_path, - initrd=initrd_path) + initrd=initrd_path, + wait_for='Boot successful') self.vm.wait(timeout=120) def test_arm_sx1_sd(self): @@ -54,7 +55,7 @@ def test_arm_sx1_sd(self): self.vm.add_args('-no-reboot') self.vm.add_args('-snapshot') self.vm.add_args('-drive', f'format=raw,if=sd,file={sd_fs_path}') - self.launch_kernel(zimage_path) + self.launch_kernel(zimage_path, wait_for='Boot successful') self.vm.wait(timeout=120) def test_arm_sx1_flash(self): @@ -65,7 +66,7 @@ def test_arm_sx1_flash(self): self.vm.add_args('-no-reboot') self.vm.add_args('-snapshot') self.vm.add_args('-drive', f'format=raw,if=pflash,file={flash_path}') - self.launch_kernel(zimage_path) + self.launch_kernel(zimage_path, wait_for='Boot successful') self.vm.wait(timeout=120) if __name__ == '__main__':