selftests: firmware: Add compressed firmware tests
authorTakashi Iwai <tiwai@suse.de>
Tue, 11 Jun 2019 12:26:26 +0000 (14:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2019 07:11:22 +0000 (09:11 +0200)
commit108ae07c50363d0768a4c2bb7454a717fd36af52
tree641771fdfd6e8b67498c047871e4fa595ceb6f19
parent82fd7a8142a10b8eb41313074b3859d82c0857dc
selftests: firmware: Add compressed firmware tests

This patch adds the test cases for checking compressed firmware load.
Two more cases are added to fw_filesystem.sh:
- Both a plain file and an xz file are present, and load the former
- Only an xz file is present, and load without '.xz' suffix

The tests are enabled only when CONFIG_FW_LOADER_COMPRESS is enabled
and xz program is installed.

Signed-off-by: Takashi Iwai <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
tools/testing/selftests/firmware/fw_run_tests.sh