selftests: firmware: Add ZSTD compressed file tests
authorTakashi Iwai <tiwai@suse.de>
Thu, 21 Apr 2022 15:29:08 +0000 (17:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Apr 2022 06:51:17 +0000 (08:51 +0200)
commitbc67cac1032679ba5bcd8f2767f661248c2a0c9a
tree1792a8e298f8121d03931c17304a30ed1e2f9b20
parentf18b45ff9ac7ff05beeebd62d7c25d58f38b1410
selftests: firmware: Add ZSTD compressed file tests

It's similar like XZ compressed files.  For the simplicity, both XZ
and ZSTD tests are done in a single function.  The format is specified
via $COMPRESS_FORMAT and the compression function is pre-defined.

Link: https://lore.kernel.org/r/20210127154939.13288-5-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20220421152908.4718-6-tiwai@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/firmware/fw_filesystem.sh
tools/testing/selftests/firmware/fw_lib.sh