From patchwork Sat Oct 1 10:10:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1685180 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=WQcjC2QA; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MfjYV0R7dz1yql for ; Sat, 1 Oct 2022 20:11:23 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 23EFF84D23; Sat, 1 Oct 2022 12:11:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.b="WQcjC2QA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 36BA284D29; Sat, 1 Oct 2022 12:11:08 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from smtp-relay-canonical-1.canonical.com (smtp-relay-canonical-1.canonical.com [185.125.188.121]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 93156848C2 for ; Sat, 1 Oct 2022 12:11:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heinrich.schuchardt@canonical.com Received: from LT2ubnt.fritz.box (ip-084-118-157-002.um23.pools.vodafone-ip.de [84.118.157.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id F08B23F4C1; Sat, 1 Oct 2022 10:11:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1664619065; bh=z68j/WOfpH4eiUqPqmS0ZuTiFzg1XxhkoPAMo2djJBs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=WQcjC2QA2zqL52d2py/d83gOLemHBEBsP28j/vI01EiXVyZGNykCOlX/MOhyL4RZJ 0LUSiP0Jj4uFSLnu0MODEZqstdc58+mXknQ0p9GPUCaNAiOk0TPuMCooRfs3ISl8+1 uQZZ0R6GMWwQuum4VWWy74SnGRG7LTnmECZygc7p1dQttnaGhis8AoF87CQ0jDEqS7 9zn4KIhoFK1Fr4oT/tvadSnlNqdwEZxrz9fy3/t6UHMgxfFwka+FNAVO+hHqOdt8vf zOXGW0WkYtnZsY+aDVxfAFdPLCq2qp012d+8+q1I0qpdOWGtuaGblGP72aVFZTr8OG BspUMlMzX/bBQ== From: Heinrich Schuchardt To: Simon Glass Cc: u-boot@lists.denx.de, Heinrich Schuchardt Subject: [PATCH] test: run boot tests only on sandbox Date: Sat, 1 Oct 2022 12:10:53 +0200 Message-Id: <20221001101053.59135-1-heinrich.schuchardt@canonical.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean 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 Reviewed-by: Simon Glass --- 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