]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/encrypt-bug-test.cmd
Add new Win32 files
[bacula/bacula] / regress / win32 / tests / encrypt-bug-test.cmd
1 REM Run a simple backup of untitled15.jpg that fails to
2 REM  restore properly in bug REM763 
3 REM
4 SET TestName="encrypt-bug-test"
5 SET JobName=Crypto-bug
6 CALL scripts\functions set_debug 0
7
8 CALL scripts\cleanup
9 CALL scripts\copy-crypto-confs
10 ECHO %CD%/encrypt-bug.jpg   >tmp/file-list
11 ECHO %CD%/encrypt-bug.jpg   >tmp/restore-list
12 ECHO %CD%/encrypt-bug.txt  >>tmp/file-list
13 ECHO %CD%/encrypt-bug.txt  >>tmp/restore-list
14 ECHO %CD%/encrypt-bug2.txt >>tmp/file-list
15 ECHO %CD%/encrypt-bug2.txt >>tmp/restore-list
16 SET files="encrypt-bug.jpg encrypt-bug.txt encrypt-bug2.txt"
17 mkdir -p %CD%\tmp\build
18 for i in %files% do XCOPY /k %CD%\encrypt-bug*.* %CD%\tmp\build
19
20 CALL scripts\functions change_jobname NightlySave @JobName@
21 CALL scripts\functions start_test
22
23 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\encrypt-bug-test.bscr >tmp\bconcmds
24
25 CALL scripts\functions run_bacula
26 sleep 2
27 CALL scripts\functions check_for_zombie_jobs storage=File 
28 CALL scripts\functions stop_bacula
29
30 CALL scripts\functions check_two_logs
31 diff %CD%\tmp\build %CD%\tmp\bacula-restores\%CD%
32 SET dstat=%ERRORLEVEL%
33 CALL scripts\functions end_test