]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/scratch-pool-test.cmd
Delete unwanted subdirectory
[bacula/bacula] / regress / win32 / tests / scratch-pool-test.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. One minor wrinkle: we create the two tapes
6 REM   in the Scratch pool, so they should be switched to the Default
7 REM   Pool automatically.
8 REM We set TestVolume001 to not in the changer, so the algorithm
9 REM   should find TestVolume002 and use it rather than blocking.
10 REM
11 REM  Note we use the viritual disk autochanger
12 REM
13 SET TestName=scratch-pool-test
14 SET JobName=scratch-pool
15
16 CALL scripts\functions set_debug 0
17
18 CALL config_out
19 IF "%AUTOCHANGER%" == "nul" (
20    ECHO two-volume-test skipped. No autochanger.
21    EXIT /b 1
22 )
23
24 CALL scripts\cleanup
25 CALL scripts\copy-2disk-confs >nul 2>&1
26 CALL scripts\prepare-two-disks
27  
28 ECHO %CD:\=/%/build >\tmp\file-list
29
30 COPY bin\bacula-sd.conf tmp\1 >nul 2>&1
31 sed -e "s;# Maximum File Size;  Maximum File Size;g" tmp\1 >bin\bacula-sd.conf
32
33 CALL scripts\functions change_jobname NightlySave %JobName%
34 CALL scripts\functions start_test
35
36 REM Write out bconsole commands
37 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\scratch-pool-test.bscr >tmp\bconcmds
38
39 CALL scripts\functions run_bacula
40 CALL scripts\functions check_for_zombie_jobs storage=DDS-4
41 CALL scripts\functions stop_bacula
42
43 CALL scripts\functions check_two_logs
44 CALL scripts\functions check_restore_diff
45 CALL scripts\functions end_test