]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/debug-test
regress: fix delete-test
[bacula/bacula] / regress / tests / debug-test
1 #!/bin/sh
2 #
3 # Attempt to backup and restore a file with the bpipe plugin
4 #
5 TestName="debug-test"
6 JobName=pluginTest
7 . scripts/functions
8
9 scripts/cleanup
10 scripts/copy-plugin-confs
11 echo "${cwd}/build/po" >${cwd}/tmp/file-list
12 rm -f ${cwd}/working/*trace*
13
14 start_test
15
16 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
17 @$out /dev/null
18 messages
19 @$out ${cwd}/tmp/log1.out
20 label storage=File1 volume=TestVolume001
21 update volume=TestVolume001 MaxVolBytes=1000
22 run job=$JobName storage=File1 yes
23 @sleep 5
24 messages
25 quit
26 END_OF_DATA
27
28 run_bacula
29
30 killall -SEGV bacula-dir bacula-sd bacula-fd
31
32 test -f working/*dir*bactrace
33 dstat=$?
34 test -f working/*fd*bactrace
35 dstat=`expr $dstat + $?`
36 test -f working/*sd*bactrace
37 dstat=`expr $dstat + $?`
38 test -f working/*dir*traceback
39 dstat=`expr $dstat + $?`
40 test -f working/*fd*traceback
41 dstat=`expr $dstat + $?`
42 test -f working/*sd*traceback
43 dstat=`expr $dstat + $?`
44
45 grep $JobName working/*dir*bactrace > /dev/null 2>&1
46 dstat=`expr $dstat + $?`
47 grep bpipe-fd.so working/*fd*bactrace > /dev/null 2>&1
48 dstat=`expr $dstat + $?`
49 grep $JobName working/*fd*bactrace > /dev/null 2>&1
50 dstat=`expr $dstat + $?`
51
52 bstat=0
53 rstat=0
54
55 stop_bacula
56
57 end_test