X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fmigration-job-test;h=67a7ffe7a22a64881c699b61e036bdf1afc059ab;hb=eb63653497660808a218cc82eaf7ef56e96f9f25;hp=8308251575ce651ed49d1d8cec230dc3243452ab;hpb=8fccc8a5e1cac7acfbdd4f4b3ab29131824928ad;p=bacula%2Fbacula diff --git a/regress/tests/migration-job-test b/regress/tests/migration-job-test index 8308251575..67a7ffe7a2 100755 --- a/regress/tests/migration-job-test +++ b/regress/tests/migration-job-test @@ -8,14 +8,12 @@ TestName="migration-job-test" JobName=MigrationJobSave . scripts/functions -set_debug 0 -. 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 @@ -27,35 +25,51 @@ 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 -list volumes @# run two jobs (both will be migrated) run job=$JobName yes run job=$JobName yes wait +list jobs list volumes +@#setdebug level=100 dir @# should migrate two jobs +@#setdebug level=51 storage=DiskChanger run job=migrate-job yes -list volumes wait messages -purge volume=FileVolume001 +@# purge volume=FileVolume001 +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 * done yes +list volumes wait messages @output