]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/auto-label-test
Update name
[bacula/bacula] / regress / tests / auto-label-test
1 #!/bin/sh
2 #
3 #  Test if Bacula can automatically create a Volume label.
4 #
5
6 TestName="auto-label-test"
7 JobName=AutoLabel
8 . scripts/functions
9
10 copy_test_confs
11
12 echo "${cwd}/build" >${cwd}/tmp/file-list
13
14 cp ${cwd}/bin/bacula-dir.conf ${cwd}/tmp/1
15 sed "s%# Label Format%  Label Format%" ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf
16
17 change_jobname CompressedTest $JobName
18 start_test
19
20 cat <<END_OF_SCRIPT >${cwd}/tmp/bconcmds
21 @output /dev/null
22 messages
23 @$out ${cwd}/tmp/log1.out
24 status all
25 status all
26 list pools
27 messages
28 @#setdebug level=110 storage=File
29 run job=$JobName storage=File yes
30 list pools
31 list volumes
32 wait
33 messages
34 @# 
35 @# now do a restore
36 @#
37 @$out ${cwd}/tmp/log2.out
38 @#setdebug level=400 storage=File
39 restore where=${cwd}/tmp/bacula-restores select storage=File
40 unmark *
41 mark *
42 count
43 ls *
44 dir *
45 find Makefile
46 pwd
47 lsmark
48 estimate
49 ?
50 help
51 done
52 yes
53 wait
54 messages
55 @$out
56 quit
57 END_OF_SCRIPT
58
59 run_bacula
60 check_for_zombie_jobs storage=File || exit 1
61 stop_bacula
62
63 check_two_logs
64 check_restore_diff
65 end_test