]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/recycle-test
Fix backup-bacula regression
[bacula/bacula] / regress / tests / recycle-test
index 712b1d32f9cd0fdb2751345f34412875aa5c0e40..467d959052a42eb4457c7e8c4823f5ff0066a30f 100755 (executable)
@@ -5,6 +5,11 @@
 #   volumes to be recycled, and cycling through the volumes
 #   twice. Tests maxvoljobs and volretention.
 #
+# Note, this test is a bit tricky, in that if you get too
+#   much data in the regress/build directory, the test will
+#   fail because it will run out of enough volumes to backup
+#   all the data.
+#
 TestName="recycle-test"
 JobName=Recycle
 . scripts/functions
@@ -17,20 +22,27 @@ change_jobname NightlySave $JobName
 start_test
 
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
 messages
 @$out ${cwd}/tmp/log1.out
 label storage=File1 volume=TestVolume001
 label storage=File1 volume=TestVolume002
 label storage=File1 volume=TestVolume003
+label storage=File1 volume=TestVolume004
+@# Note, this is going to fail if the pruning gets
+@#  to tight because the saved volume is too large.
+@#  In that case, either add another volume, or
+@#  increase the volume capacity a bit.
 update Volume=TestVolume001 volretention=10s
 update Volume=TestVolume001 maxvolbytes=200000000
 update Volume=TestVolume002 volretention=10s
 update Volume=TestVolume002 maxvolbytes=200000000
 update Volume=TestVolume003 volretention=10s
 update Volume=TestVolume003 maxvolbytes=200000000
+update Volume=TestVolume004 volretention=10s
+update Volume=TestVolume004 maxvolbytes=200000000
 list volumes
-@#setdebug level=100 storage=File1
+setdebug level=150 storage=File1
 run job=$JobName storage=File1 level=full yes
 run job=$JobName storage=File1 level=full yes
 run job=$JobName storage=File1 level=full yes
@@ -76,7 +88,6 @@ done
 yes
 wait
 messages
-@output
 quit
 END_OF_DATA