From b02ae925610917525cbed271202ea8793a3a913b Mon Sep 17 00:00:00 2001 From: Dave Vasilevsky Date: Sat, 13 Oct 2012 07:11:16 -0400 Subject: [PATCH] test.sh: Make it general, make it work --- test.sh | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/test.sh b/test.sh index 586d303..88e36af 100755 --- a/test.sh +++ b/test.sh @@ -1,24 +1,19 @@ #!/bin/bash -#base=lmnopuz -#file=lmnopuz/CheckPUZ.app/Contents/Resources/script - -base=nicotine -file=nicotine/museek+-0.1.13/doc/SConscript - -#base=simbl -#file=Users/vasi/Desktop/SIMBL/keywurl/SIMBL.pkg/Contents/Info.plist +tarball=$1 +sample=$2 echo XZ -time xz -c < tars/$base.tar > tars/$base.txz -time xz -cd < tars/$base.txz | tar xO $file | md5sum +time xz -c < "$tarball" > test.txz +time xz -cd < test.txz | tar xO "$sample" | md5sum echo; echo; echo PIXZ -time ./write tars/$base.tar tars/$base.tpxz -time ./read tars/$base.tpxz $file | tar xO $file | md5sum +time ./pixz < "$tarball" > test.tpxz +time ./pixz -x "$sample" < test.tpxz | tar xO "$sample" | md5sum echo; echo; echo CROSS -xz -cd < tars/$base.tpxz | tar xO $file | md5sum +xz -cd < test.tpxz | tar xO "$sample" | md5sum echo; echo -du -sh tars/$base.tar tars/$base.tpxz tars/$base.txz +du -sh "$tarball" test.tpxz test.txz +rm test.tpxz test.txz