]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/big-vol-test
ebl make fileregexp-test working with git repository
[bacula/bacula] / regress / tests / big-vol-test
index 36b0466591614dc7b5c650b4b56006a28a8e6250..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,25 +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/gigaslam
+# make big file
+size=5200000000
+${cwd}/build/src/tools/grow TestVolume001 ${size}
 if [ $? != 0 ]; then
-   echo "Execute of ${cwd}/build/src/tools/gigaslam failed."
-   rm -f gigaslam.gif
+   echo "Execute of ${cwd}/build/src/tools/grow failed."
    exit 1
 fi
-cat gigaslam.gif >>TestVolume001
-cat gigaslam.gif >>TestVolume001
-cat gigaslam.gif >>TestVolume001
-cat gigaslam.gif >>TestVolume001
-cat gigaslam.gif >>TestVolume001
-size=`ls -l TestVolume001 | cut -f 5 -d ' '`
-ls -l TestVolume001
 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';
 
@@ -67,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
@@ -84,5 +79,4 @@ check_two_logs
 check_restore_diff
 end_test
 # Get rid of big files
-rm -f ${cwd}/tmp/gigaslam.gif
 rm -f ${cwd}/tmp/TestVolume001