bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_syslog/syslog_logging.sh

Athmane Madjoudj 41ed94
#!/bin/bash
Athmane Madjoudj 41ed94
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 41ed94
Athmane Madjoudj 41ed94
t_Log "Running $0 - check if syslog deamon is working"
Athmane Madjoudj 41ed94
Athmane Madjoudj 41ed94
logger "t_functional_logging_test"
Athmane Madjoudj 41ed94
23d4a0
sleep 2
23d4a0
Athmane Madjoudj 41ed94
grep "t_functional_logging_test" /var/log/messages > /dev/null 2>&1
Athmane Madjoudj 41ed94
Athmane Madjoudj 41ed94
t_CheckExitStatus $?
Athmane Madjoudj 41ed94