From patchwork Mon Dec 29 16:06:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1103 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767024404; bh=BkUXsdJffuUbGG4/y05DgqRGNyHoX4nblkdhyb20uL0=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=MPBTSBSSTvfZUGtIg/CYbfnCs5fsq/wLdNdKtjqLNa8K8dPSzzQIJANAlbcgXWvuc SjrMRNEQsq3NMnchZwPwMXvuWuxIuzl+nuFty1kHDMXJnNrEw46qVkpbVHiibWeG0S KHGBuMKf/iX1tI0of3Wjd7QvSClG8s2DmSTbNDo7NAjMcae8Ip+Tr/iFc5ry/qTwzy OfikSEqn7OnmksjIAOzZlvmkrYbWxOo1gQIPwtzDYYG99Vi9eWh7NQcOqqjyJBx21o SjPJN/tGyy/FC0GZTVhH+SsFSRw09pny6XD8UGpsFZcSAFO+kuUxy/dMiugQAP+pjR D8nQdexPjwKoQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 329E964E2A for ; Mon, 29 Dec 2025 09:06:44 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id jYRFXFQj56eo for ; Mon, 29 Dec 2025 09:06:44 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767024403; bh=BkUXsdJffuUbGG4/y05DgqRGNyHoX4nblkdhyb20uL0=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=M7K93EWVRp4jHlbcWV4YgRFooGY7731m2AU9tohoXWAXzn2K048QecQQmzai6lJHH JRdRitFYV6/TqQU4xOnsbP7wOEV5NY4w785I9LDmTC/t1/wp+UzbaDx+jjIy10UfFm FDGovlE03JHSPAOMMQ153klCdpMPo6eTA4jp8h/rikSZWIm5vSZ3sYrgMIZaK8lktS OKhMNYkw25jZbltpi5FArdMuCYPH8lcmXMehwE6BobsQUtsjEDHpX52rm5YAcKe8a7 0UZxqAW8hSIQlC2fHRhWiM7VhKc1ZdrgLjsPDW6nMpsebb78KckUZKonAJ6WHFcuq0 6I3OuNxRL/4Gw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 36B9868F2E for ; Mon, 29 Dec 2025 09:06:43 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767024401; bh=j3EIO9nd7Xxb9GgVtIT/OTk41QLBX2y0G5To6WvB6V0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PuBbrcfuNB918RlN8ynAnlWD3xYf7UxdmgAOjWVgwz7XrtzFQbKGGvRy7bouhhSAn yjfFumBfXMxRmeyuoByse9fD0K8EVU46OnihGQfYT1hH6n33njeAQr/3+aFyUfMPpU URVWBJSp4dyCGlMRL2RpA8owpF+U80nWhRK9BDYYtM0uGpF8F5zGxJQaUWA2CE/Pem tMIaYa+F6U9MRpyUJfPvulvlX0d232/yu79XqG8EybG2kUjJu725qRL54hR8g2LWVZ fMDszelqVCBJQy5DoJmUOvLbnVYptjzwZMQVKwOCLUXwNqmBKNSE1cOxZUoUoDIw7p FgsSwMHoWyW8A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 78F7B68CAC; Mon, 29 Dec 2025 09:06:41 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id OTIOff-CtWRA; Mon, 29 Dec 2025 09:06:41 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767024401; bh=+nW4H7r85ATAW6wrBTgBjNTURanMpqUSqu3P5Aob1IE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wgjd/waQ5PKXztZXuJju3k4IsezEjTk4Raiq2p0yh6jYljnRi6Cyi7PN3s88UHCgz 3fvAHMvultIxmwegAsxWOc8G5XqgXJUFZRKSk9viFsZQTviiC85nhTgQSrGVF+yV85 0LQ0iyhMZbGsuAaZgBiYx14SPic+I3+0Iv7i4VbL8or0+mfTr5YCmkrt2pa3dF03PB JBq7mugh8DeE4IZVGBAA1lRy8yC9z96SEiHEFQm3F/itx36WlFhIAJOTHbidLqOqoV +Zir+g60ewdxtpDF7eSyImgcwyU3RDO+/xMsYC/TbgRdUPydelWZl1/CtUuVcnmB1V rTLEaC/wDLRBw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id C7DB968B78; Mon, 29 Dec 2025 09:06:40 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Mon, 29 Dec 2025 09:06:03 -0700 Message-ID: <20251229160611.3899708-6-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251229160611.3899708-1-sjg@u-boot.org> References: <20251229160611.3899708-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 6T675KGL2SD4X4NS4M7ZNVHFXWHJWA3Y X-Message-ID-Hash: 6T675KGL2SD4X4NS4M7ZNVHFXWHJWA3Y X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 5/9] test: ut: Add -m as alias for the -f flag List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Add -m as an alias for the -f flag which forces manual tests to run. This provides consistency with external test runners that will use -m for "manual" tests. Also update the documentation to explain what manual tests are, and fix a typo ("types" -> "times") in the -r description. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- doc/usage/cmd/ut.rst | 10 ++++++---- test/cmd_ut.c | 5 +++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/doc/usage/cmd/ut.rst b/doc/usage/cmd/ut.rst index a26ee6ad7de..07cd970da6c 100644 --- a/doc/usage/cmd/ut.rst +++ b/doc/usage/cmd/ut.rst @@ -11,7 +11,7 @@ Synopsis :: - ut [-r] [-f] [-R] [-I:] [ | all []] [...] + ut [-fmr] [-R] [-I:] [ | all []] [...] ut [-s] info Description @@ -26,11 +26,13 @@ suite test Speciifes a particular test to run, within a suite, or all suites --f - Forces running of a manual test. +-f, -m + Force running of manual tests. Manual tests have the `_norun` suffix and + are normally skipped because they require external setup (e.g., creating + disk images from Python/pytest). -r - Specifies the number of types to run each test + Specifies the number of times to run each test -I : Test to run after other tests have run. This is used to find which test diff --git a/test/cmd_ut.c b/test/cmd_ut.c index 8d8a2d763a2..050f7ee6caf 100644 --- a/test/cmd_ut.c +++ b/test/cmd_ut.c @@ -272,6 +272,7 @@ static int do_ut(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) runs_per_text = dectoul(str + 2, NULL); break; case 'f': + case 'm': force_run = true; break; case 'I': @@ -340,9 +341,9 @@ static int do_ut(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) } U_BOOT_LONGHELP(ut, - "[-rs] [-f] [-R] [-I:] [ [...]] - run unit tests\n" + "[-fmrs] [-R] [-I:] [ [...]] - run unit tests\n" " -r Number of times to run each test\n" - " -f Force 'manual' tests to run as well\n" + " -f/-m Force 'manual' tests to run as well\n" " -I Test to run after other tests have run\n" " -R Preserve console recording on test failure\n" " -s Show all suites with ut info\n"