From: Eric Bollengier Date: Tue, 26 Jan 2010 10:14:15 +0000 (+0100) Subject: regress: Check comments in log output X-Git-Tag: Release-7.0.0~2308 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4a232799c5c9595e4e7e9eef9e2f083aeed5b982;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