2
0
mirror of https://github.com/vasi/pixz synced 2024-11-18 15:26:46 +00:00
pixz/test.sh

20 lines
396 B
Bash
Raw Normal View History

#!/bin/bash
2010-01-13 02:21:39 +00:00
2012-10-13 11:11:16 +00:00
tarball=$1
sample=$2
2010-01-13 02:21:39 +00:00
echo XZ
2012-10-13 11:11:16 +00:00
time xz -c < "$tarball" > test.txz
time xz -cd < test.txz | tar xO "$sample" | md5sum
2010-01-13 02:21:39 +00:00
echo; echo; echo PIXZ
2012-10-13 11:11:16 +00:00
time ./pixz < "$tarball" > test.tpxz
time ./pixz -x "$sample" < test.tpxz | tar xO "$sample" | md5sum
2010-01-13 02:21:39 +00:00
echo; echo; echo CROSS
2012-10-13 11:11:16 +00:00
xz -cd < test.tpxz | tar xO "$sample" | md5sum
2010-01-13 02:21:39 +00:00
echo; echo
2012-10-13 11:11:16 +00:00
du -sh "$tarball" test.tpxz test.txz
rm test.tpxz test.txz