3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a simple backup of the Bacula build directory
10 # We have bad configuration for Messages resources, everything
13 TestName="messages-test"
17 # turn off until the email problem is solved
22 change_jobname BackupClient1 $JobName
25 # Zap out any schedule in default conf file so that
26 # it doesn't start during our test
29 echo "s% Schedule =%# Schedule =%g" >$outf
31 # tweak all Messages {} with non valid path
32 echo 's%append = "%append = "/nowhere%g' >> $outf
33 echo "s%bsmtp -h $SMTP_HOST%bsmtp -h nonvalidhost%g" >> $outf
34 echo 's%# mail% mail%' >> $outf
35 echo 's%Bacula daemon message%DELETE THIS MESSAGE Bacula daemon message%' >> $outf
36 echo 's%Bacula:%DELETE THIS MESSAGE Bacula:%' >> $outf
37 #echo 's%mailcommand = "%mailcommand = "/nowhere%g' >> $outf
39 cp $scripts/bacula-dir.conf $tmp/1
40 sed -f ${outf} $tmp/1 >$scripts/bacula-dir.conf
43 cat <<END_OF_DATA >$tmp/bconcmds
47 @#setdebug level=100 storage=File
48 label volume=TestVolume001 storage=File pool=File
58 restore where=$tmp/bacula-restores select all done
66 check_for_zombie_jobs storage=File