2 REM Run a simple backup of the Bacula build directory using the compressed option
6 SET TestName=restore-by-file-test
7 SET JobName=restorebyfile
9 CALL scripts\functions set_debug 0
10 CALL scripts\functions copy_test_confs
12 ECHO %CD:\=/%/tmp/build >\tmp\file-list
14 COPY build\src\dird\*.c tmp\build >nul 2>&1
15 DIR /b tmp\build >tmp\1
16 sed -e "s;^;%CD:\=/%/tmp/build/;" tmp\1 >tmp\restore-list
19 CALL scripts\functions change_jobname CompressedTest %JobName%
20 CALL scripts\functions start_test
22 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\restore-by-file-test.bscr >tmp\bconcmds
24 CALL scripts\functions run_bacula
25 CALL scripts\functions check_for_zombie_jobs storage=File
26 CALL scripts\functions stop_bacula
28 CALL scripts\functions check_two_logs
29 CALL scripts\functions check_restore_tmp_build_diff
30 CALL scripts\functions end_test