]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/auto-label-test
regress: add function to create many dirs
[bacula/bacula] / regress / tests / auto-label-test
index 0b85a90fa076f4578a024284bfb0974bb98ac72b..2de6f101cc9a8ada84c19f5c920ff0f92fc87c76 100755 (executable)
@@ -18,7 +18,7 @@ change_jobname CompressedTest $JobName
 start_test
 
 cat <<END_OF_SCRIPT >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
 messages
 @$out ${cwd}/tmp/log1.out
 status all
@@ -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 ${cwd}/tmp/log2.out
+@#setdebug level=400 storage=File
 restore where=${cwd}/tmp/bacula-restores select storage=File
 unmark *
 mark *
@@ -51,12 +58,11 @@ done
 yes
 wait
 messages
-@$out
 quit
 END_OF_SCRIPT
 
 run_bacula
-check_for_zombie_jobs storage=File || exit 1
+check_for_zombie_jobs storage=File
 stop_bacula
 
 check_two_logs