[RFC PATCH 07/16] binman: test: Move security test files to test/security/

Quentin Schulz quentin.schulz at cherry.de
Tue Mar 3 15:20:12 CET 2026


Hi Simon,

On 2/27/26 12:47 AM, Simon Glass wrote:
> From: Simon Glass <simon.glass at canonical.com>
> 
> Move about 20 test files for signing, encryption, hash, pre-load,
> x509, and Xilinx bootgen entries into a security/ subdirectory. Drop
> the numeric prefixes and update all references.
> 

What about key.key, key.pem, dev.key (seems shared with tests in fit/ 
but duplication/symlink should be fine I guess?)?

In a separate commit though.

> Signed-off-by: Simon Glass <simon.glass at canonical.com>
> ---
> 
>   tools/binman/ftest.py                         | 52 +++++++++----------
>   .../encrypted_invalid_iv_file.dts}            |  0
>   .../encrypted_key_file.dts}                   |  0
>   .../encrypted_key_source.dts}                 |  0
>   .../encrypted_missing_key.dts}                |  0
>   .../encrypted_no_algo.dts}                    |  0
>   .../test/{090_hash.dts => security/hash.dts}  |  0
>   .../hash_bad_algo.dts}                        |  0
>   .../hash_no_algo.dts}                         |  0
>   .../hash_section.dts}                         |  0
>   .../key_name_hint_dir_spl_pubkey_dtb.dts}     |  0
>   .../pre_load.dts}                             |  0
>   .../pre_load_invalid_algo.dts}                |  0
>   .../pre_load_invalid_key.dts}                 |  0
>   .../pre_load_invalid_padding.dts}             |  0
>   .../pre_load_invalid_sha.dts}                 |  0
>   .../pre_load_pkcs.dts}                        |  0
>   .../pre_load_pss.dts}                         |  0
>   .../section_ignore_hash_signature.dts}        |  0
>   .../sign_non_fit.dts}                         |  0
>   .../spl_pubkey_dtb.dts}                       |  0
>   .../x509_cert.dts}                            |  0
>   .../xilinx_bootgen_sign.dts}                  |  0
>   .../xilinx_bootgen_sign_enc.dts}              |  0
>   24 files changed, 26 insertions(+), 26 deletions(-)
>   rename tools/binman/test/{302_encrypted_invalid_iv_file.dts => security/encrypted_invalid_iv_file.dts} (100%)
>   rename tools/binman/test/{305_encrypted_key_file.dts => security/encrypted_key_file.dts} (100%)
>   rename tools/binman/test/{304_encrypted_key_source.dts => security/encrypted_key_source.dts} (100%)
>   rename tools/binman/test/{303_encrypted_missing_key.dts => security/encrypted_missing_key.dts} (100%)
>   rename tools/binman/test/{301_encrypted_no_algo.dts => security/encrypted_no_algo.dts} (100%)
>   rename tools/binman/test/{090_hash.dts => security/hash.dts} (100%)
>   rename tools/binman/test/{092_hash_bad_algo.dts => security/hash_bad_algo.dts} (100%)
>   rename tools/binman/test/{091_hash_no_algo.dts => security/hash_no_algo.dts} (100%)
>   rename tools/binman/test/{099_hash_section.dts => security/hash_section.dts} (100%)
>   rename tools/binman/test/{356_key_name_hint_dir_spl_pubkey_dtb.dts => security/key_name_hint_dir_spl_pubkey_dtb.dts} (100%)

This also depends on 
https://lore.kernel.org/u-boot/20260225225040.2568118-1-sjg@chromium.org/.

Cheers,
Quentin


More information about the U-Boot mailing list