X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fauto-label-test;h=b77ee6423cfcf14dcb4de566c120660165518749;hb=c0aaad2cbccdf8a49448666d2ba89ca4fe531ec9;hp=4a952b4f95eb2aa6653bd8687471fb111dc0a762;hpb=953d058efe4a2ed64e9fb7b9bfc22e7ee0f17750;p=bacula%2Fbacula diff --git a/regress/tests/auto-label-test b/regress/tests/auto-label-test index 4a952b4f95..b77ee6423c 100755 --- a/regress/tests/auto-label-test +++ b/regress/tests/auto-label-test @@ -9,7 +9,7 @@ JobName=AutoLabel copy_test_confs -echo "${cwd}/build" >/tmp/file-list +echo "${cwd}/build" >${cwd}/tmp/file-list cp ${cwd}/bin/bacula-dir.conf ${cwd}/tmp/1 sed "s%# Label Format% Label Format%" ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf @@ -17,10 +17,10 @@ sed "s%# Label Format% Label Format%" ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf change_jobname CompressedTest $JobName start_test -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @output /dev/null messages -@$out tmp/log1.out +@$out ${cwd}/tmp/log1.out status all status all list pools @@ -30,11 +30,18 @@ run job=$JobName storage=File yes list pools list volumes wait +sql +SELECT StartTime, JobFiles, JobId, Level, count(*) AS nb_jobmedia +FROM JobMedia join Job using (JobId) join Client using (ClientId) +where Client.Name = 'localhost-fd' group by JobId, Level, StartTime, +JobFiles order by JobId desc ; + messages @# @# now do a restore @# -@$out tmp/log2.out +@$out ${cwd}/tmp/log2.out +@#setdebug level=400 storage=File restore where=${cwd}/tmp/bacula-restores select storage=File unmark * mark *