]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: Check comments in log output
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 26 Jan 2010 10:14:15 +0000 (11:14 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:23 +0000 (16:49 +0200)
regress/tests/comment-test

index 9f266a3573c60cf6eb7b4f081ff1a4adaf985890..887e7f5e7da6bdaea7e49f665dda1527d7be5f61 100755 (executable)
@@ -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