You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
439 B
24 lines
439 B
#!/bin/bash
|
|
# Author: Iian Douglas <centos@1n6.org.uk>
|
|
|
|
# Test znew - converts .Z files to .gz
|
|
# Create a test file
|
|
|
|
if (t_GetPkgRel basesystem | grep -q el9)
|
|
then
|
|
t_Log "This is a C9 system. Ncompress not present. Skipping."
|
|
t_CheckExitStatus 0
|
|
exit $PASS
|
|
fi
|
|
|
|
t_Log "Running $0 - Testing znew"
|
|
|
|
TESTFILE=/var/tmp/znew.txt
|
|
rm $TESTFILE* &>/dev/null
|
|
|
|
ls /usr/bin >$TESTFILE
|
|
compress $TESTFILE
|
|
|
|
znew $TESTFILE.Z
|
|
t_CheckExitStatus $?
|