]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/two-volume-tape.cmd
Updates
[bacula/bacula] / regress / win32 / tests / two-volume-tape.cmd
1 REM
2 REM Run a simple backup of the Bacula build directory 
3 REM  to two tapes where the maximum tape file size is set to 1M
4 REM  Note, this test simulates the tape filling and writing to
5 REM   the next tape.
6 REM
7 SET TestName=two-volume-tape
8 SET JobName=twovoltape
9 CALL scripts\functions set_debug 0
10
11 CALL config_out
12 IF "%AUTOCHANGER%" == "nul" (
13    ECHO two-volume-tape test skipped. No autochanger.
14    EXIT /b 1
15 )
16
17 CALL scripts\cleanup
18 CALL scripts\copy-2tape-confs
19 CALL scripts\prepare-two-tapes
20  
21 ECHO %CD:\=/%/build >\tmp\file-list
22
23 COPY bin\bacula-sd.conf tmp\1
24 sed -e "s%# Maximum File Size%  Maximum File Size%g" >bin\bacula-sd.conf
25
26 CALL scripts\functions change_jobname %JobName%
27 CALL scripts\functions start_test
28
29 REM Write out bconsole commands
30 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\two-volume-tape.1.bscr >tmp\bconcmds
31
32 CALL scripts\functions run_bacula
33 CALL scripts\functions check_for_zombie_jobs storage=DDS-4
34 CALL scripts\functions stop_bacula
35
36 mt -f %TAPE_DRIVE% rewind
37 mtx -f %AUTOCHANGER% unload
38 bin\bsleep 15
39
40 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\two-volume-tape.2.bscr >tmp\bconcmds
41
42 CALL scripts\functions run_bacula
43 CALL scripts\functions check_for_zombie_jobs storage=DDS-4
44 CALL scripts\functions stop_bacula
45
46 CALL scripts\functions check_two_logs
47 CALL scripts\functions check_restore_diff
48 CALL scripts\functions end_test