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
f49232
if (t_GetPkgRel basesystem | grep -q el9)
f49232
then
f49232
  t_Log "This is a C9 system. Ncompress not present. Skipping."
f49232
  t_CheckExitStatus 0
f49232
  exit $PASS
f49232
fi
f49232
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 $?