-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test.sh: Make it general, make it work
- Loading branch information
Showing
1 changed file
with
9 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,24 +1,19 @@ | |||
#!/bin/bash | #!/bin/bash | ||
|
|
||
#base=lmnopuz | tarball=$1 | ||
#file=lmnopuz/CheckPUZ.app/Contents/Resources/script | sample=$2 | ||
|
|||
base=nicotine | |||
file=nicotine/museek+-0.1.13/doc/SConscript | |||
|
|||
#base=simbl | |||
#file=Users/vasi/Desktop/SIMBL/keywurl/SIMBL.pkg/Contents/Info.plist | |||
|
|
||
echo XZ | echo XZ | ||
time xz -c < tars/$base.tar > tars/$base.txz | time xz -c < "$tarball" > test.txz | ||
time xz -cd < tars/$base.txz | tar xO $file | md5sum | time xz -cd < test.txz | tar xO "$sample" | md5sum | ||
|
|
||
echo; echo; echo PIXZ | echo; echo; echo PIXZ | ||
time ./write tars/$base.tar tars/$base.tpxz | time ./pixz < "$tarball" > test.tpxz | ||
time ./read tars/$base.tpxz $file | tar xO $file | md5sum | time ./pixz -x "$sample" < test.tpxz | tar xO "$sample" | md5sum | ||
|
|
||
echo; echo; echo CROSS | echo; echo; echo CROSS | ||
xz -cd < tars/$base.tpxz | tar xO $file | md5sum | xz -cd < test.tpxz | tar xO "$sample" | md5sum | ||
|
|
||
echo; echo | 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 |