[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
+5 -1
View File
@@ -359,7 +359,11 @@ test-zstd test-zstd32 test-zstd-nolegacy test-zstd-dll: datagen
test-cli-tests: ZSTD = $(PRGDIR)/zstd
test-cli-tests: zstd datagen
file $(ZSTD)
./cli-tests/run.py --exec-prefix="$(QEMU_SYS)" --zstd="$(ZSTD)" --datagen=./datagen
./cli-tests/run.py --exec-prefix="$(QEMU_SYS)" --zstd="$(ZSTD)" --datagen=./datagen $(CLI_TEST_ARGS)
.PHONY: update-cli-tests
update-cli-tests: CLI_TEST_ARGS = --set-exact-output
update-cli-tests: test-cli-tests
.PHONY: test-fullbench
test-fullbench: fullbench datagen