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>
This commit is contained in:
Simon Glass 2023-10-26 14:31:17 -04:00 committed by Tom Rini
parent d972192520
commit 8b888917ca

View file

@ -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.