[PATCH v6 15/21] binman: Add compression tests
Simon Glass
sjg at chromium.org
Sun Aug 21 02:10:05 CEST 2022
On Fri, 19 Aug 2022 at 08:26, Stefan Herbrechtsmeier
<stefan.herbrechtsmeier-oss at weidmueller.com> wrote:
>
> From: Stefan Herbrechtsmeier <stefan.herbrechtsmeier at weidmueller.com>
>
> Add common test functions to test all supported compressions.
>
> Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier at weidmueller.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> ---
> Instead of the for loop it is possible to use Parameterized [1] testing.
>
> [1] https://github.com/wolever/parameterized
>
> (no changes since v5)
>
> Changes in v5:
> - Use self.comp_bintools dict
> - Use _CheckBintool(bintool) function
>
> Changes in v3:
> - Use 'tools.get_bytes(0, 64)' instead of 'bytes([0]) * 64'
> - Check if tool is present
> - Rename tests
>
> Changes in v2:
> - Add commit to add compression tests
>
> tools/binman/ftest.py | 26 ++++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list