3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # This script is used to test multiple devices grouped in
9 # the director configuration
11 TestName="multi-drive1-test"
16 scripts/copy-2disk-confs
17 scripts/prepare-disk-changer
19 echo "s/signature=MD5/signature=MD5; readfifo=yes/" > $tmp/1
20 echo "s/FileStorage/Device = FileStorage; Device=FileStorage2; Device=FileStorage3; Device=FileStorage4/" >> $tmp/1
21 sed -f $tmp/1 $conf/bacula-dir.conf > $tmp/2
22 $bperl -e 'add_attribute("$tmp/2", "Label Format", "Vol", "Pool", "Default")'
23 $bperl -e 'add_attribute("$tmp/2", "Label Format", "Vol", "Pool", "Inc")'
24 $bperl -e 'add_attribute("$tmp/2", "SpoolData", "no", "Job")'
25 cp $tmp/2 $conf/bacula-dir.conf
27 $bperl -e 'add_attribute("$conf/bacula-sd.conf", "Label Media", "yes", "Device")'
28 $bperl -e 'extract_resource("$conf/bacula-sd.conf", "Device", "FileStorage")' > $tmp/2
30 sed "s/FileStorage/FileStorage$i/" $tmp/2 >> $conf/bacula-sd.conf
35 echo "$cwd/build" >${cwd}/tmp/file-list
36 echo "$tmp/fifo" >>${cwd}/tmp/file-list
39 (sleep 15 > $tmp/fifo)&
41 change_jobname $JobName
47 # Write out bconsole commands
48 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
51 @$out ${cwd}/tmp/log1.out
52 run level=full job=backup storage=File pool=Default yes
54 run level=full job=backup storage=File pool=Default yes
56 run level=full job=backup storage=File pool=Inc yes
68 check_for_zombie_jobs storage=File
69 check_for_zombie_jobs storage=tape