added --no-sparse test

This commit is contained in:
Yann Collet 2015-04-18 12:44:38 +01:00
parent 9fd4f1f9f7
commit 47c3040399

View File

@ -151,15 +151,18 @@ test-travis: $(TRAVIS_TARGET)
test-lz4-sparse: lz4 datagen test-lz4-sparse: lz4 datagen
@echo ---- test sparse file support ---- @echo ---- test sparse file support ----
./datagen -g50M -P100 | ./lz4 -B4D | ./lz4 -dv --sparse > tmpB4 ./datagen -g5M -P100 > tmpSrc
./datagen -g50M -P100 | ./lz4 -B5D | ./lz4 -dv --sparse > tmpB5 ./lz4 -B4D tmpSrc | ./lz4 -dv --sparse > tmpB4
./datagen -g50M -P100 | ./lz4 -B6D | ./lz4 -dv --sparse > tmpB6 diff -s tmpSrc tmpB4
./datagen -g50M -P100 | ./lz4 -B7D | ./lz4 -dv --sparse > tmpB7 ./lz4 -B5D tmpSrc | ./lz4 -dv --sparse > tmpB5
diff -s tmpSrc tmpB5
./lz4 -B6D tmpSrc | ./lz4 -dv --sparse > tmpB6
diff -s tmpSrc tmpB6
./lz4 -B7D tmpSrc | ./lz4 -dv --sparse > tmpB7
diff -s tmpSrc tmpB7
./lz4 tmpSrc | ./lz4 -dv --no-sparse > tmpNoSparse
diff -s tmpSrc tmpNoSparse
ls -ls tmp* ls -ls tmp*
./datagen -g50M -P100 | diff -s - tmpB4
./datagen -g50M -P100 | diff -s - tmpB5
./datagen -g50M -P100 | diff -s - tmpB6
./datagen -g50M -P100 | diff -s - tmpB7
./datagen -s1 -g1200007 -P100 | ./lz4 | ./lz4 -dv --sparse > tmpOdd # Odd size file (to not finish on an exact nb of blocks) ./datagen -s1 -g1200007 -P100 | ./lz4 | ./lz4 -dv --sparse > tmpOdd # Odd size file (to not finish on an exact nb of blocks)
./datagen -s1 -g1200007 -P100 | diff -s - tmpOdd ./datagen -s1 -g1200007 -P100 | diff -s - tmpOdd
ls -ls tmpOdd ls -ls tmpOdd