]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/vtape-bug-1288
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / tests / vtape-bug-1288
old mode 100644 (file)
new mode 100755 (executable)
index 7012470..07ffde0
@@ -1,4 +1,9 @@
 #!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
 #
 # Run backups with dummy tape driver
 # This test setups an Autochanger with 80 slots
@@ -30,6 +35,12 @@ sed -i 's!Client Run Before Job = "/bin/sleep 2"!!' bin/bacula-dir.conf
 scripts/prepare-fake-autochanger
 
 echo "${cwd}/build" >${cwd}/tmp/file-list
+echo "${cwd}/build" >>${cwd}/tmp/file-list
+echo "${cwd}/build" >>${cwd}/tmp/file-list
+echo "${cwd}/build" >>${cwd}/tmp/file-list
+echo "${cwd}/build" >>${cwd}/tmp/file-list
+echo "${cwd}/build" >>${cwd}/tmp/file-list
+echo "${cwd}/build" >>${cwd}/tmp/file-list
 
 start_test
 
@@ -44,24 +55,13 @@ cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @$out ${cwd}/tmp/log1.out
 messages
 @#label barcodes slots=1-10 pool=Scratch storage=LTO3 drive=0
-add pool=Inc storage=LTO3 drive=0
-1
-vol
-1
-1
-yes
-add pool=Inc storage=LTO3 drive=0
-1
-vol
-2
-2
-yes
 list volumes
 @$out ${cwd}/tmp/log1.out
-run storage=LTO3 when="$when1" job=NightlySave  pool=Inc     yes
-run storage=LTO3 when="$when1" job=NightlySave2 pool=Inc     yes
-run storage=LTO3 when="$when1" job=NightlySave1 pool=Inc     yes
-@sleep 6
+run storage=File when="$when1" job=NightlySave  pool=Inc     yes
+run storage=File when="$when1" job=NightlySave2 pool=Inc     yes
+run storage=File when="$when1" job=NightlySave1 pool=Inc     yes
+#
+#@sleep 6
 messages
 wait
 messages
@@ -69,7 +69,7 @@ quit
 END_OF_DATA
 
 run_bacula
-check_for_zombie_jobs storage=LTO3 $clientname
+check_for_zombie_jobs storage=File $clientname
 
 
 stop_bacula