]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/2drive-3pool-test.cmd
Fix compiler warnings in acl and xattr code
[bacula/bacula] / regress / win32 / tests / 2drive-3pool-test.cmd
1 REM Run a simple backup of the Bacula build directory. Create three
2 REM   tapes, each in a different pool, then run some jobs asking for the
3 REM   volume on drive three.  It should find it without moving the 
4 REM   volume.
5 REM
6 REM This script uses the virtual disk autochanger and two drives
7 REM
8 SET TestName="2drive-3pool-disk"
9 SET JobName="2dr3pooldisk"
10
11 CALL scripts\functions set_debug 0
12
13 CALL scripts\cleanup
14 CALL scripts\copy-2disk-drive-confs
15 CALL scripts\prepare-two-disks
16
17 ECHO %CD:\=/%/build >tmp\file-list
18 CALL scripts\functions change_jobname NightlySave %JobName%
19 CALL scripts\functions start_test
20
21 REM Turn off Prefer Mounted Volumes so we use 2 drives
22 REM outf="tmp/sed_tmp"
23 REM  ECHO "s%REM Prefer Mounted Volumes%  Prefer Mounted Volumes%g" >${outf}
24 REM cp bin/bacula-dir.conf tmp/1
25 REM Comment the next line out to write everything to one drive
26 REM  otherwise, it writes the two jobs to different drives
27 REM sed -f ${outf} tmp/1 >bin/bacula-dir.conf
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\2drive-3pool-test.1.bscr >tmp\bconcmds
31 CALL scripts\functions run_bacula
32
33 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\2drive-3pool-test.2.bscr >tmp\bconcmds
34 CALL scripts\functions run_bconsole
35
36 CALL scripts\functions check_for_zombie_jobs storage=DDS-4
37 CALL scripts\functions stop_bacula
38
39 CALL scripts\functions check_two_logs
40 CALL scripts\functions check_restore_diff
41
42 CALL scripts\functions end_test
43