]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/auto-label-test
Update disk tests
[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 set_debug 0
10 copy_test_confs
11
12 echo "${cwd}/build" >/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 >tmp/bconcmds
21 @output /dev/null
22 messages
23 @$out 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 tmp/log2.out
38 restore where=${cwd}/tmp/bacula-restores select storage=File
39 unmark *
40 mark *
41 count
42 ls *
43 dir *
44 find Makefile
45 pwd
46 lsmark
47 estimate
48 ?
49 help
50 done
51 yes
52 wait
53 messages
54 @$out
55 quit
56 END_OF_SCRIPT
57
58 run_bacula
59 check_for_zombie_jobs storage=File
60 stop_bacula
61
62 check_two_logs
63 check_restore_diff
64 end_test