]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/lzo-encrypt-test
backport code from master
[bacula/bacula] / regress / tests / lzo-encrypt-test
1 #!/bin/sh
2 #
3 # Run a simple backup with encryption and compression of the Bacula build directory
4 #   then verify the signatures.
5 #
6 TestName="lzo-encrypt-test"
7 JobName=LZOTest
8 . scripts/functions
9
10 scripts/cleanup
11 scripts/copy-crypto-confs
12 echo "${cwd}/build" >${cwd}/tmp/file-list
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=File volume=TestVolume001
21 run job=$JobName yes
22 wait
23 messages
24 list volumes
25 @# 
26 @# now do a restore
27 @#
28 @$out ${cwd}/tmp/log2.out
29 @# setdebug level=0 fd
30 restore where=${cwd}/tmp/bacula-restores storage=File
31 5
32 mark *
33 done
34 yes
35 wait
36 messages
37 quit
38 END_OF_DATA
39
40 run_bacula
41 sleep 2
42 check_for_zombie_jobs storage=File 
43 stop_bacula
44
45 check_two_logs
46 check_restore_diff
47 end_test