3 # Run a backup of a small file, then do several other backups
4 # to expand the size of a volume. Then do a restore of the first
5 # file, and make sure it doesn't read to the end of the disk.
7 TestName="bsr-read-test"
12 scripts/copy-test-confs
13 cp ${cwd}/build/configure ${cwd}/tmp
14 cat ${cwd}/build/configure >> ${cwd}/tmp/configure
15 echo "${cwd}/tmp/configure" >${cwd}/tmp/file-list
16 echo "${cwd}/build" >>${cwd}/tmp/file-list
19 change_jobname CompressedTest $JobName
22 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
25 @$out ${cwd}/tmp/log1.out
26 label storage=File volume=TestVolume001
27 label storage=File volume=TestVolume002
28 label storage=File volume=TestVolume003
29 update Volume=TestVolume001 maxvolbytes=120000
30 update Volume=TestVolume002 maxvolbytes=120000
35 @# print the JobMedia records
37 select * from JobMedia;
43 check_for_zombie_jobs storage=File
46 echo "${cwd}/build" >${cwd}/tmp/file-list
48 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
51 @$out ${cwd}/tmp/log1.out
52 run job=$JobName level=Full yes
55 run job=$JobName level=Full yes
61 @$out ${cwd}/tmp/log2.out
62 setdebug level=30 trace=1 fd
63 setdebug level=500 trace=1 storage=File
65 @# print the JobMedia records
66 select * from JobMedia;
77 @# now do a restore of the second job (to compare offset)
79 @$out ${cwd}/tmp/log3.out
93 check_for_zombie_jobs storage=File
97 # check_restore_tmp_build_diff