summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cantrbry.sh.in6
-rwxr-xr-xtests/test_tar_sqfs.sh.in2
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/cantrbry.sh.in b/tests/cantrbry.sh.in
index c8ba917..04a6448 100755
--- a/tests/cantrbry.sh.in
+++ b/tests/cantrbry.sh.in
@@ -17,13 +17,15 @@ for size in 4096 8192 16384 32768 65536 131072 262144 524288 1048576; do
xzcat "$CORPUS" | \
"$TAR2SQFS" -q -c "$cmp" -b "$size" \
- -j "$threads" "$name"
+ -j "$threads" --defaults mtime=0 \
+ "$name"
name="cantrbry_${cmp}_${size}_${threads}_T.sqfs"
xzcat "$CORPUS" | \
"$TAR2SQFS" -qT -c "$cmp" -b "$size" \
- -j "$threads" "$name"
+ -j "$threads" --defaults mtime=0 \
+ "$name"
done
# check that the ones with > 1 thread are identical,
diff --git a/tests/test_tar_sqfs.sh.in b/tests/test_tar_sqfs.sh.in
index 7dc396b..ea3b884 100755
--- a/tests/test_tar_sqfs.sh.in
+++ b/tests/test_tar_sqfs.sh.in
@@ -11,7 +11,7 @@ for filename in $(find "$TARDIR" -name "*.tar" | grep -v ".*/file-size/.*"); do
imgname="$dir/$(basename $filename .tar).sqfs"
mkdir -p "$dir"
- "$TAR2SQFS" -c gzip -q "$imgname" < "$filename"
+ "$TAR2SQFS" --defaults mtime=0 -c gzip -q "$imgname" < "$filename"
done
sha512sum -c "$SHA512FILE"