2 REM Test if Bacula can automatically create a Volume label.
5 SET TestName=auto-label-test
8 CALL scripts\functions set_debug 0
9 CALL scripts\functions copy_test_confs
11 ECHO %CD:\=/%/build >\tmp\file-list
13 COPY bin\bacula-dir.conf tmp\1
14 sed -e "s;# Label Format; Label Format;" tmp\1 >bin\bacula-dir.conf
16 CALL scripts\functions change_jobname CompressedTest %JobName%
17 CALL scripts\functions start_test
19 sed -e "s;@JobName@;%JobName%;g" -e "s;@out@;%out%;g" -e "s;@topdir@;%CD:\=/%;g" tests\auto-label-test.bscr >tmp\bconcmds
21 CALL scripts\functions run_bacula
22 CALL scripts\functions check_for_zombie_jobs storage=File
23 CALL scripts\functions stop_bacula
25 CALL scripts\functions check_two_logs
26 CALL scripts\functions check_restore_diff
27 CALL scripts\functions end_test