From: Simon Glass <sjg@chromium.org>
Date: Thu, 26 Oct 2023 18:31:17 +0000 (-0400)
Subject: test: Make UNIT_TEST depend on CMDLINE
X-Git-Tag: v2025.01-rc5-pxa1908~582^2~36^2~41
X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/%7B%7B?a=commitdiff_plain;h=8b888917cae16e690ca0bda68dbcfae62928935d;p=u-boot.git

test: Make UNIT_TEST depend on CMDLINE

Many tests make some use of the command line, so require it for all test
code.

This could be teased apart, perhaps with a test flag indicating that it
uses the command line. Leave that for later.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
---

diff --git a/test/Kconfig b/test/Kconfig
index ca648d2337..c3db727c58 100644
--- a/test/Kconfig
+++ b/test/Kconfig
@@ -2,6 +2,7 @@ menu "Testing"
 
 config UNIT_TEST
 	bool "Unit tests"
+	depends on CMDLINE
 	help
 	  Select this to compile in unit tests for various parts of
 	  U-Boot. Test suites will be subcommands of the "ut" command.