]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/concurrent-jobs-test.cmd
Final changes
[bacula/bacula] / regress / win32 / tests / concurrent-jobs-test.cmd
1 REM
2 REM Run two jobs at the same time
3 REM
4
5 SET TestName=concurrent-jobs-test
6 SET JobName=concurrent-jobs
7
8 CALL scripts\functions set_debug 0
9 CALL scripts\functions copy_test_confs
10
11 ECHO %CD:\=/%/tmp/largefile >\tmp\file-list
12 ECHO Creating a 50MB file with bacula-dir data ...
13 tools\dd if=bin/bacula-dir.exe of=%CD:\=/%/tmp/1 bs=1024 count=512 >nul 2>&1
14 COPY /b %CD%\tmp\1+%CD%\tmp\1+%CD%\tmp\1+%CD%\tmp\1 %CD%\tmp\2 >nul 2>&1
15 DEL %CD%\tmp\1
16 COPY /b %CD%\tmp\2+%CD%\tmp\2+%CD%\tmp\2+%CD%\tmp\2+%CD%\tmp\2 %CD%\tmp\3 >nul 2>&1
17 DEL %CD%\tmp\2
18 COPY /b %CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\3 %CD%\tmp\largefile >nul 2>&1
19 DEL %CD%\tmp\3
20
21 ECHO largefile created
22
23 CALL scripts\functions change_jobname CompressedTest %JobName%
24 CALL scripts\functions start_test
25      
26 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\concurrent-jobs-test.bscr >tmp\bconcmds
27
28 CALL scripts\functions run_bacula
29 CALL scripts\functions check_for_zombie_jobs storage=File
30 CALL scripts\functions stop_bacula
31
32 CALL scripts\functions check_two_logs
33 diff tmp\largefile  tmp\bacula-restores\%CD::=%\tmp\largefile >nul 2>&1
34 SET dstat=%ERRORLEVEL%
35 CALL scripts\functions end_test