summaryrefslogtreecommitdiff
path: root/contrib/experimental_dict_builders/randomDictBuilder/test.sh
blob: 1eb732e52a0931fb75ed2516b686c424479001b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
echo "Building random dictionary with in=../../lib/common k=200 out=dict1"
./main in=../../../lib/common k=200 out=dict1
zstd -be3 -D dict1 -r ../../../lib/common -q
echo "Building random dictionary with in=../../lib/common k=500 out=dict2 dictID=100 maxdict=140000"
./main in=../../../lib/common k=500 out=dict2 dictID=100 maxdict=140000
zstd -be3 -D dict2 -r ../../../lib/common -q
echo "Building random dictionary with 2 sample sources"
./main in=../../../lib/common in=../../../lib/compress out=dict3
zstd -be3 -D dict3 -r ../../../lib/common -q
echo "Removing dict1 dict2 dict3"
rm -f dict1 dict2 dict3

echo "Testing with invalid parameters, should fail"
! ./main r=10