]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
test: Move the unit tests to their own menu
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 20 May 2015 19:27:31 +0000 (14:27 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:43:17 +0000 (22:43 +0200)
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>
Acked-by: Simon Glass <sjg@chromium.org>
configs/sandbox_defconfig
test/Kconfig
test/dm/Kconfig

index 7b5ef2bc368d0a55ddcafde94870a89f6646fd05..25980173fef50b819c670a8a673d8d325a7ec5c2 100644 (file)
@@ -37,5 +37,6 @@ CONFIG_USB_EMUL=y
 CONFIG_USB_STORAGE=y
 CONFIG_DM_RTC=y
 CONFIG_ERRNO_STR=y
+CONFIG_UNIT_TEST=y
 CONFIG_UT_TIME=y
 CONFIG_UT_DM=y
index 32a974e28c8a82986bde2b3327933e0c757edff1..50d3a49c97470a60bf7686569d9f716c5f5ca8e6 100644 (file)
@@ -1,9 +1,14 @@
-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.
+         This does not require sandbox to be included, but it is most
+         often used there.
 
 config UT_TIME
        bool "Unit tests for time functions"
-       select UNIT_TEST
+       depends on UNIT_TEST
        help
          Enables the 'ut time' command which tests that the time functions
          work correctly. The test is fairly simple and will not catch all
index 0fa3074e9df1e66468e6a081ca4d4a58fe90ed1b..e5b341e523af151bb164b81c4b86557818c501d3 100644 (file)
@@ -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.