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