]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/big-vol-test.cmd
Fix compiler warnings in acl and xattr code
[bacula/bacula] / regress / win32 / tests / big-vol-test.cmd
1 REM Create a big Volume > 5 GB and backup to it to test disk
2 REM   seeking on big volumes.  We cheat and artifically grow 
3 REM   the volume.
4 SET TestName="big-vol-test"
5 SET JobName=bigvol
6
7 CALL scripts\functions set_debug 0
8
9 CALL scripts\cleanup
10 CALL scripts\copy-test-confs
11 ECHO %CD:\=/%/build >tmp\file-list
12
13 CALL scripts\functions change_jobname CompressedTest %JobName%
14 CALL scripts\functions start_test
15
16 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\big-vol-test.1.bscr >tmp\bconcmds
17
18 CALL scripts\functions run_bacula
19 CALL scripts\functions check_for_zombie_jobs storage=File
20
21 REM
22 REM Now increase the size of the Volume using gigaslam
23 REM
24 CD %CD%\tmp
25 REM make big file
26 SET size=5200000000
27 %CD%/build/src/tools/grow TestVolume001 %size%
28 IF NOT ERRORLEVEL 0 GOTO ERROR
29 CD %CD%
30
31 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" -e "s;@size@;%size%;g" tests\big-vol-test.2.bscr >tmp\bconcmds
32
33 CALL scripts\functions run_bconsole
34 CALL scripts\functions check_for_zombie_jobs storage=File
35 CALL scripts\functions stop_bacula
36
37 CALL scripts\functions check_two_logs
38 CALL scripts\functions check_restore_diff
39 CALL scripts\functions end_test
40 REM Get rid of big files
41 DEL /F %CD%\tmp\TestVolume001
42
43 :ERROR
44 ECHO Execute of %CD%\build\src\tools\grow failed.