bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_gzip/70-zless-tests

iaind 56c8c8
#!/bin/bash
iaind 56c8c8
# Author: Iain Douglas <centos:1n6.org.uk>
iaind 56c8c8
#
iaind 56c8c8
iaind 56c8c8
# The zless utility is a wrapper round less so just check that 
iaind 56c8c8
# it works as less should be tested as part of p_less
iaind 56c8c8
#
iaind 56c8c8
iaind 56c8c8
t_Log "Running $0 Testing zless "
iaind 56c8c8
iaind 56c8c8
# -F makes less quit if the output all fits on one screen.
iaind 56c8c8
iaind 56c8c8
zless -F ./tests/p_gzip/gzip-test.txt.gz | grep -q 'gzip-test of single file'
iaind 56c8c8
t_CheckExitStatus  $?
iaind 56c8c8