1#!/bin/sh 2 3# This is a quick and dirty way to test that kexis compresses and decompresses 4# itself. Just make sure there is a file called cdda.wav in teh directory then 5# run this script and sit back. Oh, you need md5sum isntalled too. 6 7prlist="0 1 2 3 4 5" 8enlist="1 2 3" 9kexis=/home/thebard/workb/kexis/kexis 10 11for pr in $prlist; do 12 for en in $enlist; do 13 echo -n "creating cdda-pr$pr-en$en.wav..." 14 cp cdda.wav cdda-pr$pr-en$en.wav 15 echo " Compressing with -pr $pr -en $en..." 16 $kexis -pr $pr -en $en cdda-pr$pr-en$en.wav 17 echo -n "Decompressing cdda-pr$pr-en$en.kxs..." 18 $kexis -x cdda-pr$pr-en$en.kxs 19 echo " md5summing...." 20 md1=`md5sum cdda.wav` 21 echo "$md1" 22 md1=${md1%% *} 23 md2=`md5sum cdda-pr$pr-en$en.wav` 24 echo "$md2" 25 md2=${md2%% *} 26 if [ "$md1" != "$md2" ]; then 27 echo "AN ERROR IN COMPRESSION/DECOMPRESSION HAS OCCURED!!!!!!!!" 28 exit 29 else 30 echo "The two are Equal" 31 fi 32 echo "Removing cdda-pr$pr-en$en.wav" 33 rm cdda-pr$pr-en$en.wav 34 done 35done 36