Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0C3E606A32D for ; Fri, 4 Dec 2026 18:14:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=k5bixCyc; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=b0U3kO3l Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id CB2C083ACE; Fri, 4 Dec 2026 18:14:01 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id LfH9f60NgJMx; Fri, 4 Dec 2026 18:14:01 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 169A283ABE Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796408041; b=M+ns3oPQLdgfKthAZECm8j+cahnpEtgmD0oAyS+V4HfLrkgYxb0ymg4Tay799miwlyyy 0h0znsTMEOJ+cT/Kmw3htH8zrZKnjNvLOjUGszts/fIjZMGzCLOqpT4PG7qp4dan5kKYZ Lce9brNR+6A2JzmXMtAlkl4aoeuxCDFqT/HhD2eTCOFvAZvyMZBwpc1Y+FgUGG0PC4hlh xhQJgld2o5ybhs/segnT/xEVbIwO2MNW1mNsdeizVe1UHlctj32uYwshoobPcLo7rovIx cqZdlBu5Mg4JtB9uqAdMl1pmbHHelU3domGBZvVKnuwtwGa1Z6xUoUufYmqKM0EdYPA== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796408041; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg: X-Received:Received:From:Date:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc: X-Mailer:X-BeenThere:X-Mailman-Version:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Errors-To; bh=KMpzTtsHp+uVchak09AcrO/xVSIY+rKeAEM5/va9oPQ=; b=XsxSJ9V2sjhCHj6rPkbkMomzig01ISjAFJeqAe5d+hbxXzx6HqQZIsTUENT10XtFIsRI 9haV4Z4hECpjlsFqJBowHSPC5SoECf022DmlU6zJF2ea3ccjX3KuJdjbzF+8rcQMYuoIx ngQE6gkUMBk/mzT9L4hRGvyMNzEx56WiXiBooiPez8g/yg8HUFpZsHUyinSH4kK87BeUb bD9hiIBaXgmZwM+1EX5EEJ8wtIMv+EfNkk7A3aLE9FH0zpVps5YF1xf7eEr30AK1Jel5j P1v0poIVrmgLb3Zg30VYSDUNq9YTITke70rXgmu/db0sun9debjNSmn/daDv690NHnQ== ARC-Authentication-Results: i=1; smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796408041; bh=KMpzTtsHp+uVchak09AcrO/xVSIY+rKeAEM5/va9oPQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=k5bixCycMRFzbFHfhN88e4P6PhvG1dMwwiUr+/j9KldYq93e2fRZZ6DyHHfQu1mfv 3dvWcHxJrEuJ7HMmrm1GY0qnl+SgrAzrsYNucLSWAu0Ha0KCISsjSWjBsMJ2AtueXS cIjdDjecx7pAGRficyFwW3KEbu1borUufeGHjpk2YAFRvtz9mNMkXrCV2bCEKxb8m/ Neufg6nNVib9tl0irVCFF7mLPULBKIOhWrgf9Xd76Cv4jBEZ7u+YawwLLISVJcnpY5 T6EGnK009DqgvU2wcF+OlVfy6Wx0o6sjfIVrdTl4GSbSZr/EjO2OmDcov0fadI9Jbb io30CL+8THmCA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 169A283ABE; Fri, 4 Dec 2026 18:14:01 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists1.osuosl.org (Postfix) with ESMTP id 038ADBF4 for ; Fri, 4 Dec 2026 18:13:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id D5C7040ECE for ; Fri, 4 Dec 2026 18:13:54 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id GoH2qkZN1SsV for ; Fri, 4 Dec 2026 18:13:54 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org ECBED40E04 Authentication-Results: smtp4.osuosl.org; arc=none smtp.remote-ip="2a00:1450:4864:20::436" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::436; helo=mail-wr1-x436.google.com; envelope-from=andrew.goodbody@linaro.org; receiver= Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=b0U3kO3l Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by smtp4.osuosl.org (Postfix) with ESMTPS id ECBED40E04 for ; Fri, 4 Dec 2026 18:13:52 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-4a5024b3c28so1368502f8f.0 for ; Fri, 04 Dec 2026 10:13:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796408030; x=1797012830; darn=lists.u-boot-project.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=KMpzTtsHp+uVchak09AcrO/xVSIY+rKeAEM5/va9oPQ=; b=b0U3kO3lgxaOKKUO3pK2NaCrRxRNgQBphAD4pxKPbIAe2Fiqg/A1au547lB+KXaqeY bhnJFecIO/Caxn0uSAB+l6hqdtBUAXotsYw9XoY+09zaRqgrEuQ5FO2SueXpLatAPtRI /9Mkt54fqD+08KZasP8uAcKcXzTq8py0byondlISwE5rNagmhKseZ/xXSuIFBOyM+Wx+ NU5QCnzzVsuVBhx4Se3Oz7WuYcnMa94Pu2yOdl/BZ3hXzHHPC3z17WgkOFH/L5Mg3fZk kM9ZWKoGoUIbjp4343rQqNuaFDpx8T/Zwbin3zlbuQPmJ5onW85bM+0LfzZQ4R6vbQik nlGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796408030; x=1797012830; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=KMpzTtsHp+uVchak09AcrO/xVSIY+rKeAEM5/va9oPQ=; b=TgoSn5wyf3vHNKZ5jmKSHDaA520qtDHk687dCTLPrWPILwgLq/0Cu20aUfEIc97VuG wDa8xSCZRXxeOxcnu9doxSvj2MjF76ztu9ohKBPkavvIFQx54e+0gtjK1kN6U1vTJKdE 6B7vT5RNsHyZYxesHgnq6YSycZlnvUumtaRwYm8KiLQK2twzYuK/s+vqRN4gQBGUBkJ9 GivB61+ZFqa+iRtd9JwIk/KdSKg021bJddwHSyZca+mEnGF57E+9bDjkasFi1K5sdgWn j6XwbS3qHzOxY32JWSOp8WXfUXmrgyoK+YoJWS+faLmlPz62fswAEWHG2ivkw/9cVshp /W2Q== X-Gm-Message-State: AB4q+uFFYEU9LqdC7euk6gc9V7h3Ch1aEBcLrSMxbWqQMXltvDl5oUFB PmwpV+IxlQvZ0eC3lzjBXIPEhsoNSrVWaDFvokM2RFJE9s1aJvI7StumiIgxxeBnwz4= X-Gm-Gg: AZFdTZeJiggGz8ZCA5QDuUKDfF6DMR++qj+EKQRB+xwzbnEZlZlgfvnf/sxhu7TSEoB VzvIogDokrqRhb49rS8LudKNFhsYyUv8WK/K0SbwHnfwI4Qz4KqswSqk8zE1cDXzO9NKuDghcyL equw+sEicW+xqm3QLz5C+UCNPv2THLCJ2tptr2h4X45u5JcekHv7f645lnf00z99z9s+ECLe+lC ECRhSv3qRW/3XJQzef1UfXBY6NCvyzTHxd+RzMCxLjiVocmJmzlwTQnnlrIJf8AEGfhsaWb2/od hqGQRwKiLF4jCow4/n66y3UC4qvF5udfVwSwzuX28//mvs31sI7Sz1dhqgdPKT2/VyFxmsRDeYq 58dxHmBZso3iJTrnHdyz36HcN5zJGgTGQZs9TUKROIh3lEjALW52yTEQCwk/9TnNt9IpUzTEYyK hv8lUb+xG2Z/KBGdwWIh9J6B0PUWWQOUTF4A90DeguY9hNF8J6JO1Thd3y+NZR36POBvObriBom TN/yuKEA7d7mHnAHFfvmUn3HUkUBSMgCOWK2tE1AZusivCM8065gO4c6WYqIl91QszYl5terSbo PdOk/o7SbKe27jQ5aMXKwcNRnzUJyfEhO7VyildZiIm7WDob X-Received: by 2002:a05:6000:2909:b0:492:2b36:a149 with SMTP id ffacd0b85a97d-4cf4bb393b1mr13484187f8f.25.1796408029996; Fri, 04 Dec 2026 10:13:49 -0800 (PST) Received: from artemis3.elfringham ([2a0a:ef40:ee3:3401:7071:3a81:cc99:9c2c]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d174452809sm6915361f8f.53.2026.12.04.10.13.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 10:13:49 -0800 (PST) From: Andrew Goodbody Date: Fri, 04 Dec 2026 18:13:42 +0000 Subject: [PATCH v4 07/14] dtoc: test: Fix coverage by adding test X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261204-qcheck_fix-v4-7-3cdf2e164297@linaro.org> References: <20261204-qcheck_fix-v4-0-3cdf2e164297@linaro.org> In-Reply-To: <20261204-qcheck_fix-v4-0-3cdf2e164297@linaro.org> To: u-boot@lists.u-boot-project.org, Kory Maincent , Linus Walleij , Ilias Apalodimas Cc: Andrew Goodbody , Tom Rini , Anshul Dalal , Alexey Charkov , Heinrich Schuchardt , Mattijs Korpershoek , Carlo Caione , Yao Zi , Michal Simek , Quentin Schulz , Marek Vasut X-Mailer: b4 0.16.0 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-19.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Use of 'indir' in EnsureCompiled() was not being tested and resulted in less than 100% code coverage. Add a test and supporting files that depends on the use of 'indir' by placing an included file in a new directory. The dts file will fail to compile if the new directory is not added to the search path with the use of 'indir'. Reviewed-by: Quentin Schulz Signed-off-by: Andrew Goodbody --- tools/dtoc/test/dtoc_test_include.dts | 13 +++++++++++++ tools/dtoc/test/newinclude/dtoc_test_include_file.dtsi | 7 +++++++ tools/dtoc/test_fdt.py | 7 +++++++ 3 files changed, 27 insertions(+) diff --git a/tools/dtoc/test/dtoc_test_include.dts b/tools/dtoc/test/dtoc_test_include.dts new file mode 100644 index 00000000000..cb19389d889 --- /dev/null +++ b/tools/dtoc/test/dtoc_test_include.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Test device tree file for dtoc + * + * Copyright 2017 Google, Inc + */ + +/dts-v1/; + +#include "dtoc_test_include_file.dtsi" + +/ { +}; diff --git a/tools/dtoc/test/newinclude/dtoc_test_include_file.dtsi b/tools/dtoc/test/newinclude/dtoc_test_include_file.dtsi new file mode 100644 index 00000000000..f975005d023 --- /dev/null +++ b/tools/dtoc/test/newinclude/dtoc_test_include_file.dtsi @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/ { + new_node { + intval = <2>; + }; +}; diff --git a/tools/dtoc/test_fdt.py b/tools/dtoc/test_fdt.py index 66d346b1272..a63c860eae1 100755 --- a/tools/dtoc/test_fdt.py +++ b/tools/dtoc/test_fdt.py @@ -1105,6 +1105,13 @@ class TestFdtUtil(unittest.TestCase): finally: tools.outdir = old_outdir + def test_ensure_compiled_indir(self): + """Test providing directory as indir""" + indir = os.path.dirname(find_dtb_file('dtoc_test_include.dts')) + indir = os.path.join(indir, 'newinclude') + dtb = fdt_util.EnsureCompiled(find_dtb_file('dtoc_test_include.dts'), indir=[indir]) + self.assertEqual(dtb, fdt_util.EnsureCompiled(dtb)) + def test_get_phandle_name_offset(self): val = fdt_util.GetPhandleNameOffset(self.node, 'missing') self.assertIsNone(val) -- 2.47.3