X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fmigration-job-test;h=69cbe43dc38f330ea0a206c4c33322f375df910a;hb=7ec6a7e8c7b6908e321883b18dbc64e244bc282a;hp=ab979daf84ce54534df5904443bf8eeb9f534f0d;hpb=00a8f284933e0d912ae9588924a6f9a68062bb46;p=bacula%2Fbacula diff --git a/regress/tests/migration-job-test b/regress/tests/migration-job-test index ab979daf84..69cbe43dc3 100755 --- a/regress/tests/migration-job-test +++ b/regress/tests/migration-job-test @@ -9,12 +9,11 @@ TestName="migration-job-test" JobName=MigrationJobSave . scripts/functions -. config.out scripts/cleanup scripts/copy-migration-confs scripts/prepare-two-disks -echo "${cwd}/build" >/tmp/file-list +echo "${cwd}/build" >${cwd}/tmp/file-list change_jobname NightlySave $JobName start_test @@ -26,10 +25,11 @@ start_test # Pool Full uses Storage=DiskChanger # Write out bconsole commands -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @output messages -@$out tmp/log1.out +@$out ${cwd}/tmp/log1.out +@#setdebug level=100 storage=File label storage=File volume=FileVolume001 Pool=Default label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Full drive=0 label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0 @@ -41,6 +41,7 @@ list jobs list volumes @#setdebug level=100 dir @# should migrate two jobs +@#setdebug level=51 storage=DiskChanger run job=migrate-job yes wait messages @@ -48,10 +49,21 @@ messages list jobs list volumes wait +@# +@# Now do another backup, but level Incremental +@# +run job=$JobName level=Incremental yes +wait +messages +@# +@# This final job that runs should be Incremental and +@# not upgraded to full. +list jobs @# @# now do a restore @# -@$out tmp/log2.out +@$out ${cwd}/tmp/log2.out +list volumes restore where=${cwd}/tmp/bacula-restores select storage=DiskChanger unmark * mark *