From: Eric Bollengier Date: Tue, 26 Jan 2010 10:14:15 +0000 (+0100) Subject: regress: Check comments in log output X-Git-Tag: Release-5.2.1~1843 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=beef00f0ee8e46cc829fe9350b727fdea43d2266;p=bacula%2Fbacula regress: Check comments in log output --- diff --git a/regress/tests/comment-test b/regress/tests/comment-test index 9f266a3573..887e7f5e7d 100755 --- a/regress/tests/comment-test +++ b/regress/tests/comment-test @@ -99,4 +99,20 @@ check_two_logs # rm -f ${tmpsrc}/*.c check_restore_tmp_build_diff + +grep "This is a comment for $JobName" $tmp/log3.out >/dev/null +if [ $? != 0 ]; then + print_debug "ERR: Can't find comment" + estat=1 +fi +grep "Ticket #1220 requested by toto@bacula.org" $tmp/log3.out >/dev/null +if [ $? != 0 ]; then + print_debug "ERR: Can't find comment" + estat=1 +fi +grep "This is the incremental job" $tmp/log3.out >/dev/null +if [ $? != 0 ]; then + print_debug "ERR: Can't find comment" + estat=1 +fi end_test