From 833443165142799cdb6bda1e73cefc9689e18db6 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Mon, 11 Feb 2019 18:29:24 +0100 Subject: test: call hexdump tests via `ut lib` The unit tests in test/lib/hexdump.c are not related to the device tree. So they should be executed via `ut lib` and not via `ut dm`. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Goldschmidt --- test/lib/hexdump.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/lib/hexdump.c b/test/lib/hexdump.c index 567b57686a5..5dccf438866 100644 --- a/test/lib/hexdump.c +++ b/test/lib/hexdump.c @@ -6,7 +6,8 @@ #include #include -#include +#include +#include #include static int lib_test_hex_to_bin(struct unit_test_state *uts) @@ -32,7 +33,7 @@ static int lib_test_hex_to_bin(struct unit_test_state *uts) return 0; } -DM_TEST(lib_test_hex_to_bin, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT); +LIB_TEST(lib_test_hex_to_bin, 0); static int lib_test_hex2bin(struct unit_test_state *uts) { @@ -62,7 +63,7 @@ static int lib_test_hex2bin(struct unit_test_state *uts) return 0; } -DM_TEST(lib_test_hex2bin, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT); +LIB_TEST(lib_test_hex2bin, 0); static int lib_test_bin2hex(struct unit_test_state *uts) { @@ -92,4 +93,4 @@ static int lib_test_bin2hex(struct unit_test_state *uts) return 0; } -DM_TEST(lib_test_bin2hex, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT); +LIB_TEST(lib_test_bin2hex, 0); -- cgit v1.2.3 From 0efe2b8f9ee2f459a2161e19ae1e66918c9f5c3b Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 7 Apr 2019 17:57:40 +0200 Subject: test: env: Enable env unit tests by default If CONFIG_UNIT_TEST is enabled we should enable the individual tests by default to ensure good test coverage. Reviewed-by: Simon Glass Signed-off-by: Heinrich Schuchardt --- test/env/Kconfig | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/env/Kconfig b/test/env/Kconfig index ff164132e93..6cb82337b36 100644 --- a/test/env/Kconfig +++ b/test/env/Kconfig @@ -1,6 +1,7 @@ config UT_ENV bool "Enable env unit tests" depends on UNIT_TEST + default y help This enables the 'ut env' command which runs a series of unit tests on the env code. -- cgit v1.2.3