General:
01Sep09
+kes Many debug code fixes in regression scripts
kes Update tape tests for hardware certification
Add script for doing btape test command
Make btape return error status if test command fails
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
setdebug level=3 dir
yes
wait
messages
-@$out
+@output
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=2 Pool=Default drive=0
yes
wait
messages
-@$out
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
setdebug level=51 storage=DDS-4
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label pool=Default storage=DDS-4 volume=TestVolume001 slot=1 drive=0
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
setdebug level=3 dir
yes
wait
messages
-@$out
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=$SLOT1 Pool=Default drive=$DRIVE1
yes
wait
messages
-@$out
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=2 Pool=Default drive=0
yes
wait
messages
-@$out
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=1 Pool=Default drive=0
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
label volume=TestVolume001 storage=File pool=Default
messages
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label volume=TestVolume001 storage=File pool=Default
yes
wait
messages
-@$out
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
setdebug level=200 storage=DDS-4
wait
list volumes
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_SCRIPT >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
status all
yes
wait
messages
-@$out
quit
END_OF_SCRIPT
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=200 storage=DDS-4
wait
list volumes
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >$tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out $tmp/log1.out
setdebug level=100 storage=File
yes
wait
messages
-@$out
quit
END_OF_DATA
stop_bacula
cat <<END_OF_DATA >$tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out $tmp/log1.out
@#setdebug level=100 storage=File
yes
wait
messages
-@$out
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=200 storage=Dummy
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File1 volume=TestVolume001 pool=Default
no
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_SCRIPT >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
status all
yes
wait
messages
-@$out
quit
END_OF_SCRIPT
start_test
cat <<END_OF_SCRIPT >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
status all
yes
wait
messages
-@$out
quit
END_OF_SCRIPT
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
setdebug level=10 storage=Virtual
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=100 storage=File
cd ${cwd}
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
sql
sql
SELECT * FROM JobMedia;
-@output ${cwd}/tmp/log2.out
+@$out ${cwd}/tmp/log2.out
restore where=${cwd}/tmp/bacula-restores storage=File select all done
yes
wait
messages
-@$out
quit
END_OF_DATA
echo "Done"
cat >tmp/bconcmds <<END_OF_DATA
-@output /dev/null
+@$out /dev/null
messages
@$out tmp/log1.out
setdebug level=150 storage=File
start_test
cat <<END_OF_DATA >tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out tmp/log1.out
setdebug level=2 storage=DDS-4
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >tmp/bconcmds
-@output /dev/null
+@$out /dev/null
estimate job=$JobName listing
estimate job=$JobName listing
messages
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
update volume=TestVolume001 volstatus=Used
run job=migrate-job jobid=1 yes
run job=migrate-job jobid=2 yes
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
start_test
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
label storage=File volume=TestVolume001
cp -f ${tmpsrc}/dird.c ${tmpsrc}/ficheriro2.txt
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
@# Force Incremental on the second Volume
touch ${tmpsrc}/ficheriro2.txt
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
run level=Incremental job=$JobName yes
rm -f 1
cd ${cwd}
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
run level=Differential job=$JobName yes
touch ${tmpsrc}/ficheriro1.txt
touch ${tmpsrc}/ficheriro2.txt
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
run level=Incremental job=$JobName yes
touch ${tmpsrc}/ficheriro1.txt
touch ${tmpsrc}/ficheriro2.txt
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
run level=Incremental job=$JobName yes
touch ${tmpsrc}/ficheriro1.txt
touch ${tmpsrc}/ficheriro2.txt
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
run level=Incremental job=$JobName yes
touch ${tmpsrc}/ficheriro2.txt
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
run level=Incremental job=$JobName yes
wait
status storage=File
messages
-@output
quit
END_OF_DATA
when=`perl -MPOSIX -e "print strftime('%F %T', localtime(time+6000))"`
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/logfile1.out
@################################################################
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
status all
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=TestVolume001
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@# setdebug level=100 storage=File
list volumes
wait
messages
-@output
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=10 dir
yes
wait
messages
-@output
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=FileVolume001 Pool=Default
yes
wait
messages
-@output
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=FileVolume001 Pool=Default
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@# setdebug level=100 storage=File
list volumes
wait
messages
-@output
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=FileVolume001 Pool=Default
yes
wait
messages
-@output
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File1 volume=TestVolume001
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
-@output ${cwd}/tmp/log1.out
+@$out ${cwd}/tmp/log1.out
label storage=File volume=TestVolume001
run job=NightlySave yes
wait
@#
@# now do a restore
@#
-@output ${cwd}/tmp/log2.out
+@$out ${cwd}/tmp/log2.out
restore where=${cwd}/tmp/bacula-restores select all done
yes
wait
messages
-@output
quit
END_OF_DATA
run level=differential job=$JobName yes
wait
messages
-@$out
END_OF_DATA
run_bconsole
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
echo "${cwd}/build" >${cwd}/tmp/file-list
-out="${cwd}/tmp/sed_tmp"
-echo "s%# Maximum File Size% Maximum File Size%g" >${out}
+outf="${cwd}/tmp/sed_tmp"
+echo "s%# Maximum File Size% Maximum File Size%g" >${outf}
cp -f ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
-sed -f ${out} ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
+sed -f ${outf} ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
change_jobname $JobName
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
-#update Volume=TestVolume001 MaxVolBytes=3000000
+@#update Volume=TestVolume001 MaxVolBytes=3000000
run job=$JobName yes
wait
messages
yes
wait
messages
-@tee
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
-@output ${cwd}/tmp/LOCAL_INC_ERR.log
+@$out ${cwd}/tmp/LOCAL_INC_ERR.log
label storage=File volume=TestVolume001
add storage=File2
1
run job=LOCAL_INC_ERR yes
wait
messages
-@output ${cwd}/tmp/REMOTE_INC_ERR.log
+@$out ${cwd}/tmp/REMOTE_INC_ERR.log
run job=REMOTE_INC_ERR yes
wait
messages
-@output ${cwd}/tmp/LOCAL_EXCL_ERR.log
+@$out ${cwd}/tmp/LOCAL_EXCL_ERR.log
run job=LOCAL_EXCL_ERR yes
wait
messages
touch ${cwd}/build/src/test/test1 ${cwd}/build/src/test/test2
cat <<END_OF_DATA >$tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out $tmp/log1.out
label volume=TestVolume001 storage=File pool=Default
yes
wait
messages
-@$out
quit
END_OF_DATA
mv ${cwd}/build/src/test ${cwd}/build/po/test
cat <<END_OF_DATA >$tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out $tmp/log3.out
estimate listing job=$JobName level=incremental
run_bconsole
cat <<END_OF_DATA >$tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out $tmp/log4.out
estimate listing job=$JobName level=incremental accurate=yes
sed 's/JobDefs {/JobDefs { Accurate=yes/' $tmp/1>$scripts/bacula-dir.conf
cat <<END_OF_DATA >$tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out $tmp/log5.out
reload
run_bconsole
cat <<END_OF_DATA >$tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out $tmp/log6.out
estimate listing job=$JobName level=incremental accurate=no
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
-@output ${cwd}/tmp/log1.out
+@$out ${cwd}/tmp/log1.out
label storage=File
TestVolume001
run job=NightlySave
@#
@# now do a restore
@#
-@output ${cwd}/tmp/log2.out
+@$out ${cwd}/tmp/log2.out
restore where=${cwd}/tmp/bacula-restores select
unmark *
mark *
yes
wait
messages
-@output
quit
END_OF_DATA
# Write out bconsole commands to a file
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=150 storage=DDS-4
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
label volume=TestVolume001 storage=File pool=Default
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File1
wait
@#reload
messages
-@output
quit
END_OF_DATA
mount storage=DDS-4
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
estimate job=$JobName listing
estimate job=$JobName
estimate job=$JobName
# run a second job
#
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
run job=$JobName yes
# run a third job
#
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
-@output ${cwd}/tmp/log1.out
+@$out ${cwd}/tmp/log1.out
run job=$JobName yes
wait
messages
# run a fourth job
#
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
-@output ${cwd}/tmp/log1.out
+@$out ${cwd}/tmp/log1.out
run job=$JobName yes
wait
messages
# now do several restores to ensure we cleanup between jobs
#
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
restore where=${cwd}/tmp/bacula-restores select all storage=File done
yes
wait
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat >${cwd}/tmp/bconcmds <<END_OF_DATA
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=TestVolume001
yes
wait
messages
-@output
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
wait
status storage=DDS-4
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
echo "ficheriro2.txt" >${cwd}/tmp/build/ficheriro2.txt
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
run level=Incremental job=$JobName yes
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
@#setdebug level=100 storage=File
cp -f ${tmpsrc}/dird.c ${tmpsrc}/ficheriro2.txt
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
@# Force Incremental on the second Volume
touch ${tmpsrc}/ficheriro2.txt
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
run level=Incremental job=$JobName yes
rm -f 1
cd ${cwd}
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
run level=Differential job=$JobName yes
touch ${tmpsrc}/ficheriro1.txt
touch ${tmpsrc}/ficheriro2.txt
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
run level=Incremental job=$JobName yes
touch ${tmpsrc}/ficheriro1.txt
touch ${tmpsrc}/ficheriro2.txt
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
run level=Incremental job=$JobName yes
touch ${tmpsrc}/ficheriro1.txt
touch ${tmpsrc}/ficheriro2.txt
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
run level=Incremental job=$JobName yes
touch ${tmpsrc}/ficheriro2.txt
cat <<END_OF_DATA >${tmp}/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${tmp}/log1.out
setdebug level=200 storage=File
wait
status storage=File
messages
-@output
quit
END_OF_DATA
echo " "
cat <<END_OF_DATA > >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
-@output ${cwd}/tmp/log1.out
+@$out ${cwd}/tmp/log1.out
label storage=DDS-4 Volume=TestVolume001 slot=0
run job=NightlySave yes
wait
@#
@# now do a restore
@#
-@output ${cwd}/tmp/log2.out
+@$out ${cwd}/tmp/log2.out
restore where=${cwd}/tmp/bacula-restores select all done
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
-@output ${cwd}/tmp/log1.out
+@$out ${cwd}/tmp/log1.out
label storage=File
TestVolume001
run job=NightlySave
@#
@# now do a restore
@#
-@output ${cwd}/tmp/log2.out
+@$out ${cwd}/tmp/log2.out
restore where=${cwd}/tmp/bacula-restores select
unmark *
mark *
yes
wait
messages
-@output
quit
END_OF_DATA
list volumes
messages
wait
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File1 volume=TestVolume001
@#reload
@#reload
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File1 volume=TestVolume001
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
yes
wait
messages
-@$out
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
setdebug level=000 storage=File
list volumes
wait
messages
-@output
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=10 dir
yes
wait
messages
-@output
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=FileVolume001 Pool=Default
yes
wait
messages
-@output
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=FileVolume001 Pool=Default
yes
wait
messages
-@output
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=FileVolume001 Pool=Default
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@# Make sure we can contact all clients
yes
wait
messages
-@output
status dir
status storage=File1
quit
restore where=${cwd}/tmp/bacula-restores select all done yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File1 volume=TestVolume001
wait
setdebug level=0 client=$CLIENT
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=TestVolume001
echo "ficheriro2.txt" >${cwd}/tmp/build/ficheriro2.txt
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@# Force differental on the second Volume
run level=differental job=$JobName yes
wait
messages
-@output
END_OF_DATA
run_bacula
echo "ficheriro2.txt" >${cwd}/tmp/build/ficheriro2.txt
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
run level=incremental job=$JobName yes
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File1 volume=TestVolume001
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
setdebug level=150 storage=DDS-4
wait
list volumes
messages
-@$out
quit
END_OF_DATA
mount storage=DDS-4
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
yes
wait
messages
-@output
quit
END_OF_DATA
done
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
run job=$JobName level=Full yes
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=TestVolume001
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=TestVolume001
yes
wait
messages
-@output
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
setdebug level=150 storage=File
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#label volume=TestVolume001 storage=File pool=Default
fi
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label volume=TestVolume001 storage=File pool=Default
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File1 volume=TestVolume004
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat >${cwd}/tmp/bconcmds <<END_OF_DATA
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=TestVolume001
yes
wait
messages
-@output
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat >${cwd}/tmp/bconcmds <<END_OF_DATA
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=TestVolume001
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label volume=TestVolume001 storage=File pool=Default
yes
wait
messages
-@$out
quit
END_OF_DATA
# Write out bconsole commands to a file
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=150 storage=DDS-4
yes
wait
messages
-@$out
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=200 storage=DDS-4
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out tmp/log1.out
setdebug level=100 dir
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >tmp/bconcmds
-@output
messages
@$out tmp/log1.out
status all
yes
wait
messages
-@output
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
scripts/check_for_zombie_jobs storage=DDS-4
cat <<END_OF_DATA >tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out tmp/log2.out
@#
yes
wait
messages
-@output
quit
END_OF_DATA
# Now write to tape one more time
cat <<END_OF_DATA >tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out tmp/log3.out
run level=Full job=$JobName yes
cat >tmp/bconcmds <<END_OF_DATA
setdebug level=150 storage=File
-@output /dev/null
+@$out /dev/null
messages
-@output/dev/null
+@$out/dev/null
estimate job=$JobName listing
estimate job=$JobName
estimate job=$JobName
# run a second job
#
cat >tmp/bconcmds <<END_OF_DATA
-@output /dev/null
+@$out /dev/null
messages
@$out tmp/log1.out
run job=$JobName
@#
@# now do several restores to ensure we cleanup between jobs
@#
-@output /dev/null
+@$out /dev/null
restore where=${cwd}/tmp/bacula-restores select all storage=File done
yes
wait
yes
wait
messages
-@output
quit
END_OF_DATA
# Write out bconsole commands to a file
cat <<END_OF_DATA >tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=$SLOT1 pool=Full drive=$DRIVE1
yes
wait
messages
-@$out
quit
END_OF_DATA
# Write out bconsole commands to a file
cat <<END_OF_DATA >tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out tmp/log1.out
setdebug level=150 storage=DDS-4
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
echo " "
cat <<END_OF_DATA > ${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
-@output tmp/log1.out
+@$out tmp/log1.out
label storage=DDS-4 Volume=TestVolume001 slot=0
run job=NightlySave yes
wait
@#
@# now do a restore
@#
-@output tmp/log2.out
+@$out tmp/log2.out
restore where=${cwd}/tmp/bacula-restores select all done
yes
wait
run job=VerifyVolume level=Catalog yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=100 storage=File
list volumes
list jobs
messages
-@output
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
setdebug level=150 storage=DiskChanger
list jobs
list volumes
messages
-@output
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
setdebug level=200 storage=Virtual
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
setdebug level=100 storage=DDS-4
yes
wait
messages
-@output
quit
END_OF_DATA
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out ${cwd}/tmp/log6.out
@#setdebug level=200 storage=LTO1
fi
end_test
-
yes
wait
messages
-@$out
quit
END_OF_DATA
run job=$JobName yes
wait
messages
-@$out
+@output
quit
END_OF_DATA
yes
wait
messages
-@$out
quit
END_OF_DATA
start_test
cat <<END_OF_DATA >tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default drive=0
start_test
cat <<END_OF_DATA >tmp/bconcmds
-@output /dev/null
+@$out /dev/null
messages
@$out tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default drive=0