3 # This is a simple dummy test (copied from incremental-test), which
4 # simply runs some jobs then does not clean up at the end.
5 # This permits testing programs such as bconsole and bat with a little
13 ${rscripts}/copy-test-confs
14 echo "${tmpsrc}" >${tmp}/file-list
16 cp -p ${src}/src/dird/*.c ${tmpsrc}
18 echo "${tmpsrc}/ficheriro1.txt" >restore-list
19 echo "${tmpsrc}/ficheriro2.txt" >>restore-list
22 change_jobname CompressedTest $JobName
25 cat <<END_OF_DATA >${tmp}/bconcmds
29 @#setdebug level=100 storage=File
30 @#setdebug level=200 client
31 @#setdebug level=100 director
32 label storage=File volume=TestVolume001
33 label storage=File volume=TestVolume002
42 check_for_zombie_jobs storage=File
44 # Now create two new files to be restored later
47 echo "ficheriro1.txt" >${tmpsrc}/ficheriro1.txt
48 cp -f ${tmpsrc}/dird.c ${tmpsrc}/ficheriro2.txt
50 cat <<END_OF_DATA >${tmp}/bconcmds
54 @# Force Incremental on the second Volume
55 update volume=TestVolume001 VolStatus=Used
56 run level=Differential job=$JobName yes
65 touch ${tmpsrc}/ficheriro1.txt
66 touch ${tmpsrc}/ficheriro2.txt
68 cat <<END_OF_DATA >${tmp}/bconcmds
72 run level=Incremental job=$JobName yes
82 cp -f ficheriro2.txt 1
83 sed "s%a%b%g" 1 >ficheriro2.txt
86 cat <<END_OF_DATA >${tmp}/bconcmds
90 run level=Differential job=$JobName yes
99 touch ${tmpsrc}/ficheriro1.txt
100 touch ${tmpsrc}/ficheriro2.txt
101 cat <<END_OF_DATA >${tmp}/bconcmds
104 @$out ${tmp}/log1.out
105 run level=Incremental job=$JobName yes
114 touch ${tmpsrc}/ficheriro1.txt
115 touch ${tmpsrc}/ficheriro2.txt
116 cat <<END_OF_DATA >${tmp}/bconcmds
119 @$out ${tmp}/log1.out
120 run level=Incremental job=$JobName yes
129 touch ${tmpsrc}/ficheriro1.txt
130 touch ${tmpsrc}/ficheriro2.txt
131 cat <<END_OF_DATA >${tmp}/bconcmds
134 @$out ${tmp}/log1.out
135 run level=Incremental job=$JobName yes
143 touch ${tmpsrc}/ficheriro1.txt
144 touch ${tmpsrc}/ficheriro2.txt
146 cat <<END_OF_DATA >${tmp}/bconcmds
149 @$out ${tmp}/log1.out
150 setdebug level=200 storage=File
151 run level=Incremental job=$JobName yes
157 @$out ${tmp}/log2.out
158 setdebug level=10 storage=File
159 restore where=${tmp}/bacula-restores storage=File file=<${tmp}/restore-list
169 check_for_zombie_jobs storage=File
172 # Stop early to leave everything defined, Bacula running, ...
177 # The rest of this is not executed
182 # Delete .c files because we will only restored the txt files
185 check_restore_tmp_build_diff