2
0
mirror of https://github.com/vasi/pixz synced 2024-11-16 21:26:04 +00:00
pixz/test.sh
2012-10-13 07:11:16 -04:00

20 lines
396 B
Bash
Executable File

#!/bin/bash
tarball=$1
sample=$2
echo XZ
time xz -c < "$tarball" > test.txz
time xz -cd < test.txz | tar xO "$sample" | md5sum
echo; echo; echo PIXZ
time ./pixz < "$tarball" > test.tpxz
time ./pixz -x "$sample" < test.tpxz | tar xO "$sample" | md5sum
echo; echo; echo CROSS
xz -cd < test.tpxz | tar xO "$sample" | md5sum
echo; echo
du -sh "$tarball" test.tpxz test.txz
rm test.tpxz test.txz