[U-Boot] [PATCH v3 16/26] test: Move the unit tests to their own menu

Joe Hershberger joe.hershberger at ni.com
Sun May 3 22:12:52 CEST 2015


Make all unit tests selectable as a menu of test suites instead of just
sitting in the top-level menu individually.

Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
---

Changes in v3:
-New for version 3

Changes in v2: None

 test/Kconfig    | 7 +++++--
 test/dm/Kconfig | 3 +--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/test/Kconfig b/test/Kconfig
index 706b01b..8895e82 100644
--- a/test/Kconfig
+++ b/test/Kconfig
@@ -1,4 +1,7 @@
-config UNIT_TEST
-	bool
+menuconfig UNIT_TEST
+	bool "Unit tests"
+	help
+	  Select this to compile in unit tests for various parts of
+	  U-Boot. Test suites will be subcommands of the "ut" command.
 
 source "test/dm/Kconfig"
diff --git a/test/dm/Kconfig b/test/dm/Kconfig
index 3ca154f..71feee8 100644
--- a/test/dm/Kconfig
+++ b/test/dm/Kconfig
@@ -1,7 +1,6 @@
 config DM_TEST
 	bool "Enable driver model test command"
-	depends on SANDBOX && CMD_DM
-	select UNIT_TEST
+	depends on SANDBOX && CMD_DM && UNIT_TEST
 	help
 	  This enables the 'dm test' command which runs a series of unit
 	  tests on the driver model code. Each subsystem (uclass) is tested.
-- 
1.7.11.5



More information about the U-Boot mailing list