#!/bin/bash . ./test-common.sh cleanup 18 # ------------------------------- Test 18 ------------------------------------ preptest test.log 18 1 $RLR test-config.18 -l syslog --force checkoutput </dev/null if [ $? = 0 ]; then journalctl -n 50 2>/dev/null | grep syslog_test 2>/dev/null >/dev/null if [ $? = 0 ]; then SYSLOG_TESTS=1 fi fi if [ $SYSLOG_TESTS = 1 ]; then journalctl -n 50 2>/dev/null|grep $PWD/test.log.1 2>/dev/null >/dev/null if [ $? != 0 ]; then echo "syslog message not found" exit 1 fi fi