Skip to content

Commit

Permalink
Test instead of display some make test output
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Apr 11, 2010
1 parent c2954c1 commit 8d4e962
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Makefile
Expand Up @@ -31,13 +31,13 @@ test: pigz
./pigz -kfp 1 pigz.c ; ./pigz -t pigz.c.gz
./pigz -kfz pigz.c ; ./pigz -t pigz.c.zz
./pigz -kfK pigz.c ; ./pigz -t pigz.c.zip
printf "" | ./pigz -cdf | wc -c
printf "x" | ./pigz -cdf | wc -c
printf "xy" | ./pigz -cdf | wc -c
printf "xyz" | ./pigz -cdf | wc -c
(printf "w" | gzip ; printf "x") | ./pigz -cdf | wc -c
(printf "w" | gzip ; printf "xy") | ./pigz -cdf | wc -c
(printf "w" | gzip ; printf "xyz") | ./pigz -cdf | wc -c
printf "" | ./pigz -cdf | wc -c | test `cat` -eq 0
printf "x" | ./pigz -cdf | wc -c | test `cat` -eq 1
printf "xy" | ./pigz -cdf | wc -c | test `cat` -eq 2
printf "xyz" | ./pigz -cdf | wc -c | test `cat` -eq 3
(printf "w" | gzip ; printf "x") | ./pigz -cdf | wc -c | test `cat` -eq 2
(printf "w" | gzip ; printf "xy") | ./pigz -cdf | wc -c | test `cat` -eq 3
(printf "w" | gzip ; printf "xyz") | ./pigz -cdf | wc -c | test `cat` -eq 4
compress -f < pigz.c | ./unpigz | cmp - pigz.c
rm -f pigz.c.gz pigz.c.zz pigz.c.zip

Expand Down

0 comments on commit 8d4e962

Please sign in to comment.