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 CB01AFD9E25 for ; Thu, 26 Feb 2026 23:50:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1B3A883F6E; Fri, 27 Feb 2026 00:49:31 +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="PTnU+6yt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2237C83F32; Fri, 27 Feb 2026 00:49:20 +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 6CD6183EC8 for ; Fri, 27 Feb 2026 00:49:14 +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-8cb38e6d164so185832285a.3 for ; Thu, 26 Feb 2026 15:49:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1772149753; x=1772754553; 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=HU5m6nNUc7ur8ir8q6DaaeMq8DUc0LoODB55TY5kQFI=; b=PTnU+6ytJyOomvGayxOD2XwJNVP8zRmw6rGjAmM1+iYH5b2vi90TT3Oja2nU1mvR/t JvqNHn0/4v+F3icIC0lLoLhcO7rybrcTBWoMmBYlzph1wtko4TWwUzC52+8gJSA3fgQt txWaj316WXkJDHk3WEpkOLbVPLhdoo24uhA7Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772149753; x=1772754553; 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=HU5m6nNUc7ur8ir8q6DaaeMq8DUc0LoODB55TY5kQFI=; b=SNGclU4Pc3C89Qq28BiS5foBj05x4xShdx0YwEks62z7kqxmpRfcwnkoR+XUOZyD/k 3IiZwac0YJVoW2ruNKWDeLIasRVdYVn9nWxAQ+Ifm3O4xedJPpLMgXd94Ge1A5b3dmrw 1FoFQjZ85ml86pEksAp61FXLPll7oyeQ5c5olp2+dQfPsP8x4J9U5Z4G9rEhVZg8zqVF 764ImjyuMaDt1ii5hxcmoguuwJPDSO/o2XSSQbS1axhWUrRVAfIS6/fqBfYJcKOii70c g0glxhYoNSqjT8C6KNUMB0OJFY/J7hg2jqvDIqBJs1E27/3CUt9BAOdf+jFT2pk39Wmg L2QA== X-Gm-Message-State: AOJu0YzjmA+0hHqP8QQctGaCFWLT5RqsgmKKPTx+EDt9849tHBGxI13O SKkiqNP/J4x6qL6oo2vKjLID93pqYrJFy71kjgOC5Hi4QmLRG4kQvi4NolybWLgoTVlphjrTHpV Ds+o= X-Gm-Gg: ATEYQzzf2VXeMcIQEDeyUyHZNaPc0SoeesKOT96qy0cnqgqzUzymJvu8EF8He27RrI0 JLr5r7Yh/nTBdCUihXDSzCbjfHNuZzmLPPXoi4KM0cVrVfMGc9bYnDamgf1dQCTua4Lru1btAPH N811Kl5gd6FQ6k7bxsqSfWk9OIskMSIZIZHw+5txYmdBfn1EdjkbmoQF33TnaroCrAXC9WxsMNn rVCRc78uHT+TUIVugoks9zYnjrcyaXUdcXlNw00yNAPT5ScrVlKJyVNy2G36mwCUMBE729SSEVL Z/DEWfkGUN+CMVQlMYP13Wkcy77Ay2Nrvy0iXjC1wM1xAXLpKJ72wLjrBsenVfOxC63NVWyr1t4 h28GSohIwVpl3upRHKUiukMgzt7MtlRbwmVeaURHH4nUWegkYrsxoacVN5XFFR3r0XnMaWmgRU/ ZbKu3pYh/Se0kYXCI1sXMpMvmxyd15 X-Received: by 2002:a05:620a:2549:b0:8ca:2cf9:8197 with SMTP id af79cd13be357-8cbc8e4f6b1mr99077485a.47.1772149752490; Thu, 26 Feb 2026 15:49:12 -0800 (PST) Received: from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8cbbf68a0fbsm322024385a.22.2026.02.26.15.49.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Feb 2026 15:49:11 -0800 (PST) From: Simon Glass To: u-boot@lists.denx.de Cc: Tom Rini , Quentin Schulz , Simon Glass , Alper Nebi Yasak , Bryan Brattlof , Jiaxun Yang , Neha Malcom Francis , Peng Fan , Philippe Reynes , Simon Glass , Stefan Herbrechtsmeier , Yannic Moog Subject: [RFC PATCH 15/16] binman: test: Move remaining test files to test/entry/ Date: Thu, 26 Feb 2026 16:47:55 -0700 Message-ID: <20260226234802.345968-16-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 the remaining 60 or so test files into an entry/ subdirectory. These cover general entry types and features: entry args, fill, text, env, compress, replace, template, collection, ELF, overlap, listing, sections, symlink, TEE OS, and other miscellaneous entries. Drop the numeric prefixes and update all references. Signed-off-by: Simon Glass --- doc/develop/binman_tests.rst | 2 +- tools/binman/fdt_test.py | 2 +- tools/binman/ftest.py | 160 +++++++++--------- .../test/{262_absent.dts => entry/absent.dts} | 0 .../collection.dts} | 0 .../collection_other.dts} | 0 .../collection_section.dts} | 0 .../{083_compress.dts => entry/compress.dts} | 0 .../compress_extra.dts} | 0 .../compress_image.dts} | 0 .../compress_image_less.dts} | 0 .../compress_section.dts} | 0 .../compress_section_size.dts} | 0 .../test/{096_elf.dts => entry/elf.dts} | 0 .../elf_strip.dts} | 0 .../entry_args.dts} | 0 .../entry_args_missing.dts} | 0 .../entry_args_required.dts} | 0 .../entry_args_unknown_datatype.dts} | 0 .../test/{174_env.dts => entry/env.dts} | 0 .../env_no_size.dts} | 0 .../env_too_small.dts} | 0 .../test/{084_files.dts => entry/files.dts} | 0 .../files_align.dts} | 0 .../files_compress.dts} | 0 .../files_no_pattern.dts} | 0 .../files_none.dts} | 0 .../test/{069_fill.dts => entry/fill.dts} | 0 .../fill_empty.dts} | 0 .../fill_no_size.dts} | 0 .../image_entryarg.dts} | 0 .../test/{127_list.dts => entry/list.dts} | 0 .../name_prefix.dts} | 0 .../test/{268_null.dts => entry/null.dts} | 0 .../offset_from_elf.dts} | 0 .../{269_overlap.dts => entry/overlap.dts} | 0 .../overlap_bad.dts} | 0 .../overlap_no_size.dts} | 0 .../overlap_null.dts} | 0 .../prop_test.dts} | 0 .../read_image_skip.dts} | 0 .../remove_template.dts} | 0 .../{132_replace.dts => entry/replace.dts} | 0 .../replace_all.dts} | 0 .../replace_multi.dts} | 0 .../replace_repack.dts} | 0 .../replace_section_deep.dts} | 0 .../replace_section_simple.dts} | 0 .../replace_with_bintool.dts} | 0 .../section_fname.dts} | 0 .../section_timeout.dts} | 0 .../{055_sections.dts => entry/sections.dts} | 0 .../{259_symlink.dts => entry/symlink.dts} | 0 .../test/{222_tee_os.dts => entry/tee_os.dts} | 0 .../tee_os_opt.dts} | 0 .../{286_template.dts => entry/template.dts} | 0 .../template_multi.dts} | 0 .../template_phandle.dts} | 0 .../template_phandle_dup.dts} | 0 .../template_section.dts} | 0 .../test/{066_text.dts => entry/text.dts} | 0 .../unique_names.dts} | 0 .../unique_names_multi.dts} | 0 .../unknown_contents.dts} | 0 .../unknown_pos_size.dts} | 0 65 files changed, 82 insertions(+), 82 deletions(-) rename tools/binman/test/{262_absent.dts => entry/absent.dts} (100%) rename tools/binman/test/{198_collection.dts => entry/collection.dts} (100%) rename tools/binman/test/{246_collection_other.dts => entry/collection_other.dts} (100%) rename tools/binman/test/{199_collection_section.dts => entry/collection_section.dts} (100%) rename tools/binman/test/{083_compress.dts => entry/compress.dts} (100%) rename tools/binman/test/{186_compress_extra.dts => entry/compress_extra.dts} (100%) rename tools/binman/test/{182_compress_image.dts => entry/compress_image.dts} (100%) rename tools/binman/test/{183_compress_image_less.dts => entry/compress_image_less.dts} (100%) rename tools/binman/test/{185_compress_section.dts => entry/compress_section.dts} (100%) rename tools/binman/test/{184_compress_section_size.dts => entry/compress_section_size.dts} (100%) rename tools/binman/test/{096_elf.dts => entry/elf.dts} (100%) rename tools/binman/test/{097_elf_strip.dts => entry/elf_strip.dts} (100%) rename tools/binman/test/{062_entry_args.dts => entry/entry_args.dts} (100%) rename tools/binman/test/{063_entry_args_missing.dts => entry/entry_args_missing.dts} (100%) rename tools/binman/test/{064_entry_args_required.dts => entry/entry_args_required.dts} (100%) rename tools/binman/test/{065_entry_args_unknown_datatype.dts => entry/entry_args_unknown_datatype.dts} (100%) rename tools/binman/test/{174_env.dts => entry/env.dts} (100%) rename tools/binman/test/{175_env_no_size.dts => entry/env_no_size.dts} (100%) rename tools/binman/test/{176_env_too_small.dts => entry/env_too_small.dts} (100%) rename tools/binman/test/{084_files.dts => entry/files.dts} (100%) rename tools/binman/test/{190_files_align.dts => entry/files_align.dts} (100%) rename tools/binman/test/{085_files_compress.dts => entry/files_compress.dts} (100%) rename tools/binman/test/{087_files_no_pattern.dts => entry/files_no_pattern.dts} (100%) rename tools/binman/test/{086_files_none.dts => entry/files_none.dts} (100%) rename tools/binman/test/{069_fill.dts => entry/fill.dts} (100%) rename tools/binman/test/{080_fill_empty.dts => entry/fill_empty.dts} (100%) rename tools/binman/test/{070_fill_no_size.dts => entry/fill_no_size.dts} (100%) rename tools/binman/test/{188_image_entryarg.dts => entry/image_entryarg.dts} (100%) rename tools/binman/test/{127_list.dts => entry/list.dts} (100%) rename tools/binman/test/{056_name_prefix.dts => entry/name_prefix.dts} (100%) rename tools/binman/test/{268_null.dts => entry/null.dts} (100%) rename tools/binman/test/{274_offset_from_elf.dts => entry/offset_from_elf.dts} (100%) rename tools/binman/test/{269_overlap.dts => entry/overlap.dts} (100%) rename tools/binman/test/{271_overlap_bad.dts => entry/overlap_bad.dts} (100%) rename tools/binman/test/{272_overlap_no_size.dts => entry/overlap_no_size.dts} (100%) rename tools/binman/test/{270_overlap_null.dts => entry/overlap_null.dts} (100%) rename tools/binman/test/{045_prop_test.dts => entry/prop_test.dts} (100%) rename tools/binman/test/{191_read_image_skip.dts => entry/read_image_skip.dts} (100%) rename tools/binman/test/{346_remove_template.dts => entry/remove_template.dts} (100%) rename tools/binman/test/{132_replace.dts => entry/replace.dts} (100%) rename tools/binman/test/{143_replace_all.dts => entry/replace_all.dts} (100%) rename tools/binman/test/{133_replace_multi.dts => entry/replace_multi.dts} (100%) rename tools/binman/test/{139_replace_repack.dts => entry/replace_repack.dts} (100%) rename tools/binman/test/{278_replace_section_deep.dts => entry/replace_section_deep.dts} (100%) rename tools/binman/test/{241_replace_section_simple.dts => entry/replace_section_simple.dts} (100%) rename tools/binman/test/{239_replace_with_bintool.dts => entry/replace_with_bintool.dts} (100%) rename tools/binman/test/{261_section_fname.dts => entry/section_fname.dts} (100%) rename tools/binman/test/{202_section_timeout.dts => entry/section_timeout.dts} (100%) rename tools/binman/test/{055_sections.dts => entry/sections.dts} (100%) rename tools/binman/test/{259_symlink.dts => entry/symlink.dts} (100%) rename tools/binman/test/{222_tee_os.dts => entry/tee_os.dts} (100%) rename tools/binman/test/{263_tee_os_opt.dts => entry/tee_os_opt.dts} (100%) rename tools/binman/test/{286_template.dts => entry/template.dts} (100%) rename tools/binman/test/{287_template_multi.dts => entry/template_multi.dts} (100%) rename tools/binman/test/{309_template_phandle.dts => entry/template_phandle.dts} (100%) rename tools/binman/test/{310_template_phandle_dup.dts => entry/template_phandle_dup.dts} (100%) rename tools/binman/test/{289_template_section.dts => entry/template_section.dts} (100%) rename tools/binman/test/{066_text.dts => entry/text.dts} (100%) rename tools/binman/test/{237_unique_names.dts => entry/unique_names.dts} (100%) rename tools/binman/test/{238_unique_names_multi.dts => entry/unique_names_multi.dts} (100%) rename tools/binman/test/{057_unknown_contents.dts => entry/unknown_contents.dts} (100%) rename tools/binman/test/{041_unknown_pos_size.dts => entry/unknown_pos_size.dts} (100%) diff --git a/doc/develop/binman_tests.rst b/doc/develop/binman_tests.rst index 2bdb7756465..78b02e6f435 100644 --- a/doc/develop/binman_tests.rst +++ b/doc/develop/binman_tests.rst @@ -402,7 +402,7 @@ Another type of test is one which checks error-handling, for example: def testFillNoSize(self): """Test for an fill entry type with no size""" with self.assertRaises(ValueError) as e: - self._DoReadFile('070_fill_no_size.dts') + self._DoReadFile('entry/fill_no_size.dts') self.assertIn("'fill' entry is missing properties: size", str(e.exception)) diff --git a/tools/binman/fdt_test.py b/tools/binman/fdt_test.py index ef659c0f276..ef81a3262d2 100644 --- a/tools/binman/fdt_test.py +++ b/tools/binman/fdt_test.py @@ -41,7 +41,7 @@ class TestFdt(unittest.TestCase): self._DeleteProp(dt) def testFdtNormalProp(self): - fname = self.GetCompiled('045_prop_test.dts') + fname = self.GetCompiled('entry/prop_test.dts') dt = FdtScan(fname) node = dt.GetNode('/binman/intel-me') self.assertEqual('intel-me', node.name) diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 0ca4d935dae..0f1a799821d 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -1431,7 +1431,7 @@ class TestFunctional(unittest.TestCase): def testUnknownPosSize(self): """Test that microcode must be placed within the image""" with self.assertRaises(ValueError) as e: - self._DoReadFile('041_unknown_pos_size.dts', True) + self._DoReadFile('entry/unknown_pos_size.dts', True) self.assertIn("Section '/binman': Unable to set offset/size for unknown " "entry 'invalid-entry'", str(e.exception)) @@ -1626,7 +1626,7 @@ class TestFunctional(unittest.TestCase): def testSections(self): """Basic test of sections""" - data = self._DoReadFile('055_sections.dts') + data = self._DoReadFile('entry/sections.dts') expected = (U_BOOT_DATA + tools.get_bytes(ord('!'), 12) + U_BOOT_DATA + tools.get_bytes(ord('a'), 12) + U_BOOT_DATA + tools.get_bytes(ord('&'), 4)) @@ -1634,7 +1634,7 @@ class TestFunctional(unittest.TestCase): def testMap(self): """Tests outputting a map of the images""" - _, _, map_data, _ = self._DoReadFileDtb('055_sections.dts', map=True) + _, _, map_data, _ = self._DoReadFileDtb('entry/sections.dts', map=True) self.assertEqual('''ImagePos Offset Size Name 00000000 00000000 00000028 image 00000000 00000000 00000010 section@0 @@ -1647,7 +1647,7 @@ class TestFunctional(unittest.TestCase): def testNamePrefix(self): """Tests that name prefixes are used""" - _, _, map_data, _ = self._DoReadFileDtb('056_name_prefix.dts', map=True) + _, _, map_data, _ = self._DoReadFileDtb('entry/name_prefix.dts', map=True) self.assertEqual('''ImagePos Offset Size Name 00000000 00000000 00000028 image 00000000 00000000 00000010 section@0 @@ -1659,7 +1659,7 @@ class TestFunctional(unittest.TestCase): def testUnknownContents(self): """Test that obtaining the contents works as expected""" with self.assertRaises(ValueError) as e: - self._DoReadFile('057_unknown_contents.dts', True) + self._DoReadFile('entry/unknown_contents.dts', True) self.assertIn("Image '/binman': Internal error: Could not complete " "processing of contents: remaining [" "