]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Tests: Add two ARM64 test files.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 13 Dec 2022 10:30:09 +0000 (12:30 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 13 Dec 2022 10:30:09 +0000 (12:30 +0200)
tests/files/README
tests/files/good-1-arm64-lzma2-1.xz [new file with mode: 0644]
tests/files/good-1-arm64-lzma2-2.xz [new file with mode: 0644]
tests/test_files.sh

index 4aca0b11adcca1fbe3788252580973ad5402f5b5..3c54e51e14b2d33ad96f48cb48cb18794d03b922 100644 (file)
     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 (file)
index 0000000..78169f1
Binary files /dev/null and b/tests/files/good-1-arm64-lzma2-1.xz differ
diff --git a/tests/files/good-1-arm64-lzma2-2.xz b/tests/files/good-1-arm64-lzma2-2.xz
new file mode 100644 (file)
index 0000000..e0302fe
Binary files /dev/null and b/tests/files/good-1-arm64-lzma2-2.xz differ
index ceb9197c4852297e1ea2d2d9bcb0f8dd104ac694..64d730815de62c021b098000da4e37cf2672e936 100755 (executable)
@@ -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
                :