[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:
Nick Terrell
2025-03-07 10:31:19 -05:00
committed by Nick Terrell
parent 0de4991942
commit b16d193512
15 changed files with 1339 additions and 1 deletions
+11
View File
@@ -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