2017-07-13 13:50:23 -07:00
|
|
|
echo "correctness tests -- general"
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s1 -g1GB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
./adapt -otmp.zst tmp
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s2 -g500MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
./adapt -otmp.zst tmp
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s3 -g250MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
./adapt -otmp.zst tmp
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s4 -g125MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
./adapt -otmp.zst tmp
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s5 -g50MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
./adapt -otmp.zst tmp
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s6 -g25MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
./adapt -otmp.zst tmp
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s7 -g10MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
./adapt -otmp.zst tmp
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s8 -g5MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
./adapt -otmp.zst tmp
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s9 -g500KB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
./adapt -otmp.zst tmp
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
|
|
|
echo -e "\ncorrectness tests -- streaming"
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s10 -g1GB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
cat tmp | ./adapt > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s11 -g100MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
cat tmp | ./adapt > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s12 -g10MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
cat tmp | ./adapt > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s13 -g1MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
cat tmp | ./adapt > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s14 -g100KB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
cat tmp | ./adapt > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s15 -g10KB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
cat tmp | ./adapt > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
|
|
|
echo -e "\ncorrectness tests -- read limit"
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s16 -g1GB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -L 50m -q tmp | ./adapt > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s17 -g100MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -L 50m -q tmp | ./adapt > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s18 -g10MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -L 50m -q tmp | ./adapt > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s19 -g1MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -L 50m -q tmp | ./adapt > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s20 -g100KB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -L 50m -q tmp | ./adapt > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s21 -g10KB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -L 50m -q tmp | ./adapt > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
|
|
|
echo -e "\ncorrectness tests -- write limit"
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s22 -g1GB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -q tmp | ./adapt | pv -L 5m -q > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s23 -g100MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -q tmp | ./adapt | pv -L 5m -q > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s24 -g10MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -q tmp | ./adapt | pv -L 5m -q > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s25 -g1MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -q tmp | ./adapt | pv -L 5m -q > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s26 -g100KB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -q tmp | ./adapt | pv -L 5m -q > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s27 -g10KB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -q tmp | ./adapt | pv -L 5m -q > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
|
|
|
echo -e "\ncorrectness tests -- read and write limits"
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s28 -g1GB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -L 50m -q tmp | ./adapt | pv -L 5m -q > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s29 -g100MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -L 50m -q tmp | ./adapt | pv -L 5m -q > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s30 -g10MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -L 50m -q tmp | ./adapt | pv -L 5m -q > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s31 -g1MB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -L 50m -q tmp | ./adapt | pv -L 5m -q > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s32 -g100KB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -L 50m -q tmp | ./adapt | pv -L 5m -q > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s33 -g10KB > tmp
|
2017-07-13 13:50:23 -07:00
|
|
|
pv -L 50m -q tmp | ./adapt | pv -L 5m -q > tmp.zst
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 13:50:23 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-13 14:57:24 -07:00
|
|
|
echo -e "\ncorrectness tests -- forced compression level"
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s34 -g1GB > tmp
|
2017-07-13 14:57:24 -07:00
|
|
|
./adapt tmp -otmp.zst -i11 -f
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 14:57:24 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s35 -g100MB > tmp
|
2017-07-13 14:57:24 -07:00
|
|
|
./adapt tmp -otmp.zst -i11 -f
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 14:57:24 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s36 -g10MB > tmp
|
2017-07-13 14:57:24 -07:00
|
|
|
./adapt tmp -otmp.zst -i11 -f
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 14:57:24 -07:00
|
|
|
rm tmp*
|
2017-07-13 13:50:23 -07:00
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s37 -g1MB > tmp
|
2017-07-13 14:57:24 -07:00
|
|
|
./adapt tmp -otmp.zst -i11 -f
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 14:57:24 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s38 -g100KB > tmp
|
2017-07-13 14:57:24 -07:00
|
|
|
./adapt tmp -otmp.zst -i11 -f
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 14:57:24 -07:00
|
|
|
rm tmp*
|
|
|
|
|
2017-07-14 16:29:29 -07:00
|
|
|
./datagen -s39 -g10KB > tmp
|
2017-07-13 14:57:24 -07:00
|
|
|
./adapt tmp -otmp.zst -i11 -f
|
|
|
|
zstd -d tmp.zst -o tmp2
|
2017-07-18 12:58:50 -07:00
|
|
|
diff -s -q tmp tmp2
|
2017-07-13 14:57:24 -07:00
|
|
|
rm tmp*
|
2017-07-26 14:29:59 -07:00
|
|
|
|
|
|
|
echo -e "\ncorrectness tests -- window size test"
|
|
|
|
./datagen -s39 -g1GB | pv -L 25m -q | ./adapt -i1 | pv -q > tmp.zst
|
|
|
|
zstd -d tmp.zst
|
|
|
|
rm tmp*
|
2017-07-28 15:55:02 -07:00
|
|
|
|
|
|
|
echo -e "\ncorrectness tests -- testing bounds"
|
|
|
|
./datagen -s40 -g1GB | pv -L 25m -q | ./adapt -i1 -u4 | pv -q > tmp.zst
|
|
|
|
rm tmp*
|
|
|
|
|
|
|
|
./datagen -s41 -g1GB | ./adapt -i14 -l4 > tmp.zst
|
|
|
|
rm tmp*
|
2017-07-13 13:50:23 -07:00
|
|
|
make clean
|