Blame tests/p_gzip/50-zgrep-tests

iaind 56c8c8
#!/bin/bash
iaind 56c8c8
# Author: Iain Douglas <centos:1n6.org.uk>
iaind 56c8c8
#
iaind 56c8c8
iaind 56c8c8
# Only check zgrep as zegrep is zgrep -E and zfgrep is zgrep -F
iaind 56c8c8
# also not testing grep - that should be done in p_grep
iaind 56c8c8
iaind 56c8c8
t_Log "running $0 Testing zgrep"
iaind 56c8c8
BASEFILE=/var/tmp/gzip-test
iaind 56c8c8
rm $BASEFILE* &>/dev/null
iaind 56c8c8
iaind 56c8c8
# Create files to work with
iaind 56c8c8
cat <<EOF >$BASEFILE.1
iaind 56c8c8
Some data to be testing with
iaind 56c8c8
EOF
iaind 56c8c8
gzip $BASEFILE.1
iaind 56c8c8
iaind 56c8c8
zgrep -q 'Some data to be testing with' $BASEFILE.1
iaind 56c8c8
t_CheckExitStatus $?
iaind 56c8c8
iaind 56c8c8
rm $BASEFILE*