From 13d9d259e8624a129098417beabd15f497ac6c06 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Tue, 26 Dec 2023 12:41:01 +1100 Subject: [PATCH] test/3pdata: add xzsuite --- test/3pdata/fetch-blinksuite.sh | 4 +-- test/3pdata/fetch-golangsuite.sh | 4 +-- test/3pdata/fetch-xzsuite.sh | 30 ++++++++++++++++++++++ test/3pdata/mzcat-checksums-of-xzsuite.txt | 16 ++++++++++++ 4 files changed, 50 insertions(+), 4 deletions(-) create mode 100755 test/3pdata/fetch-xzsuite.sh create mode 100644 test/3pdata/mzcat-checksums-of-xzsuite.txt diff --git a/test/3pdata/fetch-blinksuite.sh b/test/3pdata/fetch-blinksuite.sh index 20f52a0a..baab80b6 100755 --- a/test/3pdata/fetch-blinksuite.sh +++ b/test/3pdata/fetch-blinksuite.sh @@ -18,8 +18,8 @@ if [ ! -e ../../wuffs-root-directory.txt ]; then exit 1 fi -# Check out a specific commit (from June 2023). -git clone --quiet --depth=1 https://github.com/nigeltao/blink-web-tests-images-resources.git +# Check out a specific commit (from May 2023). +git clone --quiet https://github.com/nigeltao/blink-web-tests-images-resources.git cd blink-web-tests-images-resources git reset --quiet --hard 9c5a6768184e5b45eaddad8f83ffd87dc5dc8f15 cd .. diff --git a/test/3pdata/fetch-golangsuite.sh b/test/3pdata/fetch-golangsuite.sh index 17d02c34..48363431 100755 --- a/test/3pdata/fetch-golangsuite.sh +++ b/test/3pdata/fetch-golangsuite.sh @@ -18,8 +18,8 @@ if [ ! -e ../../wuffs-root-directory.txt ]; then exit 1 fi -# Check out a specific commit (from June 2023). -git clone --quiet --depth=1 https://github.com/nigeltao/golang-go-src-image-testdata.git +# Check out a specific commit (from May 2023). +git clone --quiet https://github.com/nigeltao/golang-go-src-image-testdata.git cd golang-go-src-image-testdata git reset --quiet --hard f2f7970f9054b910148be4e0dbda94b392c58700 cd .. diff --git a/test/3pdata/fetch-xzsuite.sh b/test/3pdata/fetch-xzsuite.sh new file mode 100755 index 00000000..2f8ba6ca --- /dev/null +++ b/test/3pdata/fetch-xzsuite.sh @@ -0,0 +1,30 @@ +#!/bin/bash -eu +# Copyright 2023 The Wuffs Authors. +# +# Licensed under the Apache License, Version 2.0 or the MIT license +# , at your +# option. This file may not be copied, modified, or distributed +# except according to those terms. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + +# ---------------- + +# This script fetches xz's tests/files suite. + +if [ ! -e ../../wuffs-root-directory.txt ]; then + echo "$0 should be run from the Wuffs test/3pdata directory." + exit 1 +fi + +# Check out a specific commit (from December 2023). +git clone --quiet https://github.com/nigeltao/xz-tests-files.git +cd xz-tests-files +git reset --quiet --hard 6c3e22469300d284182159b5ae7db9e959dfe62e +cd .. + +# Trim the git metadata. +rm -rf xzsuite +rm -rf xz-tests-files/.git +mv xz-tests-files xzsuite diff --git a/test/3pdata/mzcat-checksums-of-xzsuite.txt b/test/3pdata/mzcat-checksums-of-xzsuite.txt new file mode 100644 index 00000000..79a79d51 --- /dev/null +++ b/test/3pdata/mzcat-checksums-of-xzsuite.txt @@ -0,0 +1,16 @@ +# Generated by script/print-mzcat-checksums.sh +7759aecd test/3pdata/xzsuite/bad-1-lzma2-2.xz +7759aecd test/3pdata/xzsuite/bad-1-lzma2-3.xz +db4847fb test/3pdata/xzsuite/bad-1-lzma2-7.xz +8e26aed7 test/3pdata/xzsuite/bad-1-lzma2-8.xz +15a2a343 test/3pdata/xzsuite/bad-too_big_size-with_eopm.lzma +77e47a71 test/3pdata/xzsuite/bad-too_small_size-without_eopm-1.lzma +dd46b7fb test/3pdata/xzsuite/bad-too_small_size-without_eopm-2.lzma +bdc79ef1 test/3pdata/xzsuite/bad-too_small_size-without_eopm-3.lzma +15a2a343 test/3pdata/xzsuite/bad-unknown_size-without_eopm.lzma +7759aecd test/3pdata/xzsuite/good-1-lzma2-1.xz +7759aecd test/3pdata/xzsuite/good-1-lzma2-2.xz +8e26aed7 test/3pdata/xzsuite/good-1-lzma2-4.xz +15a2a343 test/3pdata/xzsuite/good-known_size-with_eopm.lzma +15a2a343 test/3pdata/xzsuite/good-known_size-without_eopm.lzma +15a2a343 test/3pdata/xzsuite/good-unknown_size-with_eopm.lzma