From: Eric Bollengier Date: Thu, 17 Jun 2010 08:03:42 +0000 (+0200) Subject: regress: update prune-base-job-test X-Git-Tag: Release-5.2.1~1265 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9cb93b3dd98e8913517f20f4a9afa65ce36a85f1;p=bacula%2Fbacula regress: update prune-base-job-test --- diff --git a/regress/tests/prune-base-job-test b/regress/tests/prune-base-job-test index 5c1d71ee07..46748ded7d 100755 --- a/regress/tests/prune-base-job-test +++ b/regress/tests/prune-base-job-test @@ -20,8 +20,8 @@ cp tmp/1 $conf/bacula-fd.conf change_jobname BackupClient1 $JobName dircfg=$conf/bacula-dir.conf -$bperl -e 'add_attribute("$dircfg", "AutoPrune", "No", "Client")' -$bperl -e 'add_attribute("$dircfg", "Job Retention", "1s", "Client")' +$bperl -e "add_attribute('$dircfg', 'AutoPrune', 'No', 'Client')" +$bperl -e "add_attribute('$dircfg', 'Job Retention', '1s', 'Client')" p() { echo "##############################################" >> ${cwd}/tmp/log1.out @@ -58,7 +58,7 @@ END_OF_DATA run_bconsole -echo ${cwd}/build > ${cwd}/tmp/file-list +echo ${cwd}/build >> ${cwd}/tmp/file-list cat <${cwd}/tmp/bconcmds @$out $tmp/log4.out @@ -70,6 +70,13 @@ messages run job=backup level=incremental yes wait messages +run job=backup level=differential yes +wait +messages +@# should be empty +run job=backup level=incremental yes +wait +messages @$out $tmp/log2.out @# @# now do a restore @@ -101,13 +108,14 @@ sql SELECT count(*) FROM BaseFiles; list jobs -@#setdebug level=60 director trace=1 -@#prune jobs yes +prune jobs yes list jobs END_OF_DATA run_bconsole -$bperl -e "check_job_list('$tmp/log10.out', 4)" +$bperl -e "check_job_list('$tmp/log10.out', 3,5,6)" +estat=$(($estat + $?)) + stop_bacula end_test