iw7-mod/deps/zstd/tests/cli-tests/dictionaries/setup_once

25 lines
370 B
Plaintext
Raw Normal View History

2024-08-13 05:15:34 -04:00
#!/bin/sh
set -e
. "$COMMON/platform.sh"
mkdir files/ dicts/
for seed in $(seq 50); do
datagen -g1000 -s$seed > files/$seed
done
zstd --train -r files -o dicts/0 -qq
for seed in $(seq 51 100); do
datagen -g1000 -s$seed > files/$seed
done
zstd --train -r files -o dicts/1 -qq
cmp dicts/0 dicts/1 && die "dictionaries must not match!"
datagen -g1000 > files/0