summaryrefslogtreecommitdiffstats
path: root/programs/Makefile
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-04-18 11:44:38 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-04-18 11:44:38 (GMT)
commit47c304039954d73cea018fbd6b4eebc05877d3fc (patch)
treef0c854f9181c4520746834ac5974cf20ff875ba2 /programs/Makefile
parent9fd4f1f9f780f1be38ad6695d62a9ba2ea426d6d (diff)
downloadlz4-47c304039954d73cea018fbd6b4eebc05877d3fc.zip
lz4-47c304039954d73cea018fbd6b4eebc05877d3fc.tar.gz
lz4-47c304039954d73cea018fbd6b4eebc05877d3fc.tar.bz2
added --no-sparse test
Diffstat (limited to 'programs/Makefile')
-rw-r--r--programs/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/programs/Makefile b/programs/Makefile
index f61d708..910516f 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -151,15 +151,18 @@ test-travis: $(TRAVIS_TARGET)
test-lz4-sparse: lz4 datagen
@echo ---- test sparse file support ----
- ./datagen -g50M -P100 | ./lz4 -B4D | ./lz4 -dv --sparse > tmpB4
- ./datagen -g50M -P100 | ./lz4 -B5D | ./lz4 -dv --sparse > tmpB5
- ./datagen -g50M -P100 | ./lz4 -B6D | ./lz4 -dv --sparse > tmpB6
- ./datagen -g50M -P100 | ./lz4 -B7D | ./lz4 -dv --sparse > tmpB7
+ ./datagen -g5M -P100 > tmpSrc
+ ./lz4 -B4D tmpSrc | ./lz4 -dv --sparse > tmpB4
+ diff -s tmpSrc tmpB4
+ ./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*
- ./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 | diff -s - tmpOdd
ls -ls tmpOdd