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