]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/messages-test
Make wait longer for better recycling
[bacula/bacula] / regress / tests / messages-test
index 84093986c87e34411a30375be921723df7ebf4ef..454a4d794004686029e60dcd23b17680b6c69a62 100755 (executable)
@@ -2,6 +2,8 @@
 #
 # Run a simple backup of the Bacula build directory
 #   then restore it.
+# We have bad configuration for Messages resources, everything
+# should work
 #
 TestName="messages-test"
 JobName=backup
@@ -9,26 +11,30 @@ JobName=backup
 
 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
 #
 outf="$tmp/sed_tmp"
 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%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
 messages
 @$out $tmp/log1.out
-setdebug level=100 storage=File
+@#setdebug level=100 storage=File
 label volume=TestVolume001 storage=File pool=File
 run job=$JobName yes
 @sleep 1