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.hershber...@ni.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v4: -Fixed bisectability issue Changes in v3: -New for version 3 Changes in v2: None configs/sandbox_defconfig | 1 + test/Kconfig | 7 +++++-- test/dm/Kconfig | 3 +-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 6b497b3..c3b5ecc 100644 --- a/configs/sandbox_defconfig +++ b/configs/sandbox_defconfig @@ -29,4 +29,5 @@ CONFIG_SOUND_SANDBOX=y CONFIG_USB=y CONFIG_USB_EMUL=y CONFIG_USB_STORAGE=y +CONFIG_UNIT_TEST=y CONFIG_UT_DM=y 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 0fa3074..e5b341e 100644 --- a/test/dm/Kconfig +++ b/test/dm/Kconfig @@ -1,7 +1,6 @@ config UT_DM bool "Enable driver model unit test command" - depends on SANDBOX - select UNIT_TEST + depends on SANDBOX && UNIT_TEST help This enables the 'ut dm' command which runs a series of unit tests on the driver model code. Each subsystem (uclass) is tested. -- 1.7.11.5 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot