summaryrefslogtreecommitdiffstats
path: root/tests/lib/Makefile.inc
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2021-07-23 13:35:14 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-10-14 13:13:07 +0000
commitc1e4c5aaa5cbe9b1fa8d16be9b23038bc5fbc9b8 (patch)
treeebdf567ed68486c967d5c47989d709fdaedfa2dd /tests/lib/Makefile.inc
parentc45e0bedb26002b32cf6ecaca26a56214c28a8b5 (diff)
downloadcoreboot-c1e4c5aaa5cbe9b1fa8d16be9b23038bc5fbc9b8.tar.gz
coreboot-c1e4c5aaa5cbe9b1fa8d16be9b23038bc5fbc9b8.tar.bz2
coreboot-c1e4c5aaa5cbe9b1fa8d16be9b23038bc5fbc9b8.zip
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>
Diffstat (limited to 'tests/lib/Makefile.inc')
-rw-r--r--tests/lib/Makefile.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/Makefile.inc b/tests/lib/Makefile.inc
index f28cd52fa031..0aba0f551304 100644
--- a/tests/lib/Makefile.inc
+++ b/tests/lib/Makefile.inc
@@ -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