]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/copy-job-test
regress: add function to create many dirs
[bacula/bacula] / regress / tests / copy-job-test
index b19368ecf8c75abb047c2298ca5007d043b36d28..6fa2f0472296e20320f80cbe74b43ef26ddea58c 100755 (executable)
@@ -14,8 +14,8 @@ scripts/cleanup
 scripts/copy-migration-confs
 scripts/prepare-disk-changer
 echo "${cwd}/build" >${cwd}/tmp/file-list
-sed -i 's/migrate/copy/g' ${cwd}/bin/bacula-dir.conf
-sed -i 's/Migrate/Copy/g' ${cwd}/bin/bacula-dir.conf
+sed 's/migrate/copy/g' ${cwd}/bin/bacula-dir.conf > ${cwd}/tmp/1
+sed 's/Migrate/Copy/g' ${cwd}/tmp/1 > ${cwd}/bin/bacula-dir.conf
 
 
 change_jobname NightlySave $JobName
@@ -29,10 +29,10 @@ start_test
 
 # Write out bconsole commands
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@$out /dev/null
 messages
 @$out ${cwd}/tmp/log1.out
-setdebug level=100 storage=File
+@# 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
@@ -48,7 +48,7 @@ list volumes
 run job=copy-job yes
 wait
 messages
-purge volume=FileVolume001
+@#purge volume=FileVolume001
 list jobs 
 list volumes
 wait
@@ -77,7 +77,6 @@ yes
 list volumes
 wait
 messages
-@output
 quit
 END_OF_DATA