#!/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
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
@$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
END_OF_DATA
run_bacula
-check_for_zombie_jobs storage=LTO3 $clientname
+check_for_zombie_jobs storage=File $clientname
stop_bacula