bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_gzip/90-znew-tests

iaind 56c8c8
#!/bin/bash
iaind 56c8c8
# Author: Iian Douglas <centos@1n6.org.uk>
iaind 56c8c8
iaind 56c8c8
# Test znew - converts .Z files to .gz
iaind 56c8c8
# Create a test file
iaind 56c8c8
iaind 56c8c8
t_Log "Running $0 -  Testing znew"
iaind 56c8c8
iaind 56c8c8
TESTFILE=/var/tmp/znew.txt
iaind 56c8c8
rm $TESTFILE* &>/dev/null
iaind 56c8c8
iaind 56c8c8
ls /usr/bin >$TESTFILE
iaind 56c8c8
compress $TESTFILE 
iaind 56c8c8
iaind 56c8c8
znew $TESTFILE.Z
iaind 56c8c8
t_CheckExitStatus $?