3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a simple Verify InitCatalog, then Verify Catalog
10 TestName="verify-cat-test"
16 scripts/copy-test-confs
17 echo "${cwd}/build" >${cwd}/tmp/file-list
18 #echo "${cwd}/do_all" >${cwd}/tmp/file-list
19 #echo "${cwd}/do_all_tapes" >>${cwd}/tmp/file-list
20 #echo "${cwd}/do_file" >>${cwd}/tmp/file-list
22 change_jobname NightlySave $JobName
25 cat <<END_OF_DATA >tmp/bconcmds
29 @#exec "sh -c 'touch ${cwd}/build/xxx_new_file'"
30 run job=VerifyVolume level=InitCatalog yes
34 @# now do a verify Catalog
36 @$out ${cwd}/tmp/original
37 @#exec "sh -c 'rm -f ${cwd}/build/xxx_new_file'"
38 run job=VerifyVolume level=Catalog yes
47 check_for_zombie_jobs storage=File
50 grep "^ Termination: *Verify OK" tmp/log1.out 2>&1 >/dev/null
52 grep "^ Termination: *Verify OK" ${cwd}/tmp/original 2>&1 >/dev/null