summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-16 14:43:19 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-16 14:46:24 +0100
commitcae8192e0e5e922615a813426fa0df3e177724cb (patch)
tree5a2cc78dbade2209f774bc7d8ba274ebcae48420 /tests
parent026381843e1e17b00a68c57734117cb459853d5c (diff)
Corpora tests: fix behaviour if SOURCE_DATE_EPOCH is set
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
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"