]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/two-jobs-test.cmd
Delete unwanted subdirectory
[bacula/bacula] / regress / win32 / tests / two-jobs-test.cmd
1 REM
2 REM Run a simple backup of the Bacula build directory using the compressed option
3 REM   then backup a second time and finally restore it
4 REM
5 SET TestName=two-jobs-test
6 SET JobName=Two-Jobs
7
8 CALL scripts\functions set_debug 0
9 CALL scripts\functions copy_test_confs
10
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\two-jobs-test.1.bscr >tmp\bconcmds
17
18 CALL scripts\functions run_bacula
19 CALL scripts\functions check_for_zombie_jobs storage=File 
20
21 ECHO Backup 1 done
22 tools\touch build\src\dird\*.c
23
24 REM
25 REM run a second job
26 REM
27 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\two-jobs-test.2.bscr >tmp\bconcmds
28
29 CALL scripts\functions run_bconsole
30 CALL scripts\functions check_for_zombie_jobs storage=File
31 CALL scripts\functions stop_bacula
32
33 CALL scripts\functions check_two_logs
34 CALL scripts\functions check_restore_diff
35 CALL scripts\functions end_test