tests: Add lib/lzma-test test case
Files used by this test are in: tests/data/lib/lzma-test/ file.bin - files with uncompressed data file.lzma.bin - files with LZMA-compressed data from file.bin How to prepare compressed file: util/cbfs-compression-tool compress file.bin /tmp/file.lzma.bin lzma dd if=/tmp/file.lzma.bin of=file.lzma.bin skip=8 ibs=1 Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Change-Id: Id75e0b41991382d4c391b031862106de58eacdf7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57555 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
committed by
Felix Held
parent
c45e0bedb2
commit
c1e4c5aaa5
@@ -38,6 +38,7 @@ tests-y += cbfs-no-verification-no-sha512-test
|
||||
tests-y += cbfs-no-verification-has-sha512-test
|
||||
tests-y += cbfs-lookup-no-mcache-test
|
||||
tests-y += cbfs-lookup-has-mcache-test
|
||||
tests-y += lzma-test
|
||||
|
||||
string-test-srcs += tests/lib/string-test.c
|
||||
string-test-srcs += src/lib/string.c
|
||||
@@ -231,3 +232,8 @@ cbfs-lookup-no-mcache-test-config += CONFIG_ARCH_X86=0 \
|
||||
|
||||
$(call copy-test,cbfs-lookup-no-mcache-test,cbfs-lookup-has-mcache-test)
|
||||
cbfs-lookup-has-mcache-test-config += CONFIG_NO_CBFS_MCACHE=0
|
||||
|
||||
lzma-test-srcs += tests/lib/lzma-test.c
|
||||
lzma-test-srcs += tests/stubs/console.c
|
||||
lzma-test-srcs += src/lib/lzma.c
|
||||
lzma-test-srcs += src/lib/lzmadecode.c
|
||||
|
Reference in New Issue
Block a user