test: minor test cleanup and comments
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
parent
13b1fd0aa0
commit
eb6e85e851
@ -34,7 +34,6 @@ reload
|
|||||||
|
|
||||||
./api -i troglobit -p
|
./api -i troglobit -p
|
||||||
sleep 2
|
sleep 2
|
||||||
ps fax |grep -A2 syslogd
|
|
||||||
grep "troglobit - MSGID - ${MSG}" "${LOGV1}" || (echo "== ${LOGV1}"; tail -10 "${LOGV1}"; echo "== ${LOG}"; tail -10 "${LOG}"; cat "${CONFD}/v1.conf"; FAIL "Cannot find troglobit")
|
grep "troglobit - MSGID - ${MSG}" "${LOGV1}" || (echo "== ${LOGV1}"; tail -10 "${LOGV1}"; echo "== ${LOG}"; tail -10 "${LOG}"; cat "${CONFD}/v1.conf"; FAIL "Cannot find troglobit")
|
||||||
|
|
||||||
print "Phase 4 - Verify RFC5424 API with logger(1)"
|
print "Phase 4 - Verify RFC5424 API with logger(1)"
|
||||||
|
@ -26,7 +26,7 @@ setup2 -m0 -a 127.0.0.2:* -b ":${PORT2}"
|
|||||||
print "TEST: Starting"
|
print "TEST: Starting"
|
||||||
|
|
||||||
../src/logger -t fwd -p ntp.notice -u "${SOCK}" -m "NTP123" "${MSG}"
|
../src/logger -t fwd -p ntp.notice -u "${SOCK}" -m "NTP123" "${MSG}"
|
||||||
sleep 3
|
sleep 3 # Allow message to be received, processed, and forwarded
|
||||||
grep "fwd - NTP123 - ${MSG}" "${LOG2}" || FAIL "Nothing forwarded."
|
grep "fwd - NTP123 - ${MSG}" "${LOG2}" || FAIL "Nothing forwarded."
|
||||||
|
|
||||||
OK
|
OK
|
||||||
|
Loading…
Reference in New Issue
Block a user