Blame tests/p_logwatch/logwatch_test.sh

Athmane Madjoudj 8846d4
#!/bin/sh
Athmane Madjoudj 8846d4
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 8846d4
Athmane Madjoudj 8846d4
t_Log "Running $0 - logwatch test."
Athmane Madjoudj 8846d4
40b4c8
if [ "$CONTAINERTEST" -eq "1" ]; then
40b4c8
    t_Log "Running in container -> SKIP"
40b4c8
    exit 0
40b4c8
fi
40b4c8
Pablo Greco 33a881
if [ "$centos_ver" -ge 7 ] ; then
399110
 lw_options="--range Today"
399110
else
399110
 lw_options="--range Today --print"
399110
fi
399110
399110
logwatch ${lw_options}| grep -q 'Logwatch End'
Athmane Madjoudj 8846d4
Athmane Madjoudj 8846d4
t_CheckExitStatus $?