Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B1BEDFD9E1E for ; Thu, 26 Feb 2026 23:49:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EE3C283F93; Fri, 27 Feb 2026 00:49:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="kWUbOCPs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D180583F4E; Fri, 27 Feb 2026 00:49:08 +0100 (CET) Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4586583F39 for ; Fri, 27 Feb 2026 00:49:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-8cb40149037so145677385a.2 for ; Thu, 26 Feb 2026 15:49:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1772149739; x=1772754539; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9g5Guy7n83H3xtYV+5nuxSvROpBkoazCwXd1evsd8a0=; b=kWUbOCPsa2p1SJakcj9d3Sxb2xGznPEK/wa1J8mhvqQdPSR5Zl7ezWNoFNXuz7EKQw 6JqHIy/QVharLfMKHPYkIpLl50RLoMsfDEpLDqCra4T2fGOmxwDIYF8c80XJP1IgNsul F7lnZfwFe6PZ/t9/oZ2Kk3R25xHNZ38Ud+Wfg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772149739; x=1772754539; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=9g5Guy7n83H3xtYV+5nuxSvROpBkoazCwXd1evsd8a0=; b=EqOKUVR8p94ppx0Fo7OU9b2cZ2N5OtSpYvbT29Atrv6PwU0nUYBRcH/P2lz7VgkNgU KVcixvNtbBPKpfQsLLOr5XGt8dmxu5eYlkmwJGsQK8vJBrfBpMYG+KM6szzdK6SJXO36 UWEpZPkJP7yGWUFkOx9pB4l6c4uYLIak6iUrgZHyvyot+4Fbg4vCyIFJNzICEa7534eB aN9/YWQRSIxu9VbN2pnFd76G72u5oIZHWkMp5vicyzMBQaGN5rflIP2dAOoQuAvWNuUc o86Zi4BdnTQTovgXfVlAkJwYhZrAC9mrtxla8Jm3iPRHg5nIJF1I2KwSte5+5u+3xur+ veqQ== X-Gm-Message-State: AOJu0YxFul/Xc2htjYsx9y4n0GNzANYjnKMn0PfoRyOBNg9PIdK1x5Ts mDlQB0bDFkyvWlefMWct2/U0w9V0FvrXwiu/upmr5a1x3LD+GgkaZF4vACfEI+wd4Ki9J9HcbKf oyyE= X-Gm-Gg: ATEYQzyjjlOdKswUwASfqE8BsKf6bx9cxQd9kC2XCg6FfWzyejdBcRERZKLjO/uwPpV b2l/q0d7DAa5jf5E+s5RpsiXuxv6gvwhTbHJCMIRqSzlY7tXkIXRqJdXuKUaFU7mcBXhaIog0hk 3i4H4Ra0mErt3+7v3xwqBwAYeMgFRzI4XQBxm+ibCtuDvgnf+Bl17p2A5agfzHcqVfnFLxt98XB beybzB9LzmiaWsV8eLOChxp4JnhGfdb01vA0gVppJjtb75fsVS0tye72wUwsxXlDQqfDnzXxvQB PP8roN9LqyzfI16gSIl4Fm7E3q31omO5lSO/hhhe4eIizIuAXL7r26oI3Nw63Uj/Sz3yFfMmNqw Q6zh2axpuHksP0yFy0vRHXhtrIYbKjYsvBuz2l1w7o90bRVOb/8fn0havCiC0mf97Jnf+iJimho Wca/d8/BLNMdyeO1mqPg== X-Received: by 2002:a05:620a:1905:b0:8cb:b22c:90f8 with SMTP id af79cd13be357-8cbc8de8614mr118850285a.49.1772149739473; Thu, 26 Feb 2026 15:48:59 -0800 (PST) Received: from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8cbbf68a0fbsm322024385a.22.2026.02.26.15.48.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Feb 2026 15:48:58 -0800 (PST) From: Simon Glass To: u-boot@lists.denx.de Cc: Tom Rini , Quentin Schulz , Simon Glass , Alper Nebi Yasak , Bryan Brattlof , Neha Malcom Francis , Peng Fan , Philippe Reynes , Simon Glass , Stefan Herbrechtsmeier , Yannic Moog Subject: [RFC PATCH 09/16] binman: test: Move ChromeOS test files to test/cros/ Date: Thu, 26 Feb 2026 16:47:49 -0700 Message-ID: <20260226234802.345968-10-sjg@chromium.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260226234802.345968-1-sjg@chromium.org> References: <20260226234802.345968-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.8 at phobos.denx.de X-Virus-Status: Clean From: Simon Glass Move about 10 test files for ChromeOS entries (GBB, vblock, FMAP) into a cros/ subdirectory. Drop the numeric prefixes and update all references. Signed-off-by: Simon Glass --- doc/develop/binman_tests.rst | 2 +- tools/binman/ftest.py | 22 +++++++++---------- .../test/{067_fmap.dts => cros/fmap.dts} | 0 .../binman/test/{071_gbb.dts => cros/gbb.dts} | 0 .../gbb_no_size.dts} | 0 .../gbb_too_small.dts} | 0 .../test/{074_vblock.dts => cros/vblock.dts} | 0 .../vblock_bad_entry.dts} | 0 .../vblock_bad_phandle.dts} | 0 .../vblock_content.dts} | 0 .../vblock_no_content.dts} | 0 11 files changed, 12 insertions(+), 12 deletions(-) rename tools/binman/test/{067_fmap.dts => cros/fmap.dts} (100%) rename tools/binman/test/{071_gbb.dts => cros/gbb.dts} (100%) rename tools/binman/test/{073_gbb_no_size.dts => cros/gbb_no_size.dts} (100%) rename tools/binman/test/{072_gbb_too_small.dts => cros/gbb_too_small.dts} (100%) rename tools/binman/test/{074_vblock.dts => cros/vblock.dts} (100%) rename tools/binman/test/{077_vblock_bad_entry.dts => cros/vblock_bad_entry.dts} (100%) rename tools/binman/test/{076_vblock_bad_phandle.dts => cros/vblock_bad_phandle.dts} (100%) rename tools/binman/test/{189_vblock_content.dts => cros/vblock_content.dts} (100%) rename tools/binman/test/{075_vblock_no_content.dts => cros/vblock_no_content.dts} (100%) diff --git a/doc/develop/binman_tests.rst b/doc/develop/binman_tests.rst index 745ca259d44..c7fa9ae6199 100644 --- a/doc/develop/binman_tests.rst +++ b/doc/develop/binman_tests.rst @@ -436,7 +436,7 @@ correct. You can to this with ``terminal.capture()``, for example: .. code-block:: python with terminal.capture() as (_, stderr): - self._DoTestFile('071_gbb.dts', force_missing_bintools='futility', + self._DoTestFile('cros/gbb.dts', force_missing_bintools='futility', entry_args=entry_args) err = stderr.getvalue() self.assertRegex(err, "Image 'image'.*missing bintools.*: futility") diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 5284fd3a11a..c2cea9e6618 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -1816,7 +1816,7 @@ class TestFunctional(unittest.TestCase): def testFmap(self): """Basic test of generation of a flashrom fmap""" - data = self._DoReadFile('067_fmap.dts') + data = self._DoReadFile('cros/fmap.dts') fhdr, fentries = fmap_util.DecodeFmap(data[32:]) expected = (U_BOOT_DATA + tools.get_bytes(ord('!'), 12) + U_BOOT_DATA + tools.get_bytes(ord('a'), 12)) @@ -1898,7 +1898,7 @@ class TestFunctional(unittest.TestCase): 'keydir': 'devkeys', 'bmpblk': 'bmpblk.bin', } - data, _, _, _ = self._DoReadFileDtb('071_gbb.dts', entry_args=entry_args) + data, _, _, _ = self._DoReadFileDtb('cros/gbb.dts', entry_args=entry_args) # Since futility expected = (GBB_DATA + GBB_DATA + tools.get_bytes(0, 8) + @@ -1908,14 +1908,14 @@ class TestFunctional(unittest.TestCase): def testGbbTooSmall(self): """Test for the Chromium OS Google Binary Block being large enough""" with self.assertRaises(ValueError) as e: - self._DoReadFileDtb('072_gbb_too_small.dts') + self._DoReadFileDtb('cros/gbb_too_small.dts') self.assertIn("Node '/binman/gbb': GBB is too small", str(e.exception)) def testGbbNoSize(self): """Test for the Chromium OS Google Binary Block having a size""" with self.assertRaises(ValueError) as e: - self._DoReadFileDtb('073_gbb_no_size.dts') + self._DoReadFileDtb('cros/gbb_no_size.dts') self.assertIn("Node '/binman/gbb': GBB must have a fixed size", str(e.exception)) @@ -1925,7 +1925,7 @@ class TestFunctional(unittest.TestCase): 'keydir': 'devkeys', } with terminal.capture() as (_, stderr): - self._DoTestFile('071_gbb.dts', force_missing_bintools='futility', + self._DoTestFile('cros/gbb.dts', force_missing_bintools='futility', entry_args=entry_args) err = stderr.getvalue() self.assertRegex(err, "Image 'image'.*missing bintools.*: futility") @@ -1966,7 +1966,7 @@ class TestFunctional(unittest.TestCase): entry_args = { 'keydir': 'devkeys', } - data, _, _, _ = self._DoReadFileDtb('074_vblock.dts', + data, _, _, _ = self._DoReadFileDtb('cros/vblock.dts', entry_args=entry_args) expected = U_BOOT_DATA + VBLOCK_DATA + U_BOOT_DTB_DATA self.assertEqual(expected, data) @@ -1974,21 +1974,21 @@ class TestFunctional(unittest.TestCase): def testVblockNoContent(self): """Test we detect a vblock which has no content to sign""" with self.assertRaises(ValueError) as e: - self._DoReadFile('075_vblock_no_content.dts') + self._DoReadFile('cros/vblock_no_content.dts') self.assertIn("Node '/binman/vblock': Collection must have a 'content' " 'property', str(e.exception)) def testVblockBadPhandle(self): """Test that we detect a vblock with an invalid phandle in contents""" with self.assertRaises(ValueError) as e: - self._DoReadFile('076_vblock_bad_phandle.dts') + self._DoReadFile('cros/vblock_bad_phandle.dts') self.assertIn("Node '/binman/vblock': Cannot find node for phandle " '1000', str(e.exception)) def testVblockBadEntry(self): """Test that we detect an entry that points to a non-entry""" with self.assertRaises(ValueError) as e: - self._DoReadFile('077_vblock_bad_entry.dts') + self._DoReadFile('cros/vblock_bad_entry.dts') self.assertIn("Node '/binman/vblock': Cannot find entry for node " "'other'", str(e.exception)) @@ -2000,7 +2000,7 @@ class TestFunctional(unittest.TestCase): 'keydir': 'devkeys', } data = self._DoReadFileDtb( - '189_vblock_content.dts', use_real_dtb=True, update_dtb=True, + 'cros/vblock_content.dts', use_real_dtb=True, update_dtb=True, entry_args=entry_args)[0] hashlen = 32 # SHA256 hash is 32 bytes self.assertEqual(U_BOOT_DATA, data[:len(U_BOOT_DATA)]) @@ -2021,7 +2021,7 @@ class TestFunctional(unittest.TestCase): 'keydir': 'devkeys', } with terminal.capture() as (_, stderr): - self._DoTestFile('074_vblock.dts', + self._DoTestFile('cros/vblock.dts', force_missing_bintools='futility', entry_args=entry_args) err = stderr.getvalue() diff --git a/tools/binman/test/067_fmap.dts b/tools/binman/test/cros/fmap.dts similarity index 100% rename from tools/binman/test/067_fmap.dts rename to tools/binman/test/cros/fmap.dts diff --git a/tools/binman/test/071_gbb.dts b/tools/binman/test/cros/gbb.dts similarity index 100% rename from tools/binman/test/071_gbb.dts rename to tools/binman/test/cros/gbb.dts diff --git a/tools/binman/test/073_gbb_no_size.dts b/tools/binman/test/cros/gbb_no_size.dts similarity index 100% rename from tools/binman/test/073_gbb_no_size.dts rename to tools/binman/test/cros/gbb_no_size.dts diff --git a/tools/binman/test/072_gbb_too_small.dts b/tools/binman/test/cros/gbb_too_small.dts similarity index 100% rename from tools/binman/test/072_gbb_too_small.dts rename to tools/binman/test/cros/gbb_too_small.dts diff --git a/tools/binman/test/074_vblock.dts b/tools/binman/test/cros/vblock.dts similarity index 100% rename from tools/binman/test/074_vblock.dts rename to tools/binman/test/cros/vblock.dts diff --git a/tools/binman/test/077_vblock_bad_entry.dts b/tools/binman/test/cros/vblock_bad_entry.dts similarity index 100% rename from tools/binman/test/077_vblock_bad_entry.dts rename to tools/binman/test/cros/vblock_bad_entry.dts diff --git a/tools/binman/test/076_vblock_bad_phandle.dts b/tools/binman/test/cros/vblock_bad_phandle.dts similarity index 100% rename from tools/binman/test/076_vblock_bad_phandle.dts rename to tools/binman/test/cros/vblock_bad_phandle.dts diff --git a/tools/binman/test/189_vblock_content.dts b/tools/binman/test/cros/vblock_content.dts similarity index 100% rename from tools/binman/test/189_vblock_content.dts rename to tools/binman/test/cros/vblock_content.dts diff --git a/tools/binman/test/075_vblock_no_content.dts b/tools/binman/test/cros/vblock_no_content.dts similarity index 100% rename from tools/binman/test/075_vblock_no_content.dts rename to tools/binman/test/cros/vblock_no_content.dts -- 2.43.0