]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/bextract-test.cmd
More debug for faketape ansi label
[bacula/bacula] / regress / win32 / tests / bextract-test.cmd
1 REM
2 REM Run a simple backup of the Bacula build directory but 
3 REM   split the archive into two volumes, then build a BSR with
4 REM   the restore command and use bextract to restore the files.
5 REM
6 SET TestName=bextract-test
7 SET JobName=bextract
8
9 CALL scripts\functions set_debug 0
10 CALL scripts\functions copy_test_confs
11
12 ECHO %CD:\=/%/build >tmp\file-list
13
14 CALL scripts\functions change_jobname NightlySave %JobName%
15 CALL scripts\functions start_test
16
17 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\bextract-test.bscr >tmp\bconcmds
18
19 CALL scripts\functions run_bacula
20 CALL scripts\functions check_for_zombie_jobs storage=File1
21 CALL scripts\functions stop_bacula
22
23 MKDIR tmp\bacula-restores
24 bin\bextract -b working/restore.bsr -c bin/bacula-sd.conf %CD:\=/%/tmp %CD:\=/%/tmp/bacula-restores 2>&1 >nul
25 SET rstat=%ERRORLEVEL%
26 grep "^  Termination: *Backup OK" tmp\log1.out 2>&1 >nul
27 SET bstat=%ERRORLEVEL%
28 CALL scripts\functions check_restore_diff
29 CALL scripts\functions end_test