1 REM Run a simple backup of untitled15.jpg that fails to
2 REM restore properly in bug REM763
4 SET TestName="encrypt-bug-test"
6 CALL scripts\functions set_debug 0
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
20 CALL scripts\functions change_jobname NightlySave @JobName@
21 CALL scripts\functions start_test
23 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\encrypt-bug-test.bscr >tmp\bconcmds
25 CALL scripts\functions run_bacula
27 CALL scripts\functions check_for_zombie_jobs storage=File
28 CALL scripts\functions stop_bacula
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