summaryrefslogtreecommitdiff
path: root/tests/cantrbry.sh.in
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-11-27 10:32:13 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-11-27 10:32:13 +0100
commita487eec3e3e7c1c5552d17acd0db8cd5dcc59fc7 (patch)
tree783c4c23ec005545c1cc04925f17c980a4608d93 /tests/cantrbry.sh.in
parent62e598c500b53902e3d97b62d879e6e9c7785d00 (diff)
Continue cleanup of the test cases
- Force all tests into their proper sub directory - Temporarily remove the corpora tests. They have been used for regression tests before releases and are disabled by default, so we should not ship them either. A script should be added for that, downloading what is needed. - The "pack a directory" test is also removed. It was rather hacky and there already is a test case for the fstree_from_dir function, which isn't ideal either. Something should be added to the regression test suite. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/cantrbry.sh.in')
-rwxr-xr-xtests/cantrbry.sh.in52
1 files changed, 0 insertions, 52 deletions
diff --git a/tests/cantrbry.sh.in b/tests/cantrbry.sh.in
deleted file mode 100755
index 1ef84e6..0000000
--- a/tests/cantrbry.sh.in
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-
-set -e
-
-CORPUS="@abs_top_srcdir@/tests/corpus/cantrbry.tar.xz"
-SHA512FILE="@abs_top_srcdir@/tests/corpus/cantrbry.sha512"
-TAR2SQFS="@abs_top_builddir@/tar2sqfs"
-
-if [ ! -f "$TAR2SQFS" -a -f "${TAR2SQFS}.exe" ]; then
- TAR2SQFS="${TAR2SQFS}.exe"
-fi
-
-COMPRESSORS=$("$TAR2SQFS" --help | grep $'\t' | sed 's/ (default)//' | \
- tr -d '\011' | sort | uniq | sed '/uncompressed/d' | \
- sed '/bzip2/d' | sed '/zstd/d' | sed '/lz4/d')
-
-for size in 4k 8k 16k 32k 64k 128k 256k 512k 1M; do
- for cmp in $COMPRESSORS; do
- for threads in 1 2 3 4; do
- name="cantrbry_${cmp}_${size}_${threads}.sqfs"
-
- xzcat "$CORPUS" | \
- "$TAR2SQFS" -q -c "$cmp" -b "$size" \
- -j "$threads" --defaults mtime=0 \
- "$name"
-
- name="cantrbry_${cmp}_${size}_${threads}_T.sqfs"
-
- xzcat "$CORPUS" | \
- "$TAR2SQFS" -qT -c "$cmp" -b "$size" \
- -j "$threads" --defaults mtime=0 \
- "$name"
- done
-
- # check that the ones with > 1 thread are identical,
- # then remove them.
- for threads in 2 3 4; do
- name="cantrbry_${cmp}_${size}_${threads}.sqfs"
- ref="cantrbry_${cmp}_${size}_1.sqfs"
- diff "$name" "$ref"
- rm "$name"
-
- name="cantrbry_${cmp}_${size}_${threads}_T.sqfs"
- ref="cantrbry_${cmp}_${size}_1_T.sqfs"
- diff "$name" "$ref"
- rm "$name"
- done
- done
-done
-
-sha512sum --ignore-missing -c "$SHA512FILE"
-rm cantrbry_*.sqfs