diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-03-10 16:23:43 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-03-10 16:27:46 +0100 |
commit | dee6a50c73871d7a740dc63d66e231a7357d1a67 (patch) | |
tree | 149d923082d5b1fd3f009ac87e1e425264a25e5b /tests/tar2sqfs/test_tar_sqfs.sh.in | |
parent | d412430e77f5b341964389205425a26dc2be2364 (diff) |
Remove tar2sqfs test script
The whole idea of re-generating archives and matching them against
checksums has a big issue in that we cannot controll the underlying
compressors. If the underlying compressor changes its behavior
between versions, the checksums will be broken. For this exact reason,
the zstd and LZ4 checks that used to be present, have already been
removed. On Fedora, the script now breaks because of the zlib to
zstd-ng transition. If we fix the checksums to work on Fedora, it WILL
now break on other distributions. Ultimately, it is better to remove
the script alltogether.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/tar2sqfs/test_tar_sqfs.sh.in')
-rwxr-xr-x | tests/tar2sqfs/test_tar_sqfs.sh.in | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/tar2sqfs/test_tar_sqfs.sh.in b/tests/tar2sqfs/test_tar_sqfs.sh.in deleted file mode 100755 index 750add4..0000000 --- a/tests/tar2sqfs/test_tar_sqfs.sh.in +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh - -set -e - -TARDIR="@abs_top_srcdir@/tests/libtar/data" -TARDIR2="@abs_top_srcdir@/tests/tar2sqfs" -SHA512FILE="$TARDIR2/sqfs.sha512" -TAR2SQFS="@abs_top_builddir@/tar2sqfs" - -if [ ! -f "$TAR2SQFS" -a -f "${TAR2SQFS}.exe" ]; then - TAR2SQFS="${TAR2SQFS}.exe" -fi - -# process tar files used for conformance tests -for filename in $(find "$TARDIR" -name "*.tar" | grep -v ".*/file-size/.*"); do - dir="$(dirname $filename | sed -n -e 's;.*/tests/;tests/;p')" - imgname="$dir/$(basename $filename .tar).sqfs" - - mkdir -p "$dir" - "$TAR2SQFS" --defaults mtime=0 -c gzip -q "$imgname" < "$filename" -done - -# edge case test -filename="$TARDIR2/simple.tar" -dir="$(dirname $filename | sed -n -e 's;.*/tests/;tests/;p')" -imgname="$dir/root-becomes.sqfs" - -mkdir -p "$dir" -"$TAR2SQFS" --root-becomes foo --defaults mtime=0 \ - -c gzip -q "$imgname" < "$filename" - -# verify -sha512sum -c "$SHA512FILE" - -# cleanup -rm "$dir/root-becomes.sqfs" - -for filename in $(find "$TARDIR" -name "*.tar" | grep -v ".*/file-size/.*"); do - dir="$(dirname $filename | sed -n -e 's;.*/tests/;tests/;p')" - imgname="$dir/$(basename $filename .tar).sqfs" - - rm "$imgname" - rmdir -p "$dir" || true -done |