]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/plugin-test
cc7c5d7d8ce98e3547bfe0bcbbe22e78c485510b
[bacula/bacula] / regress / tests / plugin-test
1 #!/bin/sh
2 #
3 # Attempt to backup and restore a file with the bpipe plugin
4 #
5 TestName="plugin-test"
6 JobName=pluginTest
7 . scripts/functions
8
9 scripts/cleanup
10 scripts/copy-plugin-confs
11 file=encrypt-bug.jpg
12 echo "${cwd}/${file}" >${cwd}/tmp/file-list
13
14 start_test
15
16 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
17 @output /dev/null
18 messages
19 @$out ${cwd}/tmp/log1.out
20 label storage=File1 volume=TestVolume001
21 setdebug level=50 client=$CLIENT
22 run job=$JobName storage=File1 yes
23 wait
24 messages
25 quit
26 END_OF_DATA
27
28
29 run_bacula -d50
30
31 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
32 @$out /dev/null
33 messages
34 @# 
35 @# now do a restore
36 @#
37 @$out ${cwd}/tmp/log2.out
38 @#setdebug level=50 client=$CLIENT
39 restore where=${cwd}/tmp  select all storage=File1 done
40 yes
41 wait
42 messages
43 @$out
44 quit
45 END_OF_DATA
46
47
48 run_bconsole
49
50 check_for_zombie_jobs storage=File1
51 stop_bacula
52
53 check_two_logs
54 diff ${cwd}/${file} ${cwd}/tmp/${file}
55 dstat=$?
56 end_test