Skip to content

Commit

Permalink
Tests: Add two RISC-V Filter test files.
Browse files Browse the repository at this point in the history
These test files achieve 100% code coverage in
src/liblzma/simple/riscv.c. They contain all of the instructions that
should be filtered and a few cases that should not.
  • Loading branch information
JiaT75 committed Jan 23, 2024
1 parent b26a898 commit e2870db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/files/README
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@
good-1-arm64-lzma2-2.xz is like good-1-arm64-lzma2-1.xz but with
non-zero start offset. XZ Embedded doesn't support this file.

good-1-riscv-lzma2-1.xz uses the RISC-V filter and LZMA2. The
uncompressed data is constructed so it tests all of the instructions
that should be encoded and a few that should not. Additionally, the
file contains random bytes to help test unforeseen corner cases.

good-1-riscv-lzma2-2.xz is like good-1-riscv-lzma2-1.xz but with
non-zero start offset. XZ Embedded doesn't support this file.

good-1-lzma2-1.xz has two LZMA2 chunks, of which the second sets
new properties.

Expand Down
Binary file added tests/files/good-1-riscv-lzma2-1.xz
Binary file not shown.
Binary file added tests/files/good-1-riscv-lzma2-2.xz
Binary file not shown.

0 comments on commit e2870db

Please # to comment.