u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH] test: run boot tests only on sandbox
@ 2022-10-01 10:10 Heinrich Schuchardt
  2022-10-03  1:10 ` Simon Glass
  0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2022-10-01 10:10 UTC (permalink / raw)
  To: Simon Glass; +Cc: u-boot, Heinrich Schuchardt

Building test/boot fails on qemu-riscv64_smode_defconfig with

    test/boot/bootdev.c:178: undefined reference to `usb_started'

Checking CONFIG_UNIT_TEST is already done in /Makefile, no need to
repeat it in /test/Makefile.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 test/Makefile | 4 ++--
 test/cmd_ut.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/Makefile b/test/Makefile
index 178773647a..2b3de3e54d 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -26,8 +26,8 @@ obj-$(CONFIG_UT_TIME) += time_ut.o
 obj-y += ut.o
 
 ifeq ($(CONFIG_SPL_BUILD),)
-obj-$(CONFIG_UNIT_TEST) += boot/
-obj-$(CONFIG_UNIT_TEST) += common/
+obj-$(CONFIG_SANDBOX) += boot/
+obj-y += common/
 obj-y += log/
 obj-$(CONFIG_$(SPL_)UT_UNICODE) += unicode_ut.o
 endif
diff --git a/test/cmd_ut.c b/test/cmd_ut.c
index 3789c6b784..63443cfa6f 100644
--- a/test/cmd_ut.c
+++ b/test/cmd_ut.c
@@ -28,7 +28,7 @@ int cmd_ut_category(const char *name, const char *prefix,
 
 static struct cmd_tbl cmd_ut_sub[] = {
 	U_BOOT_CMD_MKENT(all, CONFIG_SYS_MAXARGS, 1, do_ut_all, "", ""),
-#ifdef CONFIG_BOOTSTD
+#if defined(CONFIG_BOOTSTD) && defined(CONFIG_SANDBOX)
 	U_BOOT_CMD_MKENT(bootstd, CONFIG_SYS_MAXARGS, 1, do_ut_bootstd,
 			 "", ""),
 #endif
-- 
2.37.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] test: run boot tests only on sandbox
  2022-10-01 10:10 [PATCH] test: run boot tests only on sandbox Heinrich Schuchardt
@ 2022-10-03  1:10 ` Simon Glass
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2022-10-03  1:10 UTC (permalink / raw)
  To: Heinrich Schuchardt; +Cc: U-Boot Mailing List

Hi Heinrich,

On Sat, 1 Oct 2022 at 04:11, Heinrich Schuchardt
<heinrich.schuchardt@canonical.com> wrote:
>
> Building test/boot fails on qemu-riscv64_smode_defconfig with
>
>     test/boot/bootdev.c:178: undefined reference to `usb_started'
>
> Checking CONFIG_UNIT_TEST is already done in /Makefile, no need to
> repeat it in /test/Makefile.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
>  test/Makefile | 4 ++--
>  test/cmd_ut.c | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

How are you seeing this failure? It is not in CI.


- Simon

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-03  1:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-01 10:10 [PATCH] test: run boot tests only on sandbox Heinrich Schuchardt
2022-10-03  1:10 ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).