Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BC15EC433FE for ; Sun, 30 Oct 2022 01:50:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3E05B85122; Sun, 30 Oct 2022 02:48:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="AyOPaGH6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C837385118; Sun, 30 Oct 2022 02:47:50 +0100 (CET) Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9A3208513C for ; Sun, 30 Oct 2022 02:47:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x132.google.com with SMTP id r1so4773848ilg.6 for ; Sat, 29 Oct 2022 18:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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=UeVf0qh2Iw5KET/7gswrw0FySkv+K6EDoNSiyaxOJcU=; b=AyOPaGH6YgC0P0gNL2L7+evZIA7EKA4QIX8CxClVRP9uIeembDBXZGXSU3vUz+G+ZK A4f0hLIv3xz1r3v/qyXs9pOj1kcBNShJj/dPsrkDiHa6E9Lsht1aCD6aw82fDXQK8cgD yFWEI6utWHuu/e1EVSuLvPzgAfQeRUYFi6bwI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=UeVf0qh2Iw5KET/7gswrw0FySkv+K6EDoNSiyaxOJcU=; b=HunBKYuWuViu2N9i+D0ByzcP4BL/l96RrEWCV1CMh7k49gOvrAlzZqAwhHNlOTJUp3 C6p1MDwhJVOXsKXAS6k9fvKyVYeJTlgsJj7qMliGp5Xq1a+v4eriIu0jhiTqohb41V6j 6pbC2os1wi+FHF3mCV5NJXOXvo0R9IshALxkf2UPztwBGe+kR0wvJiKR2LoeJWOaTViC bodGHoi/9avggbfdDBj3/k5BuonJyAmUAvMiAmtfEolDZ4zp/HL6svfcHQpoE6SRK29D I/rxNb1rONoJpgTjpuXE6U3Fauijv8B94F90HUvijSJUY1AjOn09jgiIuP0tXn92C+ZN VnVQ== X-Gm-Message-State: ACrzQf2dizNI44QO8o1SHTiiS8o2QxYLzA7xziBLirbmfFRxYoI2LDyF h5ylbbVw/gBuMc/KXE4u5r0WOcdBVH/tlw== X-Google-Smtp-Source: AMsMyM6suQTJDI5Fd+Sx4peslfNB+huPgdXgeLWqU0ygLRL5jzlYlvV/3+vkHFR7EYgVkQlnHFBjVA== X-Received: by 2002:a05:6e02:1a0f:b0:2f9:6dcb:c451 with SMTP id s15-20020a056e021a0f00b002f96dcbc451mr3168081ild.290.1667094466121; Sat, 29 Oct 2022 18:47:46 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id x66-20020a0294c8000000b00363c4307bb2sm810287jah.79.2022.10.29.18.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Oct 2022 18:47:45 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Simon Glass , Rui Miguel Silva Subject: [PATCH 08/17] test: Tidy up help for ut command Date: Sat, 29 Oct 2022 19:47:10 -0600 Message-Id: <20221030014719.147327-9-sjg@chromium.org> X-Mailer: git-send-email 2.38.1.273.g43a17bfeac-goog In-Reply-To: <20221030014719.147327-1-sjg@chromium.org> References: <20221030014719.147327-1-sjg@chromium.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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Sort this and put the command summary at the top instead of the bottom. Adjust it so that the newlines are at the start of the strings, so that there is not a blank line at the end. Signed-off-by: Simon Glass --- test/cmd_ut.c | 57 +++++++++++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/test/cmd_ut.c b/test/cmd_ut.c index 719cb7e19c8..81433cd36f4 100644 --- a/test/cmd_ut.c +++ b/test/cmd_ut.c @@ -137,56 +137,63 @@ static int do_ut(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) #ifdef CONFIG_SYS_LONGHELP static char ut_help_text[] = - "all - execute all enabled tests\n" + "[-r] [-f] [] - run unit tests\n" + " -r Number of times to run each test\n" + " -f Force 'manual' tests to run as well\n" + " Test suite to run, or all\n" + "\n" + "Suites:" + "\nall - execute all enabled tests" +#ifdef CONFIG_CMD_ADDRMAP + "\naddrmap - very basic test of addrmap command" +#endif #ifdef CONFIG_SANDBOX - "ut bloblist - Test bloblist implementation\n" - "ut compression - Test compressors and bootm decompression\n" + "\nbloblist - bloblist implementation" #endif #ifdef CONFIG_BOOTSTD - "ut bootstd - Test standard boot implementation\n" + "\nbootstd - standard boot implementation" +#endif +#ifdef CONFIG_SANDBOX + "\ncompression - compressors and bootm decompression" #endif #ifdef CONFIG_UT_DM - "ut dm [test-name]\n" + "\ndm - driver model" #endif #ifdef CONFIG_UT_ENV - "ut env [test-name]\n" + "\nenv - environment" #endif #ifdef CONFIG_CMD_FDT - "ut fdt [test-name] - test of the fdt command\n" + "\nfdt - fdt command" +#endif +#ifdef CONFIG_CMD_LOADM + "\nloadm - loadm command parameters and loading memory blob" #endif #ifdef CONFIG_UT_LIB - "ut lib [test-name] - test library functions\n" + "\nlib - library functions" #endif #ifdef CONFIG_UT_LOG - "ut log [test-name] - test logging functions\n" + "\nlog - logging functions" #endif - "ut mem [test-name] - test memory-related commands\n" + "\nmem - memory-related commands" #ifdef CONFIG_UT_OPTEE - "ut optee [test-name]\n" + "\noptee - test OP-TEE" #endif #ifdef CONFIG_UT_OVERLAY - "ut overlay [test-name]\n" + "\noverlay - device tree overlays" #endif - "ut print [test-name] - test printing\n" - "ut setexpr [test-name] - test setexpr command\n" + "\nprint - printing things to the console" + "\nsetexpr - setexpr command" #ifdef CONFIG_SANDBOX - "ut str - Basic test of string functions\n" + "\nstr - basic test of string functions" #endif #ifdef CONFIG_UT_TIME - "ut time - Very basic test of time functions\n" + "\ntime - very basic test of time functions" #endif #if defined(CONFIG_UT_UNICODE) && \ !defined(CONFIG_SPL_BUILD) && !defined(API_BUILD) - "ut unicode [test-name] - test Unicode functions\n" -#endif -#ifdef CONFIG_CMD_ADDRMAP - "ut addrmap - Very basic test of addrmap command\n" -#endif -#ifdef CONFIG_CMD_LOADM - "ut loadm [test-name]- test of parameters and load memory blob\n" + "\nunicode - Unicode functions" #endif - "All commands accept an optional [-r] flag before [test-name], to\n" - "run each test multiple times ( is in decimal)"; + ; #endif /* CONFIG_SYS_LONGHELP */ U_BOOT_CMD( -- 2.38.1.273.g43a17bfeac-goog