[test] Add tests for determinism
Run compression & validate the compressed file matches a known checksum. To update the output run: ``` make -C tests update-cli-tests ```
This commit is contained in:
committed by
Nick Terrell
parent
0de4991942
commit
b16d193512
@@ -23,6 +23,11 @@ case "$UNAME" in
|
||||
*) MD5SUM="md5sum" ;;
|
||||
esac
|
||||
|
||||
md5hash() {
|
||||
$MD5SUM | dd bs=1 count=32 status=none
|
||||
echo
|
||||
}
|
||||
|
||||
DIFF="diff"
|
||||
case "$UNAME" in
|
||||
SunOS) DIFF="gdiff" ;;
|
||||
@@ -34,3 +39,9 @@ then
|
||||
else
|
||||
hasMT="true"
|
||||
fi
|
||||
|
||||
if zstd -vv --version | grep -q 'non-deterministic'; then
|
||||
NON_DETERMINISTIC="true"
|
||||
else
|
||||
NON_DETERMINISTIC=""
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user