]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/messages-test
regress: add function to create many dirs
[bacula/bacula] / regress / tests / messages-test
index a8456a79a8668abf94f3d880707af3d5301175c7..ea83b6b4a3792bfd554e19dd4875658871e6a1a9 100755 (executable)
@@ -9,9 +9,13 @@ TestName="messages-test"
 JobName=backup
 . scripts/functions
 
+# turn off until the email problem is solved
+exit 0
+
 scripts/cleanup
 scripts/copy-confs
-
+change_jobname BackupClient1 $JobName
+start_test
 #
 # Zap out any schedule in default conf file so that
 #  it doesn't start during our test
@@ -21,13 +25,15 @@ echo "s%  Schedule =%# Schedule =%g" >$outf
 
 # tweak all Messages {} with non valid path
 echo 's%append = "%append = "/nowhere%g' >> $outf
-echo 's%mailcommand = "%mailcommand = "/nowhere%g' >> $outf
+echo "s%bsmtp -h $SMTP_HOST%bsmtp -h nonvalidhost%g" >> $outf
+echo 's%# mail%  mail%' >> $outf
+echo 's%Bacula daemon message%DELETE THIS MESSAGE Bacula daemon message%' >> $outf
+echo 's%Bacula:%DELETE THIS MESSAGE Bacula:%' >> $outf
+#echo 's%mailcommand = "%mailcommand = "/nowhere%g' >> $outf
 
 cp $scripts/bacula-dir.conf $tmp/1
 sed -f ${outf} $tmp/1 >$scripts/bacula-dir.conf
 
-change_jobname BackupClient1 $JobName
-start_test
 
 cat <<END_OF_DATA >$tmp/bconcmds
 @$out /dev/null