]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/verify-cat-test
887099d77eceb65d1439054aeae04b5d1c40a7ea
[bacula/bacula] / regress / tests / verify-cat-test
1 #!/bin/sh
2 #
3 # Run a simple Verify InitCatalog, then Verify Catalog
4 #
5 TestName="verify-cat-test"
6 JobName=VerifyCatalog
7 . scripts/functions
8 set_debug 1
9
10 cwd=`pwd`
11 scripts/cleanup
12 scripts/copy-test-confs
13 echo "${cwd}/build" >/tmp/file-list
14
15 change_jobname NightlySave $JobName
16 start_test
17
18 cat <<END_OF_DATA >tmp/bconcmds
19 @$out /dev/null
20 messages
21 @$out tmp/log1.out
22 run job=VerifyVolume level=InitCatalog yes
23 wait
24 @# 
25 @# now do a verify Catalog
26 @#
27 @$out ${cwd}/tmp/original
28 run job=VerifyVolume level=Catalog yes
29 wait
30 messages
31 @$out
32 quit
33 END_OF_DATA
34
35 run_bacula
36
37 sleep 2
38 check_for_zombie_jobs storage=File 
39 stop_bacula
40
41 grep "^  Termination: *Verify OK" tmp/log1.out 2>&1 >/dev/null
42 bstat=$?
43 grep "^  Termination: *Verify OK" ${cwd}/tmp/original 2>&1 >/dev/null
44 rstat=$?
45 dstat=0
46 end_test