3 # Test if Bacula can automatically create a Volume label.
6 TestName="auto-label-test"
12 echo "${cwd}/build" >${cwd}/tmp/file-list
14 cp ${cwd}/bin/bacula-dir.conf ${cwd}/tmp/1
15 sed "s%# Label Format% Label Format%" ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf
17 change_jobname CompressedTest $JobName
20 cat <<END_OF_SCRIPT >${cwd}/tmp/bconcmds
23 @$out ${cwd}/tmp/log1.out
28 @#setdebug level=110 storage=File
29 run job=$JobName storage=File yes
34 SELECT StartTime, JobFiles, JobId, Level, count(*) AS nb_jobmedia
35 FROM JobMedia join Job using (JobId) join Client using (ClientId)
36 where Client.Name = 'localhost-fd' group by JobId, Level, StartTime,
37 JobFiles order by JobId desc ;
43 @$out ${cwd}/tmp/log2.out
44 @#setdebug level=400 storage=File
45 restore where=${cwd}/tmp/bacula-restores select storage=File
65 check_for_zombie_jobs storage=File