]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/restore-by-file-test.cmd
Delete unwanted subdirectory
[bacula/bacula] / regress / win32 / tests / restore-by-file-test.cmd
1 REM
2 REM Run a simple backup of the Bacula build directory using the compressed option
3 REM   then restore it.
4 REM
5
6 SET TestName=restore-by-file-test
7 SET JobName=restorebyfile
8
9 CALL scripts\functions set_debug 0
10 CALL scripts\functions copy_test_confs
11
12 ECHO %CD:\=/%/tmp/build >\tmp\file-list
13 MKDIR tmp\build
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
17 DEL tmp\1
18
19 CALL scripts\functions change_jobname CompressedTest %JobName%
20 CALL scripts\functions start_test
21
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
23
24 CALL scripts\functions run_bacula
25 CALL scripts\functions check_for_zombie_jobs storage=File
26 CALL scripts\functions stop_bacula
27
28 CALL scripts\functions check_two_logs
29 CALL scripts\functions check_restore_tmp_build_diff
30 CALL scripts\functions end_test