Skip to content

Commit

Permalink
Tests: Add RISC-V filter support in a few places.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaT75 committed Feb 13, 2024
1 parent 4566344 commit 89ea1a2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_filter_flags.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ static lzma_filter bcj_filters_encoders[] = {
#ifdef HAVE_ENCODER_SPARC
{ LZMA_FILTER_SPARC, NULL },
#endif
#ifdef HAVE_ENCODER_RISCV
{ LZMA_FILTER_RISCV, NULL },
#endif
};

// HAVE_ENCODERS ifdef not terminated here because decoders are
Expand Down Expand Up @@ -77,6 +80,9 @@ static lzma_filter bcj_filters_decoders[] = {
#ifdef HAVE_DECODER_SPARC
{ LZMA_FILTER_SPARC, NULL },
#endif
#ifdef HAVE_DECODER_RISCV
{ LZMA_FILTER_RISCV, NULL },
#endif
};
#endif
#endif
Expand Down
6 changes: 6 additions & 0 deletions tests/test_filter_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,9 @@ static const char supported_decoders[][9] = {
#ifdef HAVE_DECODER_ARM64
"arm64",
#endif
#ifdef HAVE_DECODER_RISCV
"riscv",
#endif
#ifdef HAVE_DECODER_DELTA
"delta",
#endif
Expand Down Expand Up @@ -494,6 +497,9 @@ static const char supported_filters[][9] = {
#if defined(HAVE_ENCODER_ARM64) || defined(HAVE_DECODER_ARM64)
"arm64",
#endif
#if defined(HAVE_ENCODER_RISCV) || defined(HAVE_DECODER_RISCV)
"riscv",
#endif
#if defined(HAVE_ENCODER_DELTA) || defined(HAVE_DECODER_DELTA)
"delta",
#endif
Expand Down

0 comments on commit 89ea1a2

Please sign in to comment.