From patchwork Tue Aug 19 19:39:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 37 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755632440; bh=zr5AG9c4mSGEI28cYtq2M13rOESuyfZXcIVImDOVQzE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=T/Th8t1qp8G2+O+2RoFH8IVytW0XLx1y3kfepHZ8SCoWjFO0KsHVv+zJTTNv2E3y/ MBBe7bYX5Kbq5tUHswEZciyMXNbV5wBdmKVfEnHRQhUC0r6nwr/eBWSaqRLfI8bJrR uh6oNHdIh8OJJQIaC9DvUa4AWP8QO3eL/A3dMbDcl5SsGbfLypjSEjPgGOqZalvwbg tkgdQQ7iJCJLCsE370WpQAGNuJeBnT9a2gLIUiVxSgVPAna6zHsXfPoS2Vq7I01UO9 x22jj0dn3P4M2JKv1tSJNiaYlFTIS4ITNkVJz9PxCElZt6uAHjDeFT6E2kLTZVUoyX 1YGgrnx916P9A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2F16E67612 for ; Tue, 19 Aug 2025 13:40:40 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id fQpjNP5G6aNm for ; Tue, 19 Aug 2025 13:40:40 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755632440; bh=zr5AG9c4mSGEI28cYtq2M13rOESuyfZXcIVImDOVQzE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=T/Th8t1qp8G2+O+2RoFH8IVytW0XLx1y3kfepHZ8SCoWjFO0KsHVv+zJTTNv2E3y/ MBBe7bYX5Kbq5tUHswEZciyMXNbV5wBdmKVfEnHRQhUC0r6nwr/eBWSaqRLfI8bJrR uh6oNHdIh8OJJQIaC9DvUa4AWP8QO3eL/A3dMbDcl5SsGbfLypjSEjPgGOqZalvwbg tkgdQQ7iJCJLCsE370WpQAGNuJeBnT9a2gLIUiVxSgVPAna6zHsXfPoS2Vq7I01UO9 x22jj0dn3P4M2JKv1tSJNiaYlFTIS4ITNkVJz9PxCElZt6uAHjDeFT6E2kLTZVUoyX 1YGgrnx916P9A== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 1A891675EE for ; Tue, 19 Aug 2025 13:40:40 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755632439; bh=fYe98cNXtdgxti9VO+9zctYfsInz19hv5DnuxzIH1nA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oQhfcXmemGYczQq4/0sPP9ijC25YbnNIvGfLk0EbitvyjOzKbVYHVz5tTJbki1zzK qbcUqD8Uvl1rrzKYdxE9/PYJXSA9YhW5j/dGlwJRpRrj6L0jZISk+1mhfQTM8LlQ+z xReOZYVHXPBkrgg4lt+g5IGubgbUE3EOYAnyyIzHbNgY2E/Zhqzn/hJlCCnOHQEIqF dweOOv5ldQo8FAzFtuxp9OdOegAQxRjmorpOx5EfRc56WiGiUZImuXGa7U8y59/zVc BJoVDTARx74jLIFOprxjlQMri6t7dnsauEB3svy0p49EkWMpN5QBCaT9zwwZRQCRjE p3ODXhzw/ILSw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3E92A5E436; Tue, 19 Aug 2025 13:40:39 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id 1sPqlz7w87E2; Tue, 19 Aug 2025 13:40:39 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755632434; bh=+0M9Bfw/HHN3g5IYOP6HeQyZ0Fu+Pgw7xKJc8gic7+w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fw3FYLLC0miRjFBDtBQmDLb8JzKEcYl4Wgxhrb8k0T2//pcKK+siAIbOX+p2LFl4w PB55xr5Pn1BOnlVfCt8jBneAmJ/FvYHDhK0QRYK7Ket6ePyDnpLuAFxHOJxX/SSzxN M59SymqXCoNwwR+pQozcTC0grNCOMY9swKcsVThlnIBKvqIFen7Tv/rdzK8LTZNLnB FlqylvOHmJRJsW1m1ZKuZhcSukyY4XXzhPnmWQBB0MTIvgLc8e/bIVXfw/NwyCRvgH vHWHuDm0Z5QimccqBVlJdauuehkm92xTCRLDhkyf0z+hpe5WNRIBSAWAtV8DQLVCSw haqAAkC0e86Jw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 15AC06760D; Tue, 19 Aug 2025 13:40:34 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 13:39:10 -0600 Message-ID: <20250819193918.874215-15-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819193918.874215-1-sjg@u-boot.org> References: <20250819193918.874215-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: SMJ3AVSWNUIDLS3H7Z3MCDZQQ4O2VVNL X-Message-ID-Hash: SMJ3AVSWNUIDLS3H7Z3MCDZQQ4O2VVNL X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 14/15] test/run: Tidy up the tool path for binman List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Binman needs access to tools like mkimage and cbfstool to run all the tests. Set up the TOOLS_DIR earlier and allow use of a TOOLS_DIR environment variable to specify where the tools are. This can be used from CI, for example. Signed-off-by: Simon Glass --- test/run | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/run b/test/run index 1f60fc8fb61..f6d39989fb8 100755 --- a/test/run +++ b/test/run @@ -90,9 +90,12 @@ fi DTC_DIR=$(pwd)/build-sandbox_spl/scripts/dtc export PYTHONPATH=${DTC_DIR}/pylibfdt export DTC=${DTC_DIR}/dtc -TOOLS_DIR=build-sandbox_spl/tools +TOOLS_DIR=$(pwd)/build-sandbox_spl/tools -run_test "binman" ./tools/binman/binman --toolpath ${TOOLS_DIR} test +# TOOLPATH may be defined to provide mkimage, cbfstool, etc. +export PATH=$PATH:${TOOLS_DIR} + +run_test "binman" ./tools/binman/binman ${TOOLPATH} test run_test "patman" ./tools/patman/patman test run_test "u_boot_pylib" ./tools/u_boot_pylib/u_boot_pylib @@ -106,8 +109,7 @@ run_test "dtoc" ./tools/dtoc/dtoc -t # Code-coverage tests cannot run in parallel, so skip them in that case if [ -z "${para}" ]; then - export PATH=$PATH:${TOOLS_DIR} - run_test "binman code coverage" ./tools/binman/binman test -T + run_test "binman code coverage" ./tools/binman/binman ${TOOLPATH} test -T run_test "dtoc code coverage" ./tools/dtoc/dtoc -T run_test "fdt code coverage" ./tools/dtoc/test_fdt -T fi