From 4a232799c5c9595e4e7e9eef9e2f083aeed5b982 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 26 Jan 2010 11:14:15 +0100 Subject: [PATCH] regress: Check comments in log output --- regress/tests/comment-test | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 -- 2.39.5