]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/big-vol-test
Update
[bacula/bacula] / regress / tests / big-vol-test
index 0c279cafb468b4643b35fb5334690ecf8deebeda..21e4167737db407728a4794c629bb85c51c3a1a5 100755 (executable)
@@ -10,15 +10,16 @@ JobName=bigvol
 
 scripts/cleanup
 scripts/copy-test-confs
-echo "${cwd}/build" >/tmp/file-list
+cwd=`pwd`
+echo "${cwd}/build" >${cwd}/tmp/file-list
 
 change_jobname CompressedTest $JobName
 start_test
 
-cat <<END_OF_DATA >tmp/bconcmds
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @output /dev/null
 messages
-@$out tmp/log1.out
+@$out ${cwd}/tmp/log1.out
 @#setdebug level=100 storage=File
 label storage=File volume=TestVolume001
 run job=$JobName yes
@@ -34,19 +35,19 @@ check_for_zombie_jobs storage=File
 # Now increase the size of the Volume using gigaslam
 #
 cd ${cwd}/tmp
-# make 1 GB file
-${cwd}/build/src/tools/grow TestVolume001 5200000000
+# make big file
+size=5200000000
+${cwd}/build/src/tools/grow TestVolume001 ${size}
 if [ $? != 0 ]; then
    echo "Execute of ${cwd}/build/src/tools/grow failed."
    exit 1
 fi
-size=5200000000
 cd ${cwd}
 
-cat <<END_OF_DATA >tmp/bconcmds
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @output /dev/null
 messages
-@$out tmp/log1.out
+@$out ${cwd}/tmp/log1.out
 sql
 UPDATE Media SET Volbytes=${size} WHERE VolumeName='TestVolume001';
 
@@ -61,7 +62,7 @@ messages
 sql
 SELECT * FROM JobMedia;
 
-@output tmp/log2.out
+@output ${cwd}/tmp/log2.out
 restore where=${cwd}/tmp/bacula-restores storage=File select all done
 yes
 wait