]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/strip-test
Update
[bacula/bacula] / regress / tests / strip-test
1 #!/bin/sh
2 #
3 # Attempt to strip the path
4 #
5 TestName="strip-test"
6 JobName=stripTest
7 . scripts/functions
8
9 scripts/cleanup
10 scripts/copy-strip-confs
11
12
13 echo "${cwd}/build/src/dird" >${cwd}/tmp/file-list
14
15 change_jobname NightlySave $JobName
16 start_test
17
18 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
19 @$out /dev/null
20 messages
21 @$out ${cwd}/tmp/log1.out
22 @#setdebug level=150 dir
23 @#setdebug level=150 storage=FileStorage
24 setdebug level=100 client=$CLIENT
25 label storage=FileStorage pool=Default volume=TestVolume001
26 run job=$JobName storage=FileStorage pool=Default yes
27 wait
28 messages
29 quit
30 END_OF_DATA
31
32
33 run_bacula
34
35 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
36 @$out /dev/null
37 messages
38 @# 
39 @# now do a restore
40 @#
41 @$out ${cwd}/tmp/log2.out
42 @#setdebug level=50 client=$CLIENT
43 restore where=${cwd}/tmp/bacula-restores select all storage=FileStorage done
44 yes
45 wait
46 messages
47 @$out
48 quit
49 END_OF_DATA
50
51 run_bconsole
52
53 check_for_zombie_jobs storage=FileStorage
54 stop_bacula
55
56 check_two_logs
57 # check_restore_diff does not work because we cannot read all /etc, so skip it
58 dstat=0
59 end_test