]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/three-pool-recycle-test
regress: add function to create many dirs
[bacula/bacula] / regress / tests / three-pool-recycle-test
index 7f1557a16988f1f1eacb14b32d2e789f2e6443e4..2a145a1211a0bf6b64b4cd6aed9fca94eda25f49 100755 (executable)
@@ -4,7 +4,7 @@
 #  an autochanger. Note, the Director has four Pools in its 
 #  conf:  Default, Full, Inc, and Scratch.  Default is used in the
 #  NightlySave job by default.  What is backed up is what
-#  is in /tmp/file-list, which is by default the Bacula
+#  is in ${cwd}/tmp/file-list, which is by default the Bacula
 #  source code (i.e. the build directory).
 #
 #  Note, we use the virtual disk autochanger.
@@ -16,25 +16,25 @@ JobName=Three-pool-recycle
 cwd=`pwd`
 scripts/cleanup
 scripts/copy-2disk-confs
-scripts/prepare-two-disks
+scripts/prepare-disk-changer
 
 # remove Client Run Before Job
 cp ${cwd}/bin/bacula-dir.conf ${cwd}/tmp/1
 sed "s%Client Run Before Job%#Client Run Before Job%" ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf
 
-echo "${cwd}/build" >/tmp/file-list
+echo "${cwd}/build" >${cwd}/tmp/file-list
 
 start_test
 
 # Write out bconsole commands to a file
-cat <<END_OF_DATA >tmp/bconcmds
-@output /dev/null
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
+@$out /dev/null
 messages
-@$out tmp/log1.out
-@#setdebug level=150 storage=DDS-4
-label storage=DDS-4 volume=TestVolume001 slot=1 pool=Full drive=0
-label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0
-label storage=DDS-4 volume=TestVolume003 slot=3 pool=Scratch drive=0
+@$out ${cwd}/tmp/log1.out
+@#setdebug level=150 storage=tape
+label storage=tape volume=TestVolume001 slot=1 pool=Full drive=0
+label storage=tape volume=TestVolume002 slot=2 pool=Default drive=0
+label storage=tape volume=TestVolume003 slot=3 pool=Scratch drive=0
 update Volume=TestVolume001 maxvoljobs=1
 update Volume=TestVolume002 maxvoljobs=1
 update Volume=TestVolume003 volretention=7s
@@ -80,7 +80,7 @@ messages
 list volumes
 @# should recycle Scratch pool
 run job=NightlySave2 level=Full pool=Full yes
-status storage=DDS-4
+status storage=tape
 messages
 wait
 list volumes
@@ -88,17 +88,16 @@ messages
 @# 
 @# now do a restore
 @#
-@$out tmp/log2.out
-restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
+@$out ${cwd}/tmp/log2.out
+restore where=${cwd}/tmp/bacula-restores select all storage=tape done
 yes
 wait
 messages
-@$out
 quit
 END_OF_DATA
 
 run_bacula
-check_for_zombie_jobs storage=DDS-4
+check_for_zombie_jobs storage=tape
 stop_bacula
 
 check_two_logs