diff mbox

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

Message ID 1430683982-9832-17-git-send-email-joe.hershberger@ni.com
State Superseded
Headers show

Commit Message

Joe Hershberger May 3, 2015, 8:12 p.m. UTC
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@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(-)

Comments

Simon Glass May 5, 2015, 8:56 p.m. UTC | #1
On 3 May 2015 at 14:12, Joe Hershberger <joe.hershberger@ni.com> wrote:
> 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@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(-)

Acked-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

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.