X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fbig-vol-test;h=21e4167737db407728a4794c629bb85c51c3a1a5;hb=7e44ec3c3206e286f4a549ab17904a10774f8716;hp=36b0466591614dc7b5c650b4b56006a28a8e6250;hpb=2ee406fbc23b333e68552585c0923eec1c704b6f;p=bacula%2Fbacula diff --git a/regress/tests/big-vol-test b/regress/tests/big-vol-test index 36b0466591..21e4167737 100755 --- a/regress/tests/big-vol-test +++ b/regress/tests/big-vol-test @@ -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 <tmp/bconcmds +cat <${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 <tmp/bconcmds + +cat <${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