X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fbig-vol-test;h=21e4167737db407728a4794c629bb85c51c3a1a5;hb=7e44ec3c3206e286f4a549ab17904a10774f8716;hp=8a9fff470adf9ad43ac33aa365367511433eb01a;hpb=798f4808ec48e7d4eb4e4b1a365bc0b23859f8d2;p=bacula%2Fbacula diff --git a/regress/tests/big-vol-test b/regress/tests/big-vol-test index 8a9fff470a..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,18 +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=`ls -l TestVolume001 | cut -f 5 -d ' '` 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'; @@ -60,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