aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-12-13 12:30:09 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-12-13 12:30:09 +0200
commit60f45bdbaa6b07558b3f4baac285739b0c6342f5 (patch)
tree24442be6a87145da84dd9d7d0909818db6b1218a
parentTranslations: Update the Catalan translation. (diff)
downloadxz-60f45bdbaa6b07558b3f4baac285739b0c6342f5.tar.xz
Tests: Add two ARM64 test files.
-rw-r--r--tests/files/README7
-rw-r--r--tests/files/good-1-arm64-lzma2-1.xzbin0 -> 512 bytes
-rw-r--r--tests/files/good-1-arm64-lzma2-2.xzbin0 -> 488 bytes
-rwxr-xr-xtests/test_files.sh5
4 files changed, 12 insertions, 0 deletions
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 00000000..78169f14
--- /dev/null
+++ b/tests/files/good-1-arm64-lzma2-1.xz
Binary files 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
index 00000000..e0302fe9
--- /dev/null
+++ b/tests/files/good-1-arm64-lzma2-2.xz
Binary files differ
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
: