| #!/bin/sh |
| |
| |
| |
| t_Log "Running $0 - run a file through bzip2,bzcat and bunzip2 test." |
| |
| |
| FILE=/var/tmp/bzip2-test.txt |
| |
| cat > $FILE <<EOF |
| bzip2-test of single file |
| EOF |
| |
| |
| bzip2 $FILE |
| |
| /bin/rm -rf $FILE |
| |
| |
| bzcat $FILE.bz2 | grep -q 'bzip2-test of single file' |
| if [ $? == 1 ] |
| then |
| t_Log 'bzcat failed' |
| exit |
| fi |
| |
| |
| bunzip2 $FILE.bz2 |
| |
| |
| grep -q 'bzip2-test of single file' $FILE |
| |
| t_CheckExitStatus $? |
| |
| |
| /bin/rm -rf $FILE* |