]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/auto-label-test
aa0ed25dd5c84c45793c8df4d00f5236daf0906a
[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
11 cwd=`pwd`
12 scripts/copy-test-confs
13 scripts/cleanup
14 echo "${cwd}/build" >/tmp/file-list
15
16 cp ${cwd}/bin/bacula-dir.conf ${cwd}/tmp/1
17 sed "s%# Label Format%  Label Format%" ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf
18
19 start_test
20
21 cat <<END_OF_DATA >tmp/bconcmds
22 @output /dev/null
23 messages
24 @$out tmp/log1.out
25 status all
26 status all
27 list pools
28 messages
29 @#setdebug level=110 storage=File
30 run job=CompressedTest storage=File yes
31 list pools
32 list volumes
33 wait
34 messages
35 @# 
36 @# now do a restore
37 @#
38 @$out tmp/log2.out
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_DATA
58
59 run_bacula
60 check_for_zombie_jobs storage=File
61 stop_bacula
62
63 check_two_logs
64 check_restore_diff
65 end_test