From 60f45bdbaa6b07558b3f4baac285739b0c6342f5 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 13 Dec 2022 12:30:09 +0200 Subject: [PATCH] Tests: Add two ARM64 test files. --- tests/files/README | 7 +++++++ tests/files/good-1-arm64-lzma2-1.xz | Bin 0 -> 512 bytes tests/files/good-1-arm64-lzma2-2.xz | Bin 0 -> 488 bytes tests/test_files.sh | 5 +++++ 4 files changed, 12 insertions(+) create mode 100644 tests/files/good-1-arm64-lzma2-1.xz create mode 100644 tests/files/good-1-arm64-lzma2-2.xz diff --git a/tests/files/README b/tests/files/README index 4aca0b11..3c54e51e 100644 --- a/tests/files/README +++ b/tests/files/README @@ -73,6 +73,13 @@ uncompressed file is compress_prepared_bcj_sparc found from the tests directory. + good-1-arm64-lzma2-1.xz uses the ARM64 filter and LZMA2. The + uncompressed data is constructed so that it tests integer + wrap around and sign extension. + + 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-lzma2-1.xz has two LZMA2 chunks, of which the second sets new properties. diff --git a/tests/files/good-1-arm64-lzma2-1.xz b/tests/files/good-1-arm64-lzma2-1.xz new file mode 100644 index 0000000000000000000000000000000000000000..78169f14e55bab6df64b171e02d275d1c878f095 GIT binary patch literal 512 zcmV+b0{{K}H+ooF0004LBHlIv0SW*i0SEx1*naWgA%6kGZU6viBZzTh!jDr5=CR+< zimn@>uz0H|Lla(qI_!Jbnq4vWOm!4B`dTUMI zf2*~D8PbQdj#Sbkr5HuKm#?*r6OD!0ixJf`b2ir4#$zA@8waxQC$A18F-0{2}WS>SKs z-OTxr%O_c&qi>dTg3nEHAs$Y@&(JBd&sJ_BkH~kG>uT>j+yHj4lw)v=lwW@zgZUrM zWKTuC_!C-q3>x3$3*5Q~Gwf5T`!VIr!-tiS^^=YQ?&DUb`O~9#r3fUv9xADscuVNJ zb4Shy3|axs;l-VW+|(IawLP!(q|as&{agMDdhYjOfeHo*UCR)~Z)i{L?U%o#3}QZ7oP3 zjDb;5VDF&-aoOXwPyJW64*Wn!(*OXVeBsmp0owzBLjV9n$BAP;Fb#_W000000a;o` ChV}3O literal 0 HcmV?d00001 diff --git a/tests/files/good-1-arm64-lzma2-2.xz b/tests/files/good-1-arm64-lzma2-2.xz new file mode 100644 index 0000000000000000000000000000000000000000..e0302fe99e994db8e02e58b5deebb0059c90bdf4 GIT binary patch literal 488 zcmV)t{1c60fMoJHkN$TUSJebxP_`X z7)fn4$7IFT8LOEEk7OxZIpYez9Oh~Cddvz2-Q^}z$*Hd|L?S)qmODUDNM`jN-lcN6MFEp*`GzEE0iV*SI z^QXwyBTGKmlwSorwDZJTrl@CHbCSk*q%(OA70=FcM6l&R7n)du1lSNRR40$f3k z48I+C<7lCVHqH*qCcQ{=EvTI;r$8yn=f}iXi>l*~##Di{8U#;nB6plx-xJUP0001> eeBsmp0m1`-LjV8}lu$=LFb#_W000000a;oZ9p=jb literal 0 HcmV?d00001 diff --git a/tests/test_files.sh b/tests/test_files.sh index ceb9197c..64d73081 100755 --- a/tests/test_files.sh +++ b/tests/test_files.sh @@ -75,6 +75,11 @@ do have_feature DECODER_X86 "$I" || continue ;; esac + case $I in + */good-1-arm64-lzma2-*.xz) + have_feature DECODER_ARM64 "$I" || continue + ;; + esac if test -z "$XZ" || "$XZ" $NO_WARN -dc "$I" > /dev/null; then :