Message ID | 20240724060224.3071065-38-sughosh.ganu@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp2619992wro; Tue, 23 Jul 2024 23:12:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXHKIX0lMofRXt93g7uPGNCVeAxncktsbjI3f2zE0XEXL4qPf2cBZCUR//60r/uN/PqE6BnQFp5QwSxcZZv7Oy0 X-Google-Smtp-Source: AGHT+IEcGqgV49T08TaHkoi7LaTinB78EzIZu7jSignHUuWMrNRvnPexwDYrAHFYN4U6RDYcVW68 X-Received: by 2002:a5d:5f8d:0:b0:368:7f4f:9ead with SMTP id ffacd0b85a97d-369bae233b5mr10127190f8f.7.1721801557009; Tue, 23 Jul 2024 23:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721801556; cv=none; d=google.com; s=arc-20160816; b=jp29XUGvlDNYtRs+QcMsEUxUAVgZoA/p2yNP4lNucWS7K9ShbS9J66FNRFcxFfJJqF cllmMcmGY2/l1Y+k5q12uIcQhvsqBoV5xXhZ/X7jODH0vkg2BkX1ORocg3hqmcCsHKSc wR9A5zhbgKuJeAYSP7lzTDsEhzd+i5QkXoJiiP3YKKZou7rPRPBkTpg85N+Xtrumx3ie dT/JnI/wtEkBU4/vh4KRqKoK1yFlBr6FvBKlYm4kxpNkQk32t7bVKCEm5AxbBKuWkapW TajJGApPXLOcNEC+QbyFZNryfLdgCQ43tzI45mgbBHzwn6p8d0oJvV+PnhdL+58H7YW+ moxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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; bh=vQxUUOaCLKdGDx7TRqmoqjoYBa4QP9cp6iOUo/axodE=; fh=eimiGswTlodK8yi2DcDfSicmKwvq5bxKQKpD+SkkTNY=; b=vok17qNPA2SKXfpunhb9zYYrkru+DF8p2hEVTs7WHzrAP/vsXXOHejQTUTF9woauQi FxHBcps/TvF8ihqjBv5sdwXeZXmRjTCluU6LXzw4sF+jNmm1vVLDgo4LODO0KJkF6ki2 +kN2hcNjVdYEhC/Pa3e4jrO06Cu8Np2p0nutNDRPb1LrDv/BMEDGSxSW4bK6A7jbJw2e /1maISTb8yqGsbcIwVOVczbeHMQaoiRRsAXhfCr9lErMVon+t2rvg0UQrk0PHFg2vjwL DwhmrDgJ2xGaux0BcWhzWHlrv/cBmVEFrjaogZqDiLwZMP2fLEGtzIGXPMxVCIRMMnDH e4TQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id ffacd0b85a97d-369e384df1dsi1373874f8f.1046.2024.07.23.23.12.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jul 2024 23:12:36 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 19A408891B; Wed, 24 Jul 2024 08:06:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 1782F8894E; Wed, 24 Jul 2024 08:06:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 0A47B8890F for <u-boot@lists.denx.de>; Wed, 24 Jul 2024 08:05:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F23471596; Tue, 23 Jul 2024 23:06:20 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DF8443F766; Tue, 23 Jul 2024 23:05:50 -0700 (PDT) From: Sughosh Ganu <sughosh.ganu@linaro.org> To: u-boot@lists.denx.de Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org>, Marek Vasut <marex@denx.de>, Mark Kettenis <mark.kettenis@xs4all.nl>, Michal Simek <michal.simek@amd.com>, Patrick DELAUNAY <patrick.delaunay@foss.st.com>, Patrice CHOTARD <patrice.chotard@foss.st.com>, Huan Wang <alison.wang@nxp.com>, Angelo Dureghello <angelo@kernel-space.org>, Daniel Schwierzeck <daniel.schwierzeck@gmail.com>, Thomas Chou <thomas@wytron.com.tw>, Rick Chen <rick@andestech.com>, Max Filippov <jcmvbkbc@gmail.com>, Sughosh Ganu <sughosh.ganu@linaro.org> Subject: [PATCH 37/40] test: lmb: invoke the LMB unit tests from a separate script Date: Wed, 24 Jul 2024 11:32:21 +0530 Message-Id: <20240724060224.3071065-38-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724060224.3071065-1-sughosh.ganu@linaro.org> References: <20240724060224.3071065-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
Make LMB memory map global and persistent
|
expand
|
diff --git a/test/py/tests/test_lmb.py b/test/py/tests/test_lmb.py new file mode 100644 index 0000000000..b6f9ff9c6a --- /dev/null +++ b/test/py/tests/test_lmb.py @@ -0,0 +1,24 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright 2024 Linaro Ltd +# +# Run the LMB tests + +import pytest + +base_script = ''' +ut lmb -f +''' + +@pytest.mark.boardspec('sandbox') +def test_lmb(u_boot_console): + cons = u_boot_console + cmd = base_script + + with cons.log.section('LMB Unit Test'): + output = cons.run_command_list(cmd.splitlines()) + + assert 'Failures: 0' in output[-1] + + # Restart so that the LMB memory map starts with + # a clean slate for the next set of tests. + u_boot_console.restart_uboot()
With the LMB tests moved under a separate class of unit tests, invoke these from a separate script which would allow for a system reset once the tests have been run. This enables clearing up the LMB memory map after having run the tests. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> --- Changes since rfc: None test/py/tests/test_lmb.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/py/tests/test_lmb.py